DAQmx Write Properties
Use the DAQmx Write properties to configure write options, such as to what position in a buffer you want to write, and to query the current status of write operations.
Property | Description |
---|---|
Relative To | Specifies the point in the buffer at which to write data. If you also specify an offset with Offset, the write operation begins at that offset relative to this point you select with this property. Details |
Offset | Specifies in samples per channel an offset at which a write operation begins. This offset is relative to the location you specify with RelativeTo. Details |
Regeneration Mode | Specifies whether to allow NI-DAQmx to generate the same data multiple times. Details |
Status:Current Write Position | Indicates the position in the buffer of the next sample to generate. This value is identical for all channels in the task. Details |
Status:Overcurrent:Overcurrent Channels Exist | Indicates if the device(s) detected an overcurrent condition for any channel in the task. Reading this property clears the overcurrent status for all channels in the task. You must read this property before you read OvercurrentChans. Otherwise, you will receive an error. Details |
Status:Overcurrent:Overcurrent Channels | Indicates the names of any virtual channels in the task for which an overcurrent condition has been detected. You must read OvercurrentChansExist before you read this property. Otherwise, you will receive an error. Details |
Status:Open Current Loop:Open Current Loop Channels Exist | Indicates if the device(s) detected an open current loop for any channel in the task. Reading this property clears the open current loop status for all channels in the task. You must read this property before you read OpenCurrentLoopChans. Otherwise, you will receive an error. Details |
Status:Open Current Loop:Open Current Loop Channels | Indicates the names of any virtual channels in the task for which the device(s) detected an open current loop. You must read OpenCurrentLoopChansExist before you read this property. Otherwise, you will receive an error. Details |
Status:Power Supply Fault:Power Supply Fault Channels Exist | Indicates if the device(s) detected a power supply fault for any channel in the task. Reading this property clears the power supply fault status for all channels in the task. You must read this property before you read PowerSupplyFaultChans. Otherwise, you will receive an error. Details |
Status:Power Supply Fault:Power Supply Fault Channels | Indicates the names of any virtual channels in the task that have a power supply fault. You must read PowerSupplyFaultChansExist before you read this property. Otherwise, you will receive an error. Details |
Status:Space Available in Buffer | Indicates in samples per channel the amount of available space in the buffer. Details |
Status:Total Samples Per Channel Generated | Indicates the total number of samples generated by each channel in the task. This value is identical for all channels in the task. Details |
Advanced:Raw Data Width | Indicates in bytes the required size of a raw sample to write to the task. Details |
Advanced:Number of Channels | Indicates the number of channels that DAQmx Write writes to the task. This value is the number of channels in the task. Details |
Advanced:Wait Mode | Specifies how DAQmx Write waits for space to become available in the buffer. Details |
Advanced:Sleep Time | Specifies in seconds the amount of time to sleep after checking for available buffer space if WaitMode is Sleep. Details |
Advanced:Next Write Is Last | Specifies that the next samples written are the last samples you want to generate. Use this property when performing continuous generation to prevent underflow errors after writing the last sample. RegenMode must be Do Not Allow Regeneration to use this property. Details |
Advanced:Digital Output:Number of Booleans Per Channel | Indicates the number of Booleans expected per channel in a sample for line-based writes. If a channel has fewer lines than this number, NI-DAQmx ignores the extra Booleans. Details |