PI tag configuation for a RDBMS

I am trying to configure my PI tag to be able to read data from an sql database.

the query works well and I just want to fecth the latest Cd_mean value. how can I configure my PI tag to store that value in a PI tag
lab test.png

Parents Reply
  • I supposed what you meant by "Selecting specific column" is that you want to use a 'Group Distribution'. This means that your result table should look like [Time],[Value1],0,[Value2],0,etc. with 0s being separation columns. Have a look:

    SELECT timestamp, temperature, 0, pressure, 0, level, 0

    FROM table3

    WHERE key1 LIKE 'Tank1' AND timestamp > ? ORDER BY timestamp ASC;

    Location4 is for scan class and Location5 is for Exception Reporting (0 = enabled, 1 = disabled). Side note, you should also look into interface configurations like "Ignore Nulls" and "Read Before Overwrite", here's the user guide.

Children
No Data