Configuring Timers/Counters [U3/U6/UE9] | LabJack
« Close

Datasheets and User Guides

App Notes

Software & Driver


Configuring Timers/Counters [U3/U6/UE9]

Timer and counter features on UD devices can easily be configured and read without custom software by using our LJControlPanel and LJLogUD/LJStreamUD software on Windows.

Configuring Timers/Counters in LJControlPanel

  1. Open the device in LJControlPanel.

    Follow steps 1-6 in our U3/U6/UE9 Quickstart Tutorials.
  2. Click the "Config" button in the Timer/Counter section of the test panel.

    Once pressed a new window should appear with more timer settings.

  3. Enable your timers and counters.

    For this tutorial we will set up a firmware counter on one of the timers, but there are several other options available. See the timer/counter datasheet page of your respective device for more information: U3/U6/UE9.

    Set "# of Timers Enabled" to 1 and change the mode to FIRMCOUNTER.

  4. Set the "Pin Offset".

    set the "Pin Offset" box to 4 to put timer0 on FIO4. Note that the minimum pin offset for the U3 is 4; see the timer datasheet page linked in step 3. for more information.

  5. [Optional] Change the timer clock frequency and divisor.

    Selecting a clock base with a divisor will automatically pop up a window for modifying the TimerClockDivisor as shown below.

  6. Click "OK".

    The smaller timer/counter window should close and you should now see your timer value incrementing if you have a good pulse input attached to the timer DIO pin.

  7. [Optional] Save the timers/counters in your startup configuration.

    To save your timers and counters for startup you must set up the timers/counters in the "Config Defaults" tab of LJControlPanel rather than the test panel.

    First close the test panel and click "Config Defaults".

    Set up all of your timer/counter settings.

    Click "Write Values". A new window will pop up; Click "Yes" to save your configuration.

    Power cycle the device to apply your changes. Note that the test panel will not load your configurations, so you must test your feature in one of our loggers.

Next Step:

Once you are all set up with the timers/counters you can move on to Logging Timers/Counters.