Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Process Simulation

Offline, interactive mode

  • Last UpdatedApr 30, 2024
  • 1 minute read

This mode is a manual run. Every time you run a sequence, the script accesses the HistTimestamp variable. This variable represents the timestamp that the script should operate on when it accesses data from a historian.

When you invoke a sequence script by using the run command (as shown in the following example code), the value of HistTimestamp is the value of the configured default timestamp in the sequence settings (sequence_settings.json file). If there are no configured timestamps in the sequence settings, AVEVA Real-Time System uses the current time.

rts run basicsample

You can specify a timestamp by using a second argument on the command line, as shown in the following example code:

rts run basicsample "1/1/2021 9:00 AM"

Instead of specifying the timestamp on the command line, you can use configured, named timestamps from the sequence_settings.json file. You can edit this file to create multiple named timestamps. For example, the following JSON code shows the MyTimestamp timestamp in the sequence_settings.json file:

"timestamps": {

"MyTimestamp" : {

"timestamp": "1/1/2021 09:00:00"

}

}

The following code example shows how you can use a named timestamp in the run command. This example uses the MyTimestamp timestamp from the preceding code example.

rts run basicsample MyTimestamp

The timestamp whose is_default property is set to true is considered the default. When you don't specify a timestamp on the command line, the default timestamp is used.

TitleResults for “How to create a CRG?”Also Available in