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

PI Interface for Relational Database RDBMS via ODBC

Event-based input

  • Last UpdatedNov 18, 2022
  • 1 minute read

The query for this example is executed when the SINUSOID point is changed. To configure an event-based tag, specify the /EVENT=tagname definition in the ExDesc attribute.

SELECT timestamp, value, 0
FROM table11 WHERE timestamp > ? ORDER BY timestamp;

Configure the target PI point with the following settings:

Point attribute

Description

Setting

ExDesc

Placeholders and options

/EVENT=sinusoid, P1=TS

Location2

First row/all rows

1 (All rows are processed)

Location3

Data distribution strategy

0 (Single)

Location4

Scan class

0 (Event driven execution)

Location5

Exception reporting

1 (Exception reporting is turned off)

InstrumentTag

Name of the SQL file

Example11.SQL

PointType

Data type of PI points

Float32

In the RDBMS, create a table formatted as follows.

Column name

Column data type

SQL Server data type

Microsoft Access data type

timestamp

DateTime

Date/Time

value

Real

Number-Single Precision

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