VTI Instruments Corp.
288
EX1629 Command Set
vtex1629_set_teds_data
F
UNCTION
P
ROTOTYPE
ViStatus vtex1629_set_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.
channels
= an input integer array containing a list of channel numbers for which the tare value will be set. Valid
input values: 0 to 47.
tedsID[]
= an integer input array specifying the unique id of the TEDS device to be set. Each element of the array
represents a byte of data from the ID register of the TEDS device. The size of this array is equal to
VTEX1629_TEDS_IDSIZE.
maxLength
= an integer input value that specifies the maximum number of bytes that will be written to the TEDS
device. Valid input values: 0 to 32.
tedsInfo[]
= an integer input array specifying the TEDS data to be written. Each element of this array specifies a
byte of TEDS data, and the array should not contain any more bytes than specified by the
maxLength
parameter.
The maximum size for this array is VTEX1629_TEDS_DATASIZE.
D
ATA
I
TEM
R
ESET
V
ALUE
Not applicable for this function.
D
ESCRIPTION
This function writes data to the TEDS device indicated by the
channels
parameter. The only EEPROM supported is
the DS2430A.
The
tedsID
parameter must be equal to the value in the component connected to the channel. This parameter can be
queried by using the vtex1629_get_teds_data function.
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);
memset(tedsinfo, 0x0, sizeof(tedsinfo)); // clear device memory
status = vtex1629_set_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...