DAQmx Write (VI)
- Updated2023-02-21
- 147 minute(s) read
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.
Analog DBL 1Chan 1Samp
Writes a floating-point sample to a task that contains a single analog output channel.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
Analog Wfm 1Chan 1Samp
Writes a waveform that contains a single sample to a task that contains a single analog output channel.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
Analog 1D DBL 1Chan NSamp
Writes one or more floating-point samples to a task that contains a single analog output channel.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
Analog Wfm 1Chan NSamp
Writes a waveform to a task that contains a single analog output channel.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
Analog 2D DBL NChan NSamp
Writes one or more floating-point samples to a task that contains one or more analog output channels.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
Analog 1D Wfm NChan NSamp
Writes one or more waveforms to a task that contains one or more analog output channels.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
Digital Bool 1Line 1Point
Writes a single Boolean sample to a task that contains a digital output channel composed of a single line.
![]() |
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. |
||||||
![]() |
data contains a Boolean sample to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains an 8-bit unsigned integer sample to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains an 16-bit unsigned integer sample to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains a 32-bit unsigned integer sample to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
Digital Wfm 1Chan 1Samp
Writes a digital waveform that contains a single sample to a task that contains a single digital output channel.
![]() |
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. |
||||||||||||
![]() |
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:
If the data you specify to write is 110 and the line order you specify is Dev1/port0/line2:0, the output is:
|
||||||||||||
![]() |
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. |
||||||||||||
![]() |
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.
|
||||||||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||||||||
![]() |
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. |
||||||||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
Digital Wfm 1Chan NSamp
Writes a digital waveform to a task that contains a single digital output channel.
![]() |
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. |
||||||||||||
![]() |
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:
If the data you specify to write is 110 and the line order you specify is Dev1/port0/line2:0, the output is:
|
||||||||||||
![]() |
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. |
||||||||||||
![]() |
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.
|
||||||||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||||||||
![]() |
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. |
||||||||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains a 1D array of waveforms to write to the task. Each element in the array corresponds to a channel in the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
Digital 1D Wfm NChan NSamp
Writes one or more digital waveforms to a task that contains one or more digital output channels.
![]() |
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. |
||||||
![]() |
data contains a 1D array of waveforms to write to the task. Each element in the array corresponds to a channel in the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
Counter Freq 1Chan 1Samp
Writes a new pulse frequency and duty cycle to a counter output task that contains a single channel.
![]() |
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. |
||||||
![]() |
frequency specifies at what frequency to generate pulses. |
||||||
![]() |
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. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
Counter Time 1Chan 1Samp
Writes a new pulse high time and low time to a counter output task that contains a single channel.
![]() |
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. |
||||||
![]() |
high time is the amount of time the pulse is high. |
||||||
![]() |
low time is the amount of time the pulse is low. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
high ticks is the number of ticks the pulse is high. |
||||||
![]() |
low ticks is the number of ticks the pulse is low. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote. |
||||||
![]() |
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.
|
Counter Freq 1Chan NSamp
Writes new pulse frequency and duty cycle pairs to a counter output task that contains a single channel.
![]() |
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. |
||||||
![]() |
data contains the pulse frequency and duty cycle pairs to write. Each element of the array corresponds to a sample to write.
|
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
Counter Time 1Chan NSamp
Writes new pulse high times and low times to a counter output task that contains a single channel.
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
Counter Ticks 1Chan NSamp
Writes new pulse high tick counts and low tick counts to a counter output task that contains a single channel.
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains the pulse frequency and duty cycle to write. Each element of the array corresponds to a channel in the task.
|
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains a 1D array of raw samples to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains a 1D array of raw samples to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains a 1D array of raw samples to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains a 1D array of raw samples to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains a 1D array of raw samples to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
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.
![]() |
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. |
||||||
![]() |
data contains a 1D array of raw samples to write to the task. |
||||||
![]() |
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. |
||||||
![]() |
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.
|
||||||
![]() |
auto start specifies if this VI automatically starts the task if you did not explicitly start it with the DAQmx Start Task VI. |
||||||
![]() |
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. |
||||||
![]() |
number of samples written per channel is the actual number of samples this VI successfully wrote to each channel in the task. |
||||||
![]() |
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.
|
In This Section
- Analog DBL 1Chan 1Samp
- Analog Wfm 1Chan 1Samp
- Analog 1D DBL 1Chan NSamp
- Analog Wfm 1Chan NSamp
- Analog 1D DBL NChan 1Samp
- Analog 1D Wfm NChan 1Samp
- Analog 2D DBL NChan NSamp
- Analog 1D Wfm NChan NSamp
- Analog 2D I16 NChan NSamp
- Analog 2D I32 NChan NSamp
- Analog 2D U16 NChan NSamp
- Digital Bool 1Line 1Point
- Digital 1D Bool 1Chan 1Samp
- Digital U8 1Chan 1Samp
- Digital U16 1Chan 1Samp
- Digital U32 1Chan 1Samp
- Digital Wfm 1Chan 1Samp
- Digital 1D U8 1Chan NSamp
- Digital 1D U16 1Chan NSamp
- Digital 1D U32 1Chan NSamp
- Digital Wfm 1Chan NSamp
- Digital 1D Bool NChan 1Samp
- Digital 2D Bool NChan 1Samp
- Digital 1D U8 NChan 1Samp
- Digital 1D U16 NChan 1Samp
- Digital 1D U32 NChan 1Samp
- Digital 1D Wfm NChan 1Samp
- Digital 2D U8 NChan NSamp
- Digital 2D U16 NChan NSamp
- Digital 2D U32 NChan NSamp
- Digital 1D Wfm NChan NSamp
- Counter Freq 1Chan 1Samp
- Counter Time 1Chan 1Samp
- Counter Ticks 1Chan 1Samp
- Counter Freq 1Chan NSamp
- Counter Time 1Chan NSamp
- Counter Ticks 1Chan NSamp
- Counter Freq NChan 1Samp
- Counter Time NChan 1Samp
- Counter Ticks NChan 1Samp
- Raw 1D U8
- Raw 1D U16
- Raw 1D U32
- Raw 1D I8
- Raw 1D I16
- Raw 1D I32