DAQmxWriteToTEDSFromArray
From NI-DAQmx C Functions
DAQmxWriteToTEDSFromArray
int32 DAQmxWriteToTEDSFromArray (const char physicalChannel[], uInt8 bitstream[], uInt32 arraySize, int32 basicTEDSOptions);
Purpose
Writes TEDS data, stored as a 1D array of 8-bit unsigned integers, to the sensor connected to the physical channel you specify.
Parameters
| Input | ||||||||||||||
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| physicalChannel | const char [] | The name of the physical channel you want to configure. | ||||||||||||
| bitstream | uInt8 | Represents the TEDS bitstream to write to the sensor. This bitstream must be constructed according to the IEEE 1451.4 specification. | ||||||||||||
| arraySize |
|
Number of bytes in the bitstream. | ||||||||||||
| basicTEDSOptions |
|
Specifies how to handle basic TEDS data in the bitstream.
|
Return Value
| Name | Type | Description |
|---|---|---|
| status | int32 | The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error. |