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

Data Archive Reference

Attribute set table (PIATRSET)

  • Last UpdatedJan 13, 2023
  • 2 minute read

The PIATRSET table contains sets of attributes used to build point classes. An attribute defines a point attribute; it is comprised of a name, data type and default value. An attribute set contains a list of attributes. Attribute sets are the building blocks of point classes. Point classes are made up of a list of attribute sets.

Note: Changing existing attribute sets - except for changing default values, should be done with great care, in standalone mode.

PIATRSET attributes

Description

SET

Name of attribute set

ATTRIB

Attribute name; a set has many of these

DEFAULT

Default value of the attribute

TYPE...

Data type of the attribute. For example, String, Float32

An attribute set has many of the “Attrib, Default, Type” triplet. The ellipsis (…) following “TYPE” indicates those three may be repeated.

The following piconfig session demonstrates how to list the attribute sets on the Data Archive server:

* (Ls - PIATRSET) PIconfig> @table piatrset
* (Ls - PIATRSET) PIconfig> @ostr set
* (Ls - PIATRSET) PIconfig> @ends
*PIConfig Err> Wild-card specs. missing, default to '*'.
alarmparam
base
classic
sqcalm_parameters
totals
* (Ls - PIATRSET) PIconfig>

To list the entire classic and then base attribute sets use the ellipsis to repeat the output.

Users familiar with classic PI Points will recognize all these attributes. These two attribute sets, Classic and Base, make up the classic point class.

* (Ls - PIATRSET) PIconfig> @table piatrset
* (Ls - PIATRSET) PIconfig> @ostr attrib, default, type
* (Ls - PIATRSET) PIconfig> @ostr ...
* (Ls - PIATRSET) PIconfig> @istr set
* (Ls - PIATRSET) PIconfig> classic
*> classic
location1,0,Int32
location2,0,Int32
location3,0,Int32
location4,0,Int32
location5,0,Int32
filtercode,0,Int16
squareroot,0,Int16
totalcode,0,Int16
convers,1.,Float32
srcptid,0,Int32
instrumenttag,,String
userint1,0,Int32
userint2,0,Int32
userreal1,0.,Float32
userreal2,0.,Float32
* End Repeat...
* (Ls - PIATRSET) PIconfig> base
*> base
descriptor,,String
exdesc,,String
typicalvalue,50.,Float32
engunits,,String
zero,0.,Float32
span,100.,Float32
pointtype,12,UBYTE
pointsource,Lab,String
scan,1,BYTE
excmin,0,Uint16
excmax,600,Uint32
excdev,1.,Float32
shutdown,1,BYTE
archiving,1,BYTE
compressing,1,BYTE
step,0,BYTE
compmin,0,Uint16
compmax,28800,Uint32
compdev,2.,Float32
creationdate,31-Dec-69 16:00:00,TimeStamp
creator,0,Uint16
changedate,31-Dec-69 16:00:00,TimeStamp
changer,0,Uint16
displaydigits,-5,BYTE
* End Repeat...

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