Skip to main content

Values into PI Points

You can use the Sigmafine Data Loader to bring values into PI Points for different types of modeling elements, including measurements, analyzers, and inventories (tanks). The command line arguments for the Dataloader.exe executable file and associated data file locate the Attributes within the element, and if that Attribute uses a PI Point Data Reference, it writes a value into a PI point. The time at which the value is written is also based on the configuration of the command line arguments and data file.

Before you run the Data Loader to write to PI Points, verify that all attributes, that will be accepting data, have been configured to write data through the PI Point Data Reference. See the "Analysis Framework" documentation for details about configuring the PI Point Data Reference.

Importing a File into PI Points Using Data Loader

The following is an example that shows how to import a file into PI Points using the Data Loader.

  1. Open a Command window.
  2. Click on the Windows Start menu icon.
  3. Click Run.
  4. In the box that appears, enter cmd (shorthand for 'Command' prompt).
  5. Set the working directory to the location of the Data Loader executable file.
  • At the command prompt, enter: cd C:\Program Files(x86)\ Sigmafine\Bin
  1. Execute the .bat file created for the Data Loader.

    A sample file dataloader.bat.sample is provided. Make a copy of this file and name it dataloader.bat.

  2. At the command prompt, enter: dataloader.bat

Messages about the execution appear in the Dataloader.log file. If the debug command flag is set (debug=yes), detailed information is written into the Dataloader.log for each value read from the data file. If debug=no, only execution errors are written into the Dataloader.log file.

ClosedEXAMPLE: Log File for Successful Execution of the Data Loader

The following text is an example of a successful execution of the Data Loader as seen from the log file:

DataLoader 15-May-11 10:33:12

Execution Started...

DataLoader 15-May-11 10:33:22

Dataloader running in time context. Data will be written to PI Tags where configured.

DataLoader 15-May-11 10:33:22

Number of lines processed: 10

DataLoader 15-May-11 10:33:22

Writing starts.

DataLoader 15-May-11 10:33:24

Number of updated pi tags: 26

DataLoader 15-May-11 10:33:24

Writing ends.

DataLoader 15-May-11 10:33:24

Execution finalized...