DAQmxWriteToTEDSFromArray

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 uInt32 Number of bytes in the bitstream.
basicTEDSOptions int32 Specifies how to handle basic TEDS data in the bitstream.
Value Description
Do Not Write Ignore basic TEDS data.
Write to EEPROM Write basic TEDS data to the EEPROM, even if the sensor includes a PROM. You cannot write basic TEDS data if the PROM contains data.
Write to PROM Write basic TEDS data to the PROM. Any subsequent attempts to write basic TEDS data result in an error.

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.