Using Properties and Attributes

NI DC Power Supply & SMU

Using Properties and Attributes

NI-DCPower contains high-level VIs and functions that set most of the device properties and attributes.

Refer to NI-DCPower LabVIEW Reference or NI-DCPower Function Reference for a complete a listing of the available properties and attributes in NI-DCPower.

Some properties and attributes are not accessible through the high-level VIs and functions. The values for these properties and attributes must be set using the appropriate property or attribute.

Accessing Properties

In LabVIEW, properties are accessed through the NI-DCPower property node. To access properties in LabVIEW, complete the following steps:

  1. Open a VI.
  2. In the block diagram view, navigate to the NI-DCPower palette.
    • (LabVIEW 8.0 or later) From the Functions palette, select Measurement I/O»NI-DCPower.
    • (LabVIEW 7.x) From the Functions palette, select All Functions»Instrument I/O»Instrument Drivers»NI-DCPower.
  3. Drag and drop the property node icon to the block diagram.
  4. Left-click the property node, and select the property that you want to use.
  5. To add additional properties, resize the property node. To resize the property node, drag the resizing handle at the top or bottom of the node and release the mouse button.
Note  To access a channel-based property, you must pass an Active Channel. The Active Channel is listed first in the property node. To access a device-based property, do not pass an Active Channel or pass an empty string.

Accessing Attributes

In C and Visual Basic, attributes are accessed with the Get Attribute and Set Attribute functions. Get and Set Attribute functions exist for each supported data type in NI-DCPower.