NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

DaqSystem.SaveGlobalChannel Method (Channel, String, SaveOptions)

  • Updated2023-02-21
  • 1 minute(s) read
DaqSystem.SaveGlobalChannel Method (Channel, String, SaveOptions)
Saves the specified local or global channel to Measurement Automation Explorer (MAX) as a global channel, under the virtual name it was given when it was created and with specified author and options values.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

public void SaveGlobalChannel(
	Channel channel,
	string author,
	SaveOptions options
)
Public Sub SaveGlobalChannel ( 
	channel As Channel,
	author As String,
	options As SaveOptions
)

Parameters

channel
Type: NationalInstruments.DAQmxChannel
The channel instance to save.
author
Type: SystemString
A user-specified string that represents the name to store with the channel. For example, channels created with the DAQ Assistant have the string "DAQ Assistant" as their author. You may pass Empty.
options
Type: NationalInstruments.DAQmxSaveOptions
One or more flags indicating various save options.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

You may save a channel under a different name by calling SaveGlobalChannelAs(Channel, String).

You cannot view programmatically saved global channels in the DAQ Assistant for versions of NI-DAQ earlier than 7.4. To view a programmatically saved global channel in an earlier version of NI-DAQ, first use the DAQ Assistant in NI-DAQ 7.4 or later to save the global channel.

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

See Also

Log in to get a better experience