Using Attributes with NI-HSDIO

NI Digital Waveform Generator/Analyzer

Using Attributes with NI-HSDIO

Attributes, which are typically called properties in LabVIEW, serve as a base for parameters.

NI-HSDIO contains high-level functions that set most of the instrument attributes. Some attributes are not accessible through the high-level functions. For example, input impedance is not set with any of the NI-HSDIO configuration functions. The values for these attributes must be set using the attribute.

Accessing Attributes

In LabVIEW, you can find attributes in the NI-HSDIO property node. To access them, complete the following steps:

  1. Open a VI.
  2. Make sure that you are viewing the block diagram. Navigate to the NI-HSDIO palette at All Functions»NI Measurements»NI-HSDIO»Static and Dynamic Acquisition or All Functions»NI Measurements»NI-HSDIO»Static and Dynamic Generation, and then drag the property node icon to the block diagram.
  3. Left-click the property node, and select the attribute you want to use.
  4. To add additional attributes, resize the property node.

In C, attributes are accessed with the niHSDIO Set and Get Attribute functions. These functions correspond to a particular data type. For example, to set the input impedance, which has a data type or ViReal64, use niHSDIO_SetAttributeViReal64.

Refer to the Function Reference section for a complete listing of available attributes and properties.