Send a digital state to the snapshot database
- Last UpdatedJan 13, 2023
- 1 minute read
- PI System
- PI Server
This procedure shows how to send a digital state Value to the snapshot to verify that the new tag you have created can retrieve the value.
-
Select the snapshot table:
(Ls - ) piconfig> @table pisnap
-
Prepare for writing:
(Ls - PISNAP) piconfig> @mode edit
-
Specify the input data format:
(Ed - PISNAP) piconfig> @istructure tag, time, value
-
Specify the data (set timestamp to *, which indicates that the current time should be used):
(Ed - PISNAP) piconfig> ValveStateTag, *, Open
-
List the snapshot entry and verify that it was properly updated:
Ed - PISNAP) piconfig> @mode list
(Ls - PISNAP) piconfig> @ostructure tag, time, value -
Select only those tags that start with “V:”
(Ls - PISNAP) piconfig> @select tag=V*
-
Start processing:
(Ls - PISNAP) piconfig> @endsection
ValveStateTag, 26-SEP-03 15:45:32, Open