The NI-DAQmx Write function writes samples to the specified generation task. The different instances of the function allow for the type of generation (analog or digital), the number of virtual channels, the number of samples, and the data type to be selected. The NI-DAQmx Write Function moves samples from the Application Development Environment (ADE) Memory to the PC Buffer in RAM. These samples are then transferred from the PC Buffer to the DAQ board FIFO in order to be generated.
Each instance of the NI-DAQmx Write function has an auto start input to determine if the function will implicitly start the task if it has not already been explicitly started. As was previously discussed in the NI-DAQmx Start Task section of this document, the NI-DAQmx Start Task function should be used to explicitly start a generation task that uses hardware timing. It should also be used to maximize performance if the NI-DAQmx Write function will be executed multiple times.