Solutions
...
Litmus Production Record Datab...
Interacting with Litmus Produc...

Reading out specific Tag definition - second option

6min

Use Cases

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.

Method

Execute Stored Procedure PROREC_Tag_ReadTagConfiguration.

Note

Litmus Production Record Database can act similar to an Historian and allows to store data for individual defined tags and their meta data.

Input Variables

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

How to use

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:

EXECUTE [LE_ProductionRecord].[dbo].[PROREC_Tag_ReadTagConfiguration] @Tag = N'isRunning', @Device = N'L1_Machine2_1_MB';

Result

The function returns a table as result.

specific tag definition
specific tag definition