Returns: LabJack errorc rror.
Inputs:
• Handle – Han enLabJack().
• Channel – The channel to write to. 0-19 corresponds to FIO0-CIO3.
• State – The state to write to the digital output. 0=False=Low and 1=True=High.
” c and counters. This is a simple
alternative t d by this driver.
When nee
eclaration:
odes or 0 for no e
dle returned by Op
4.2.21 eTCConfig()
An “easy fun tion that configures and initializes all the timers
to he very flexible IOType based method normally use
ded, this function automatically configures the needed lines as digital.
D
eTCConfig ( LJ_HANDLE Handle,
long *aEnableTimers,
long TimerClockBaseIndex,
long *aTimerModes,
double *aTimerValues,
long Reserved1,
)
arameter Description:
LJ_ERROR _stdcall
long *aEnableCounters,
long TCPinOffset,
long TimerClockDivisor,
long Reserved2
P
eturns: LabJack errorcodes or 0 for no error.
• bJack().
• aEnableTimers – An array where each element specifies whether that timer is
ting from 0, so for instance,
value for an
array element specifies to enable that timer. For the U3, this array must always
• aEnableCounters – An array where each element specifies whether that counter
is enabled. Counters do not have to be enabled in order starting from 0, so
unter1 can be enabled when Counter0 is disabled. A nonzero value for an
tart assigning timers and
default is LJ_tc48MHZ.
TimerClockDivisor – Pass a divisor from 0-255 where 0 is a divisor of 256.
element is a constant specifying the mode
have at least 2 elements.
• aTimerValues here each element is specifies the initial value for
that timer. For the U3, this array must always have at least 2 elements.
• Reserved (1&2) – Pass 0.
R
Inputs:
Handle – Handle returned by OpenLa
enabled. Timers must be enabled in order star
Timer1 cannot be enabled without enabling Timer0 also. A nonzero
have at least 2 elements.
Co
array element specifies to enable that counter. For the U3, this array must
always have at least 2 elements.
• TCPinOffset – Value from 0-8 specifies where to s
counters.
• TimerClockBaseIndex – Pass a constant to set the timer base clock. The
•
• aTimerModes – An array where each
for that timer. For the U3, this array must always
– An array w
60