NI Home > Community > NI Discussion Forums

NI Labs

Showing results for 
Search instead for 
Do you mean 
Reply
Active Participant
Andy F.
Posts: 424
0 Kudos

Welcome to the LabVIEW DSC Tag API

[ Edited ]

This thread is intended to foster discussion regarding the LabVIEW DSC Tag API. Please post any comments or questions about the API here.

 

 

The Tag API provides an additional method for accessing live and historical data and alarms using the Datalogging and Supervisory Control Module. The Tag API is written completely in LabVIEW on top of current LabVIEW DSC APIs to help users write better DSC applications. This high-level dynamic shared variable API allows users to write DSC applications using tag names instead of shared variable URLs.  Tags are defined as a datasource that includes live, alarming, and historical data.  A tag is different than a shared variable in that a shared variable only references live data.  The Tag API utilizes the shared variable, Citadel database, and alarm server to provide all information about a tag.

 

 

System Requirements:

LabVIEW 8.6

LabVIEW DSC 8.6

 

 

Message Edited by Support on 09-15-2008 12:13 PM
-----------------------------------------------------------------
National Instruments
Member
tlem
Posts: 1
0 Kudos

Re: Welcome to the LabVIEW DSC Tag API

I need to do something to use code with this in the DSC run time systems, for distribution
Active Participant
Andy F.
Posts: 424
0 Kudos

Re: Welcome to the LabVIEW DSC Tag API

The DSC Tag API is built on LabVIEW Classes so you shouldn't need anything special other than to build it into an EXE to use part of the API for distribution. Thanks!

  

-----------------------------------------------------------------
National Instruments
Active Participant
viScience
Posts: 769
0 Kudos

Re: Welcome to the LabVIEW DSC Tag API

Could you provide any documentation on the use of this api and expound further

on compelling use cases?

 

Thanks

Active Participant
Andy F.
Posts: 424
0 Kudos

Re: Welcome to the LabVIEW DSC Tag API

[ Edited ]

sachsm,

 

There isn't a lot of documentation currently for the API, but I can attach a simple example and give some compelling use cases. Attached below is a simple example of how you would use the API to read a value from a variable.

 

 Simple DSC Tag API Example

 

The reason why you may want to use this approach is that the value, the historical data, and the alarm data is all part of what we refer to as the tag. Instead of needing to know addresses for historical reads, we take care of that using the refnum. All you would need to do is open a refnum for a specific library and access each variable by name. 

 

The HVAC example attached below shows how to implement a fairly complicated HMI using the event structure, subpanels, and the DSC Tag API. 

Message Edited by Andy F. on 10-23-2008 02:59 PM
-----------------------------------------------------------------
National Instruments