Set Waveform Attribute
- Aktualisiert2023-02-17
- 3 Minute(n) Lesezeit
Set Waveform Attribute
Adds or replaces a waveform attribute. You can wire any data type for the value of the attribute.
Inputs/Outputs

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

name
The name of the attribute.

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

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

waveform out
The waveform with the new or replaced attribute.

replaced
A Boolean value that indicates whether the attribute was overwritten.
| True | The attribute was overwritten. |
| False | The attribute was not overwritten. |

error out
Error information.
The node produces this output according to 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. |