Solutions
...
Litmus Production Record Datab...
Interacting with Litmus Produc...
Reading Tag Meta Data with Local timestamp
8 min
use cases returning tag meta data recorded by litmus production record database through the use of these select statements can be used for example by any visualization platform which allows to integrate with mssql like; grafana powerbi tableau further can these queries be used by any other application which allows for an odbc connection such as excel c# net python r they can also be part of a larger stored procedure developed by users with t sql method run s elect query with function prorec tag gettagmetadatalocaltime as from clause note tag meta data are a subset of data which can be stored for a tag and are updated infrequently this can be data such as alarm limits, descriptions or anything usable to further describe a tag input variables 155,141,239,219,133,114 false true false unhandled content type unhandled content type unhandled content type unhandled content type false unhandled content type unhandled content type unhandled content type unhandled content type false unhandled content type unhandled content type unhandled content type unhandled content type false unhandled content type unhandled content type unhandled content type unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type how to use to query tag data, execute a select statement from the function prorec tag gettagmetadatautc providing all the required inputs below is an example using t sql in sql server management studio select from \[le productionrecord] \[dbo] \[ prorec tag gettagmetadatalocaltime ] ( default ,default ,default ,default ,default ,'2022 12 01 14 13 21 000' ,default ,1); result the function returns a table as result additional options it is possible to reduce the number of columns returned by the select statement below is an example using t sql in sql server management studio select recordtime, item, tagvalue from \[le productionrecord] \[dbo] \[prorec tag gettagmetadatalocaltime] ( 'toolctr axis x' ,'toolctr v1 3bsm makino1' ,default ,default ,default ,'2022 12 01 14 13 21 000' ,default ,1); this will reduce the number of columns returned to only the three selected it is possible to sort data based on users requirements returned by the select statement below is an example using t sql in sql server management studio select recordtime, item, tagvalue from \[le productionrecord] \[dbo] \[prorec tag gettagmetadatalocaltime] ( 'toolctr axis x' ,'toolctr v1 3bsm makino1' ,default ,default ,default ,'2022 12 01 14 13 21 000' ,default ,1) order by tagvalue asc; the result will be a table, where all rows are sorted by their tagvalue in ascending order