Set Waveform Attribute

Adds or replaces a waveform attribute. You can wire any data type for the value of the attribute.

1378

Inputs/Outputs

datatype_icon

waveform

The waveform for which you want to add or replace an attribute.

datatype_icon

name

The name of the attribute.

If the attribute in name already exists, the node overwrites the attribute with the new value and replaced is True. If the attribute in name does not exist already, the node creates a new attribute.
datatype_icon

value

The value of the attribute. You can wire any data type to this input.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

waveform out

The waveform with the new or replaced attribute.

datatype_icon

replaced

A Boolean value that indicates whether the attribute was overwritten.

True The attribute was overwritten.
False The attribute was not overwritten.
datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Waveform Attributes Set by DAQmx

Waveform signals obtained from a DAQ device include specific waveform attributes whose data you can access in your program. The following table lists the waveform attributes set by DAQmx.

Attribute Name Data Type Acceptable Values Description
Name of Channel NI_ChannelName String Any value NI_ChannelName is the name of the virtual channel producing the waveform.
Name of Digital Line(s) NI_LineNames String Any value NI_LineNames is the name of the digital line in the waveform.
Unit for Data NI_UnitDescription String Volts, PSI, etc. NI_UnitDescription is the units of measure for the waveform.
Decibel Reference NI_dBReference Double Finite values greater than zero NI_dBReference is the reference value to use when converting measurement levels to decibel.