Add data using PISNAP2 table
- Last UpdatedJan 13, 2023
- 1 minute read
- PI System
- PI Server
In the PISNAP2 table, use the rval and istat attributes instead of the value attribute. In this example, a good and a bad value are added to PI:
(Ls - ) piconfig> @table pisnap2
* (Ls - PISNAP2) piconfig> @mode edit
* (Ed - PISNAP2) piconfig> @istru tag,time,rval,istat
* (Ed - PISNAP2) piconfig> sinusoid,*,50.0,0
> sinusoid,,50.0,0
* (Ed - PISNAP2) piconfig> sinusoid,*,0,-254
> sinusoid,*, 0,-254
To use the PISNAP2 table to add values to integer and digital tags requires setting the istat attribute.