Reading out specific Tag definition - second option
Reading out the Tag definition can be used to verify what Tags do exist and what items and Meta Data are defined. This is most useful, when creating a new Tag or wanting to modify an existing Tag.
User can do this either by using applications such as:
- Microsoft SQL Server Management Studio
- MSSQL CLI
This can also be used for building custom solutions based on applications which allow for an ODBC connection such as:
- Excel
- C#
- .Net
- Python
Litmus does provide such as custom solution which can be downloaded from our Central Portal.
Execute Stored Procedure PROREC_Tag_ReadTagConfiguration.
Litmus Production Record Database can act similar to an Historian and allows to store data for individual defined tags and their meta data.
Variable name | Datatype | Description | Example |
---|---|---|---|
@Tag | VARCHAR(50) | The name of a tag. Tag names can occur several times for different devices but have to be unique per device Mandatory! Can not be NULL or Empty | isRunning |
@Device | VARCHAR(50) | The name of a specific device. Devices in Litmus Production Record Database are acting the same way as they do in Litmus Edge in grouping tags logically together. It is recommended to use the same device name as used in Litmus Edge Mandatory! Can not be NULL or Empty | L1_Machine2_1_MB |
To read out a specific data model definition, call the stored procedure PROREC_Tag_ReadTagConfiguration using the T-SQL EXEC or EXECUTE keyword and provide the Input variables. Below is an example using T-SQL in SQL Server Management Studio:
The function returns a table as result.