Table Of Contents

Set Waveform Attribute (G Dataflow)

Last Modified: December 18, 2017

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

connector_pane_image
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

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: 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

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

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.

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics