DAQmx Save Global Channel

DAQmx - Data Acquisition VIs and Functions

DAQmx Save Global Channel

Saves the specified local or global channel to MAX as a global channel. You must specify both the local or global channel to save and a task that contains that channel.

Programmatically saved global channels cannot be viewed in NI-DAQ 7.3 or earlier. To view a programmatically saved global channel in an earlier version of NI-DAQ, first use MAX to open the global channel in NI-DAQ 7.4 or later and resave it.

Refer to the DAQmx Professional Developer Tools Web site for more information and examples of programmatically saving global channels.

DAQmx Save Global Channelc.gif

minibutton.gif  Place on the block diagram. minibutton.gif  Find on the Functions palette.
civrn.gif task/channels in is the task that contains the local or global channel you want to save. If you use a DAQmx global channel constant or control to select a global channel to modify and save, wire that constant or control to both this input and the channel name input.
cstr.gif channel name is the local or global channel you want to save. The channel must be inside the task specified with the task/channels in input. If you use a DAQmx global channel constant or control to select a global channel to modify and save, wire that constant or control to both this input and the task/channels in input.
cstr.gif save as is the name to save the task, global channel, or custom scale as. If you do not wire a value to this input, NI-DAQmx uses the name currently assigned to the task, global channel, or custom scale.
cstr.gif author is a name to store with the task, global channel, or custom scale.
cerrcodeclst.gif error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
cbool.gif status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
ci32.gif code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.
cstr.gif source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.
cbool.gif allow interactive editing? specifies whether to allow the task, global channel, or custom scale to be edited in the DAQ Assistant. If allow interactive editing? is TRUE, the DAQ Assistant must support all task or global channel settings.
cbool.gif allow interactive deletion? specifies whether to allow the task, global channel, or custom scale to be deleted through MAX.
cbool.gif overwrite existing channel? specifies whether to overwrite a global channel of the same name if one is already saved in MAX. If this input is FALSE and a global channel of the same name is already saved in MAX, this VI returns an error.
iivrn.gif task out is the same task or global channels you wired to the task/channels in input. This output is not the saved task or global channels.
ierrcodeclst.gif error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
ibool.gif status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
ii32.gif code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
istr.gif source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.