Jump to content

As of July 17, 2015, the LabJack forums here at forums.labjack.com are shut down. New registrations, topics, and replies are disabled. All forums are in a read-only state for archive purposes.

Please visit our current forums at labjack.com/forums to view and make new posts. To post on the current forums, use your labjack.com login account. Your old LabJack forums login credentials have been retired. There are no longer separate logins for labjack.com and LabJack forums.


Timer sharing error

Counter Error Timer

  • Please log in to reply
1 reply to this topic

#1 CLivermore

  • Members
  • 1 posts

Posted 08 May 2014 - 12:35 PM

The following .Net code keeps giving me a 'Timer sharing error' and I can't figure out what I'm doing wrong.

long[] aEnableTimers = new long[]{1,1};
long[] aEnableCounters = new long[]{1,1};
long TCPinOffset = 8;
long TimerClockBaseIndex = 26;
long TimerClockDivisor = 1;
long[] aTimerModes = new long[]{10,10};
double[] aTimerValues = new double[]{0,0}
U3Error = LJUD.eTCConfig(DAQ.Value, aEnableTimers, aEnableCounters, TCPinOffset, TimerClockBaseIndex, TimerClockDivisor, aTimerModes, aTimerValues, 0, 0) //this line gives the error


#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 08 May 2014 - 02:14 PM

Looks like you are using a U3 correct?  When you use one of the base clocks with divisor support (_DIV), Counter0 is not available.  Mentioned near the end of Section 2.9:



Also tagged with one or more of these keywords: Counter, Error, Timer

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users