InsertRecords
Associated with: Dynacard Stores
Security permission required to access this method: Control
NOTE: NOTE: InsertRecords is a method (rather than a pick action). Methods are designed to be accessed ‘programmatically’, for example by using the Automation Interface.
The InsertRecords method can prove useful if using a Dynacard Store in 'stand-alone' mode, rather than associating the Dynacard Store with an outstation. Use the method to populate the Dynacard Store with a set of data values, rather than upload the dynacard data from an outstation. The method inserts a set of records, comprising a collection of Load/Position values with a single timestamp.
To successfully populate a Dynacard Store using the InsertRecords method, you need to ensure that:
- The Dynacard Store is not set up to receive its data from an active outstation. (The Dynacard Store is 'stand-alone'.)
- There are the same number of elements in each array.
ATTENTION: You use the InsertRecords method to insert a single set of records. If required, you can use the method more than once on the same Dynacard Store, to insert further record sets into that Dynacard Store.If you intend using the InsertRecords method to insert further record sets into the same Dynacard Store, ensure that you insert the record sets in sequential order, starting with the earliest record set.
Arguments:
- Timestamp (Time)—A VARIANT VT_DATE date and time value. Specify the required timestamp in UTC (Coordinated Universal Time).
- Position (Double array)—The array of values that define the rod pump’s position.
- Load (Double array)—The array of values that define the rod pump’s loading.