NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

DaqSystem.SaveTask Method (Task)

  • Updated2023-02-21
  • 1 minute(s) read
DaqSystem.SaveTask Method (Task)
Saves the specified task and any local channels it contains to Measurement Automation Explorer (MAX) under the name it was given when it was created.

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

Syntax

public void SaveTask(
	Task task
)
Public Sub SaveTask ( 
	task As Task
)

Parameters

task
Type: NationalInstruments.DAQmxTask
The task instance to save.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

You may save a task under a different name by calling SaveTaskAs(Task, String).

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

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

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

See Also

Log in to get a better experience