DAQmxWriteToTEDSFromFile

NI-DAQmx C Functions

DAQmxWriteToTEDSFromFile

int32 DAQmxWriteToTEDSFromFile (const char physicalChannel[], const char filePath[], int32 basicTEDSOptions);

Purpose

Writes TEDS data from a virtual TEDS file 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.
filePath const char [] Specifies the filename of a virtual TEDS file that contains the bitstream to write.
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.