DAQmx Write (VI)

DAQmx - Data Acquisition VIs and Functions

Edition Date: January 2019

Part Number: 370469AP-01

»View Product Info
Download Help (Windows Only)
Owning Palette: DAQmx - Data Acquisition VIs and Functions
Installed With: NI-DAQmx

Writes samples to the task or virtual channels you specify. The instances of this polymorphic VI specify the format of the samples to write, whether to write one or multiple samples, and whether to write to one or multiple channels.

If the task uses on-demand timing, this VI returns only after the device generates all samples. On-demand is the default timing type if you do not use the DAQmx Timing VI. If the task uses any timing type other than on-demand, this VI returns immediately and does not wait for the device to generate all samples. Your application must determine if the task is done to ensure that the device generated all samples.

The DAQmx Write properties include additional configuration options for write operations.

Use the pull-down menu to select an instance of this VI.

Analog DBL 1Chan 1Samp

Writes a floating-point sample to a task that contains a single analog output channel.

DAQmx Write (Analog DBL 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

data contains a sample to write to the task. The data you write must be in the units of the generation, including any custom scales. Use the DAQmx Create Virtual Channel VI or the DAQ Assistant to specify these units.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog Wfm 1Chan 1Samp

Writes a waveform that contains a single sample to a task that contains a single analog output channel.

DAQmx Write (Analog Wfm 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cmsdt.gif

data contains a waveform to write to the task. The data you write must be in the units of the generation, including any custom scales. Use the DAQmx Create Virtual Channel VI or the DAQ Assistant to specify these units.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog 1D DBL 1Chan NSamp

Writes one or more floating-point samples to a task that contains a single analog output channel.

DAQmx Write (Analog 1D DBL 1Chan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1ddbl.gif

data contains a 1D array of samples to write to the task. Each element of the array corresponds to a sample to write.

The data you write must be in the units of the generation, including any custom scales. Use the DAQmx Create Virtual Channel VI or the DAQ Assistant to specify these units.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog Wfm 1Chan NSamp

Writes a waveform to a task that contains a single analog output channel.

DAQmx Write (Analog Wfm 1Chan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cmsdt.gif

data contains a waveform to write to the task. The data you write must be in the units of the generation, including any custom scales. Use the DAQmx Create Virtual Channel VI or the DAQ Assistant to specify these units.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog 1D DBL NChan 1Samp

Writes a single floating-point sample to each channel in a task that contains one or more analog output channels.

DAQmx Write (Analog 1D DBL NChan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1ddbl.gif

data contains a 1D array of samples to write to the task. Each element of the array corresponds to a channel in the task. The order of the channels in the array corresponds to the order in which you add the channels to the task.

The data you write must be in the units of the generation, including any custom scales. Use the DAQmx Create Virtual Channel VI or the DAQ Assistant to specify these units.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog 1D Wfm NChan 1Samp

Writes a waveform that contains a single sample to each channel in a task that contains one or more analog output channels.

DAQmx Write (Analog 1D Wfm NChan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1dmsdt.gif

data contains a 1D array of waveforms to write to the task. Each element in the array corresponds to a channel in the task. The order of the channels in the array corresponds to the order in which you add the channels to the task.

The data you write must be in the units of the generation, including any custom scales. Use the DAQmx Create Virtual Channel VI or the DAQ Assistant to specify these units.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog 2D DBL NChan NSamp

Writes one or more floating-point samples to a task that contains one or more analog output channels.

DAQmx Write (Analog 2D DBL NChan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c2ddbl.gif

data contains a 2D array of samples to write to the task. Each row corresponds to a channel in the task. Each column corresponds to a sample to write to each channel. The order of the channels in the array corresponds to the order in which you add the channels to the task.

The data you write must be in the units of the generation, including any custom scales. Use the DAQmx Create Virtual Channel VI or the DAQ Assistant to specify these units.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog 1D Wfm NChan NSamp

Writes one or more waveforms to a task that contains one or more analog output channels.

DAQmx Write (Analog 1D Wfm NChan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1dmsdt.gif

data contains a 1D array of waveforms to write to the task. Each element in the array corresponds to a channel in the task. The order of the channels in the array corresponds to the order in which you add the channels to the task.

The data you write must be in the units of the generation, including any custom scales. Use the DAQmx Create Virtual Channel VI or the DAQ Assistant to specify these units.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog 2D I16 NChan NSamp

Writes one or more unscaled, 16-bit signed integer samples to a task that contains one or more analog output channels.

DAQmx Write (Analog 2D I16 NChan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c2di16.gif

data contains a 2D array of 16-bit signed integer samples to write to the task. Each row corresponds to a channel in the task. Each column corresponds to a sample to write to each channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog 2D I32 NChan NSamp

Writes one or more unscaled, 32-bit signed integer samples to a task that contains one or more analog output channels.

DAQmx Write (Analog 2D I32 NChan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/ci32.gif

data contains a 2D array of 32-bit signed integer samples to write to the task. Each row corresponds to a channel in the task. Each column corresponds to a sample to write to each channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog 2D U16 NChan NSamp

Writes one or more unscaled 16-bit unsigned integer samples to a task that contains one or more analog output channels.

DAQmx Write (Analog 2D U16 NChan Nsamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c2du16.gif

data contains a 2D array of 16-bit unsigned integer samples to write to the task. Each row corresponds to a channel in the task. Each column corresponds to a sample to write to each channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital Bool 1Line 1Point

Writes a single Boolean sample to a task that contains a digital output channel composed of a single line.

DAQmx Write (Digital Bool 1Line 1Point)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cbool.gif

data contains a Boolean sample to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D Bool 1Chan 1Samp

Writes a single sample of Boolean values to a task that contains a single digital output channel. The channel can contain one or more digital lines.

DAQmx Write (Digital 1D Bool 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1dbool.gif

data contains a 1D array of Boolean values to write to the task. Each element of the array corresponds to a digital line within the channel. The order of the lines in the array corresponds to the order in which you add the lines to the channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital U8 1Chan 1Samp

Writes a single 8-bit unsigned integer sample to a task that contains a single digital output channel. Use an instance that writes 8-bit unsigned integers for devices with up to eight lines per port.

DAQmx Write (Digital U8 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cu8.gif

data contains an 8-bit unsigned integer sample to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital U16 1Chan 1Samp

Writes a single 16-bit unsigned integer sample to a task that contains a single digital output channel. Use an instance that writes 16-bit unsigned integers for devices with up to 16 lines per port.

DAQmx Write (Digital U16 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cu16.gif

data contains an 16-bit unsigned integer sample to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital U32 1Chan 1Samp

Writes a single 32-bit unsigned integer sample to a task that contains a single digital output channel. Use an instance that writes 32-bit unsigned integers for devices with up to 32 lines per port.

DAQmx Write (Digital U32 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cu32.gif

data contains a 32-bit unsigned integer sample to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital Wfm 1Chan 1Samp

Writes a digital waveform that contains a single sample to a task that contains a single digital output channel.

DAQmx Write (Digital Wfm 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cdigwfm.gif

data contains a digital waveform to write to the task. The data is written in the order that the lines are added to the task. The most significant bit is the first line added, and the least significant bit is the last line added.

Therefore, if the data you specify to write is 110, and the line order you specify is Dev1/port0/line0:2, the output is:

Dev1/port0/line0 1
Dev1/port0/line1 1
Dev1/port0/line2 0

If the data you specify to write is 110 and the line order you specify is Dev1/port0/line2:0, the output is:

Dev1/port0/line0 0
Dev1/port0/line1 1
Dev1/port0/line2 1
/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D U8 1Chan NSamp

Writes one or more 8-bit unsigned integer samples to a task that contains a single digital output channel. Use an instance that writes 8-bit unsigned integers for devices with up to eight lines per port.

DAQmx Write (Digital 1D U8 1Chan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1du8.gif

data contains a 1D array of 8-bit unsigned integer samples to write to the task. Each element in the array corresponds to a point of data to write.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D U16 1Chan NSamp

Writes one or more 16-bit unsigned integer samples to a task that contains a single digital output channel. Use an instance that writes 16-bit unsigned integers for devices with up to 16 lines per port.

DAQmx Write (Digital 1D U16 1Chan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1du16.gif

data contains a 1D array of 16-bit unsigned integer samples to write to the task. Each element in the array corresponds to a point of data to write to the channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D U32 1Chan NSamp

Writes one or more 32-bit unsigned integer samples to a task that contains a single digital output channel. Use an instance that writes 32-bit unsigned integers for devices with up to 32 lines per port.

DAQmx Write (Digital 1D U32 1Chan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1du32.gif

data contains a 1D array of 32-bit unsigned integer samples to write to the task. Each element in the array corresponds to a point of data to write to the channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital Wfm 1Chan NSamp

Writes a digital waveform to a task that contains a single digital output channel.

DAQmx Write (Digital Wfm 1Chan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cdigwfm.gif

data contains a digital waveform to write to the task. The data is written in the order that the lines are added to the task. The most significant bit is the first line added, and the least significant bit is the last line added.

Therefore, if the data you specify to write is 110, and the line order you specify is Dev1/port0/line0:2, the output is:

Dev1/port0/line0 1
Dev1/port0/line1 1
Dev1/port0/line2 0

If the data you specify to write is 110 and the line order you specify is Dev1/port0/line2:0, the output is:

Dev1/port0/line0 0
Dev1/port0/line1 1
Dev1/port0/line2 1
/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D Bool NChan 1Samp

Writes a single sample of Boolean values to each channel in a task that contains multiple digital output channels. Each channel in the task can contain only one digital line.

DAQmx Write (Digital 1D Bool NChan 1Samp 1Line)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1dbool.gif

data contains a 1D array of Boolean samples to write to the task. Each element of the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 2D Bool NChan 1Samp

Writes a single sample of Boolean values to each channel in a task that contains one or more digital output channels. The channels can contain one or more digital lines.

DAQmx Write (Digital 2D Bool NChan 1Samp NLine)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c2dbool.gif

data contains a 2D array of Boolean samples to write to the task. Each row corresponds to a channel in the task. Each column corresponds to a line in that channel. The order of the channels in the array corresponds to the order in which you add the channels to the task. The order of the lines in the array corresponds to the order in which you add the lines to the channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D U8 NChan 1Samp

Writes a single 8-bit unsigned integer sample to each channel in a task that contains one or more digital output channels. Use an instance that writes 8-bit unsigned integers for devices with up to eight lines per port.

DAQmx Write (Digital 1D U8 NChan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1du8.gif

data contains a 1D array of 8-bit unsigned integer samples to write to the task. Each element in the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D U16 NChan 1Samp

Writes a single 16-bit unsigned integer sample to a task that contains one or more digital output channels. Use an instance that writes 16-bit unsigned integers for devices with up to 16 lines per port.

DAQmx Write (Digital 1D U16 NChan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1du16.gif

data contains a 1D array of 16-bit unsigned integer samples to write to the task. Each element in the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D U32 NChan 1Samp

Writes a single 32-bit unsigned integer sample to a task that contains one or more digital output channels. Use an instance that writes 32-bit unsigned integers for devices with up to 32 lines per port.

DAQmx Write (Digital 1D U32 NChan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1du32.gif

data contains a 1D array of 32-bit unsigned integer samples to write to the task. Each element in the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D Wfm NChan 1Samp

Writes a digital waveform that contains a single sample to each channel in a task that contains one or more digital output channels.

DAQmx Write (Digital 1D Wfm NChan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1ddigwfm.gif

data contains a 1D array of waveforms to write to the task. Each element in the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 2D U8 NChan NSamp

Writes one or more 8-bit unsigned integer samples to a task that contains one or more digital output channels. Use an instance that writes 8-bit unsigned integers for devices that have up to eight lines per port.

DAQmx Write (Digital 2D U8 NChan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c2du8.gif

data contains a 2D array of 8-bit unsigned integer samples to write to the task. Each row corresponds to a channel in the task. Each column corresponds to a sample to write to each channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 2D U16 NChan NSamp

Writes one or more 16-bit unsigned integer samples to a task that contains one or more digital output channels. Use an instance that writes 16-bit unsigned integers for devices with up to 16 lines per port.

DAQmx Write (Digital 2D U16 NChan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c2du16.gif

data contains a 2D array of 16-bit unsigned integer samples to write to the task. Each row corresponds to a channel in the task. Each column corresponds to a sample to write to each channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 2D U32 NChan NSamp

Writes one or more 32-bit unsigned integer samples to a task that contains one or more digital output channels. Use an instance that writes 32-bit unsigned integers for devices with up to 32 lines per port.

DAQmx Write (Digital 2D U32 NChan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c2du32.gif

data contains a 2D array of 32-bit unsigned integer samples to write to the task. Each row corresponds to a channel in the task. Each column corresponds to a sample to write to each channel.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital 1D Wfm NChan NSamp

Writes one or more digital waveforms to a task that contains one or more digital output channels.

DAQmx Write (Digital 1D Wfm NChan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1ddigwfm.gif

data contains a 1D array of waveforms to write to the task. Each element in the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Counter Freq 1Chan 1Samp

Writes a new pulse frequency and duty cycle to a counter output task that contains a single channel.

DAQmx Write (Counter Frequency 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

frequency specifies at what frequency to generate pulses.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

duty cycle is the width of the pulse divided by the pulse period. NI-DAQmx uses this ratio combined with frequency to determine pulse width and the interval between pulses.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Counter Time 1Chan 1Samp

Writes a new pulse high time and low time to a counter output task that contains a single channel.

DAQmx Write (Counter Time 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

high time is the amount of time the pulse is high.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

low time is the amount of time the pulse is low.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Counter Ticks 1Chan 1Samp

Writes a new pulse high tick count and low tick count to a counter output task that contains a single channel.

DAQmx Write (Counter Ticks 1Chan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cu32.gif

high ticks is the number of ticks the pulse is high.

/images/reference/en-XX/help/370469AP-01/cu32.gif

low ticks is the number of ticks the pulse is low.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Counter Freq 1Chan NSamp

Writes new pulse frequency and duty cycle pairs to a counter output task that contains a single channel.

DAQmx Write (Counter 1D Frequency 1Chan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cnclst.gif

data contains the pulse frequency and duty cycle pairs to write. Each element of the array corresponds to a sample to write.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

frequency specifies at what frequency to generate pulses.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

duty cycle is the width of the pulse divided by the pulse period. NI-DAQmx uses this ratio combined with frequency to determine pulse width and the interval between pulses.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Counter Time 1Chan NSamp

Writes new pulse high times and low times to a counter output task that contains a single channel.

DAQmx Write (Counter 1D Time 1Chan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cnclst.gif

data contains the pulse high times and low times to write to the task. Each element of the array corresponds to a sample to write.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

high time is the amount of time the pulse is high.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

low time is the amount of time the pulse is low.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Counter Ticks 1Chan NSamp

Writes new pulse high tick counts and low tick counts to a counter output task that contains a single channel.

DAQmx Write (Counter 1D Ticks 1Chan NSamp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cnclst.gif

data contains the pulse high ticks and low ticks to write to the task. Each element of the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cu32.gif

high ticks is the number of ticks the pulse is high.

/images/reference/en-XX/help/370469AP-01/cu32.gif

low ticks is the number of ticks the pulse is low.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Counter Freq NChan 1Samp

Writes a new pulse frequency and duty cycle to each channel in a counter output task that contains one or more channels.

DAQmx Write (Counter 1D Frequency NChan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cnclst.gif

data contains the pulse frequency and duty cycle to write. Each element of the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

frequency specifies at what frequency to generate pulses.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

duty cycle is the width of the pulse divided by the pulse period. NI-DAQmx uses this ratio combined with frequency to determine pulse width and the interval between pulses.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Counter Time NChan 1Samp

Writes a new pulse high time and low time to each channel in a counter output task that contains one or more channels.

DAQmx Write (Counter 1D Time NChan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cnclst.gif

data contains the pulse high time and low time to write to the task. Each element of the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

high time is the amount of time the pulse is high.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

low time is the amount of time the pulse is low.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Counter Ticks NChan 1Samp

Writes new pulse high tick counts and low tick counts to each channel in a counter output task that contains one or more channels.

DAQmx Write (Counter 1DTicks NChan 1Samp)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/cnclst.gif

data contains the pulse high ticks and low ticks to write to the task. Each element of the array corresponds to a channel in the task.

/images/reference/en-XX/help/370469AP-01/cu32.gif

high ticks is the number of ticks the pulse is high.

/images/reference/en-XX/help/370469AP-01/cu32.gif

low ticks is the number of ticks the pulse is low.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Raw 1D U8

Writes multiple raw, 8-bit unsigned integer samples to a task. Use this instance for devices that use 8-bit unsigned integers as the internal representation of a sample.

DAQmx Write (Raw 1D U8)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1du8.gif

data contains a 1D array of raw samples to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Raw 1D U16

Writes multiple raw, 16-bit unsigned integer samples to a task. Use this instance for devices that use 16-bit unsigned integers as the internal representation of a sample.

DAQmx Write (Raw 1D U16)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1du16.gif

data contains a 1D array of raw samples to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Raw 1D U32

Writes multiple raw, 32-bit unsigned integer samples to a task. Use this instance for devices that use 32-bit unsigned integers as the internal representation of a sample.

DAQmx Write (Raw 1D U32)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1du32.gif

data contains a 1D array of raw samples to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Raw 1D I8

Writes multiple raw, 8-bit signed integer samples to a task. Use this instance for devices that use 8-bit signed integers as the internal representation of a sample.

DAQmx Write (Raw 1D I8)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1di8.gif

data contains a 1D array of raw samples to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Raw 1D I16

Writes multiple raw, 16-bit signed integer samples to a task. Use this instance for devices that use 16-bit signed integers as the internal representation of a sample.

DAQmx Write (Raw 1D I16)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1di16.gif

data contains a 1D array of raw samples to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Raw 1D I32

Writes multiple raw, 32-bit signed integer samples to a task. Use this instance for devices that use 32-bit signed integers as the internal representation of a sample.

DAQmx Write (Raw 1D I32)

/images/reference/en-XX/help/370469AP-01/civrn.gif

task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically.

/images/reference/en-XX/help/370469AP-01/c1di32.gif

data contains a 1D array of raw samples to write to the task.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

timeout specifies the amount of time in seconds to wait for the VI to write all samples. NI-DAQmx performs a timeout check only if the VI must wait before it writes data. This VI returns an error if the time elapses. The default timeout is 10 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to write the submitted samples. If the VI could not write all the submitted samples, it returns an error and the number of samples successfully written in the number of samples written per channel output.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/cbool.gif

auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically.

/images/reference/en-XX/help/370469AP-01/iu32.gif

number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

WAS THIS ARTICLE HELPFUL?

Not Helpful