NI-DAQmx .NET Framework 4.5 API Reference

Table of Contents

DaqSystem.SaveTask Method (Task, String, SaveOptions)

  • Updated2023-02-21
  • 1 minute(s) read
DaqSystem.SaveTask Method (Task, String, SaveOptions)
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, with specifed author and options values.

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

Syntax

public void SaveTask(
	Task task,
	string author,
	SaveOptions options
)
Public Sub SaveTask ( 
	task As Task,
	author As String,
	options As SaveOptions
)

Parameters

task
Type: NationalInstruments.DAQmxTask
The task instance to save.
author
Type: SystemString
A user-specified string that represents the name to store with the task. For example, tasks 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 task under a different name by calling SaveTaskAs(Task, String).

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