NI-DAQmx .NET Framework 4.5 API Reference

Table of Contents

DaqSystem.SaveGlobalChannelAs Method (Channel, String, String, SaveOptions)

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

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

Syntax

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

Parameters

channel
Type: NationalInstruments.DAQmxChannel
The channel instance to save.
persistedName
Type: SystemString
The name to use for the saved channel.
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

If you do not assign a value to the saved channel, NI-DAQmx uses the name currently assigned to the channel.

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