NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

DaqSystem.SaveGlobalChannelAs Method (Channel, String)

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

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

Syntax

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

Parameters

channel
Type: NationalInstruments.DAQmxChannel
The channel instance to save.
persistedName
Type: SystemString
The name to use for the saved channel.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

This method sets the Default option for the saved channel and uses an empty string for the channel Author. You can specify your own options and author value by using the SaveGlobalChannelAs(Channel, String, String, SaveOptions) overload.

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