Skip to Navigation

4.2.22 - eTCValues()

An easy function that updates and reads all the timers and counters. This is a simple alternative to the very flexible IOType based method normally used by this driver.

Declaration:


LJ_ERROR _stdcall eTCValues (  LJ_HANDLE Handle,
                               long *aReadTimers,
                               long *aUpdateResetTimers,
                               long *aReadCounters,
                               long *aResetCounters,
                               double *aTimerValues,
                               double *aCounterValues,
                               long Reserved1,
                               long Reserved2)

Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:

  • Handle – Handle returned by OpenLabJack().
  • 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 always have at least 2 elements.
  • aUpdateResetTimers – An array where 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 elements.
  • aReadCounters – An array where each element specifies whether to read that counter. A nonzero value for an array element specifies to read that counter. For the U3, this array must always have at least 2 elements.
  • aResetCounters – An array where each element specifies whether to reset that counter. A nonzero value for an array element specifies to reset that counter. 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 if the appropriate element is set in the aUpdateResetTimers array. For the U3, this array must always have at least 2 elements.
  • Reserved (1&2) – Pass 0.

Outputs:

  • aTimerValues – An array where each element is the value read from that timer if the appropriate element is set in the aReadTimers array.
  • aCounterValues – An array where each element is the value read from that counter if the appropriate element is set in the aReadCounters array.

tags:

Comments

No comments yet. Speak up. We're listening.