VeriStand .NET API Reference

Part 1: Opening the System Definition File and Finding the First DAQ Device

The first part of this example code programmatically opens an existing system definition file and navigates the nodes in the system definition to obtain the reference to the DAQ device.


Open an existing system definition .nivssdf file from disk by initializing a new instance of the SystemDefinition class.


Find the first DAQ device under the Chassis section of the system definition file by obtaining the references to the following items in the system definition file, in descending order:
  1. The Targets section (obtained from the Root dottable property and GetTargets method)
  2. The DAQ section
    Note  To obtain this reference without traversing the system definition, the example code uses the FindNodeByPath method and specifies the node path. However, the FindNodeByPath method returns a BaseNode reference, which the ToMoreSpecificClass function then typecasts to the DAQ class.
  3. The DAQ devices under the DAQ section (obtained from the GetDeviceList method)
  4. The first DAQ device in the array of references

Related Links

SystemDefinition Constructor

Programming with the System Definition API in LabVIEW

Home
LabVIEW Walkthrough: Modifying a DAQ Device in a System Definition File
Next Step
Part 2: Adding Analog Input and Output Channels to a DAQ Device

Log in to get a better experience