Description
Description
Creates a new raw importer instance.
Example
Names Default To Here( 1 );
/* Import raw data with attribute status */
client = New PI Client(
URL( "https://myserver.com/piwebapi" ),
Authentication Method( "basic" ),
Username( "myuserid" ),
Password( "mypassword" )
);
importer = client << Importer(
AF Path( /* Asset Framework paths */
"\\myserver\PIData\Atlanta Data Center\Server Rack1\ION 6200 Power Meter1|I A",
"\\myserver\PIData\Atlanta Data Center\Server Rack1\ION 6200 Power Meter1|I B",
"\\myserver\PIData\Atlanta Data Center\Server Rack1\ION 6200 Power Meter1|I C"
),
Series( "raw" ),
Start Time( "*-1d" ), /* PI time string */
End Time( "*" ), /* PI time string */
UTC( 0 ), /* Whether specified start/end times are based on UTC - default is zero */
Boundary Type( "inside" ), /* Choices are "inside", "outside", "interpolated" */
Max Count( 5000 ), /* Max. number of values to fetch - default is 5000 */
Filter( "" ), /* Optional filter */
Retrieve Attribute Status( 1 ), /* retrieve attribute status for each imported column, into corresponding columns "I A status", "I B status", and "I C status" */
Timeout( 120 ) /* add extra time for the server to respond */
);
importer << Run;
Description
Invokes the import window, using the provided parameters as a starting point, to create an interactive session where new tables can be imported.
Description
Only used when authentication method is "basic".
Description
Runs the importer to create the table.
Description
URL of the PI server REST API endpoint.
Description
Required when authentication method is "basic".