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:
DAQ Devices
- UD Series (U3, U6, UE9)
- U3
- Start with the UD Driver
- User's Guide
- 1 - Installation on Windows
- 2 - Hardware Description
- 3 - Operation
- 4 - LabJackUD High-Level Driver
- 4.1 - Overview
- 4.2 - Function Reference
- 4.2.1 - ListAll()
- 4.2.2 - OpenLabJack()
- 4.2.3 - eGet() and ePut()
- 4.2.4 - eAddGoGet()
- 4.2.5 - AddRequest()
- 4.2.6 - Go()
- 4.2.7 - GoOne()
- 4.2.8 - GetResult()
- 4.2.9 - GetFirstResult() and GetNextResult()
- 4.2.10 - DoubleToStringAddress()
- 4.2.11 - StringToDoubleAddress()
- 4.2.12 - StringToConstant()
- 4.2.13 - ErrorToString()
- 4.2.14 - GetDriverVersion()
- 4.2.15 - TCVoltsToTemp()
- 4.2.16 - ResetLabJack()
- 4.2.17 - eAIN()
- 4.2.18 - eDAC()
- 4.2.19 - eDI()
- 4.2.20 - eDO()
- 4.2.21 - eTCConfig()
- 4.2.22 - eTCValues()
- 4.3 - Example Pseudocode
- 4.4 - Errorcodes
- 5 - Low-level Function Reference
- Appendix A - Specifications
- Appendix B - Enclosure and PCB Drawings
- Frequency List for U3 Timer Mode 7
- UD Driver for Windows with U3 Quick Reference
- U3 Base Class for the Exodriver
- U3 Firmware Revision History
- U6
- UE9
- Software Options
- U3
- U12
- T Series
All Support Guides
Search
Shopping Cart
Testimonials
-
Thanks for the clear and succinct support - what a pleasure. [...] Thanks so much for your prompt, clear and helpful response (virtual cheers!)
—Dan, USA

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