Developers of NI VeriStand custom workspace objects or UIs may find the need to display the number of channels configured in an embedded data logger log instance of the names of those channels. To do this, the developer will need to use the NI VeriStand .NET System Definition API. This example shows how to use this API to navigate the system definition tree and return desired information.
Note: A sample VeriStand project has been included in the attached .zip in the Channel Count folder for demonstration purposes.
This example uses the NI VeriStand .NET System Definition API to parse the system definition hiearchy and extract keys pieces of information.
This VI is responsible for returning a reference to an Embedded Data Logger with a given name.
This VI is responsible for returning a reference to the Log File instance with a given name.
This VI is responsible for returning a reference to the Channel Group instance with a given name.
This VI is responsible for returning the channel names configured for a certain Channel Group.
These examples were developed in LabVIEW 2012 for VeriStand 2012. Users in new versions of LabVIEW will be required to upgrade the VI and relink the .NET library to their version of VeriStand.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.