www.vtiinstruments.com
EX1629 Command Set
191
vtex1629_get_teds_data
F
UNCTION
P
ROTOTYPE
ViStatus vtex1629_get_teds_data (ViSession
vi
, ViInt32
channel
, ViInt16 _VI_FAR
tedsID[]
, ViInt32
maxLength
, ViInt16 _VI_FAR
tedsInfo[]
);
F
UNCTION
P
ARAMETERS
vi
= contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
channel
= an integer input value that specifies the channel for which the tare value will be returned. Valid input
values: 0 to 47.
tedsID
= a return array that will contain the TEDS ID. Each element of the array corresponds to a byte of data from
the ID register of the TEDS device. The size of this array is VTEX1629_TEDS_IDSIZE (8).
maxLength
= an integer input value that specifies the maximum number of bytes to be retrieved from the TEDS
device into
tedsInfo
. In general, this should be equal to VTEX1629_TEDS_DATASIZE (32).
tedsInfo[]
= A return array that will contain the TEDS Info. Each element of the array corresponds to a byte of data
from the ID register of the TEDS device.
D
ATA
I
TEM
R
ESET
V
ALUE
Not applicable to this function.
D
ESCRIPTION
This function queries and returns the TEDS data for a given channel. It only supports the DS2430 EEPROM. For
communicating with other TEDS EEPROM devices, the vtex1629_read_teds_URN, vtex1629_read_teds_MLAN,
and vtex1629_write_teds_MLAN functions should be used.
The
tedsID
element is a unique, 64-bit (8-byte) serial number assigned by the manufacturer to the 1-Wire TEDS
device. The
tedsInfo
element contains the data stored in the DS2430’s 32-bytes of non-volatile memory.
E
XAMPLE
ViSession instrumentHandle;
ViStatus status;
ViInt16 tedsID[VTEX1629_TEDS_IDSIZE];
ViInt32 maxlen;
ViInt16 tedsinfo[VTEX1629_TEDS_DATASIZE];
…
…
status = vtex1629_get_teds_data(instrumentHandle,
47,
tedsID,
VTEX1629_TEDS_DATASIZE,
tedsinfo);
Содержание EX1629
Страница 310: ...VTI Instruments Corp 310 EX1629 Command Set...
Страница 342: ...VTI Instruments Corp 342 EX1629 Onboard Memory...