NI-DAQmx .NET Framework 4.5 API Reference

Table of Contents

DaqStream.WriteRaw Method

  • Updated2023-02-21
  • 1 minute(s) read
DaqStream.WriteRaw Method
Writes raw, unprocessed samples to the channels in the task.

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

Syntax

public void WriteRaw(
	bool autoStart,
	byte[] data
)
Public Sub WriteRaw ( 
	autoStart As Boolean,
	data As Byte()
)

Parameters

autoStart
Type: SystemBoolean
If set to , this method automatically calls Start if you do not explicitly call it.
data
Type: SystemByte
A byte array of raw data to write to the task.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

The format of the raw samples depends on the device to which you are writing. Consult your device documentation for more information.

You can use the MemoryStream class to create a byte array from other types.

See Also

Log in to get a better experience