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:
- Open a VI.
- 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.
- Left-click the property node, and select the attribute you want to use.
- 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.