4.2.22 eTCValues()
An “easy” f c simple
alternative t
eclaration:
un tion that updates and reads all the timers and counters. This is a
to he very flexible IOType based method normally
used by this driver.
D
LJ_HANDLE Handle,
long *aReadTimers,
long *aResetCounters,
double *aCounterValues,
long Reserved1,
long Reserved2)
Parameter Description:
LJ_ERROR _stdcall eTCValues (
long *aUpdateResetTimers,
long *aReadCounters,
double *aTimerValues,
Returns: LabJack errorcodes o
Inputs:
• Handle – Handle retu
• aReadTimers – An array where each element specifies whether to read that
timer. A nonzero value for an array element specifies to read that timer. For the
U3, this array must alw 2 elements.
• aUpdateResetTimers each element specifies whether to
update/reset that timer. A nonzero value for an array element specifies to
update/reset that timer. For the U3, this array must always have at least 2
• s whether to read that
counter. A nonzero value for an array element specifies to read that counter.
t 2 elements.
r.
•
if the appropriate element is set in the
•
Outputs:
• ach element is the value read from that timer if
• alues – An array where each element is the value read from that
r 0 for no error.
rned by OpenLabJack().
ays have at least
– An array where
elements.
aReadCounters – An array where each element specifie
For the U3, this array must always have at leas
• aResetCounters – An array where each element specifies whether to reset that
counter. A nonzero value for an array element specifies to reset that counte
For the U3, this array must always have at least 2 elements.
aTimerValues – An array where each element is the new value for that timer.
Each value is only updated
aUpdateResetTimers array. For the U3, this array must always have at least 2
elements.
Reserved (1&2) – Pass 0.
aTimerValues – An array where e
the appropriate element is set in the aReadTimers array.
aCounterV
counter if the appropriate element is set in the aReadCounters array.
61