Burst dual channel encoder logging | LabJack
 

Burst dual channel encoder logging

4 posts / 0 new
Last post
tmoulton
tmoulton's picture
Burst dual channel encoder logging

Hello and thanks in advance. We are using two encoders to monitor the kinematics of a small motor driven mechanism in a medical product. We have both hooked up to the labjack and are reading data nicely, but we have encountered some timing and bandwith issues and hope that you can help. We can measure it at a very slow speed, but are concerned about some mechanical artifacts that become apparent at higher speeds.

The period of the mechanism is either 50 or 100 ms (two modes) and we really want to grab the two quadrature values over that timeframe. There is no need for historical position or anything past that. Neither encoder would roll a 16 bit counter in that timeframe, but one of them will see around 4,000 counts.

We have looked into the various modes and I fear it is not possible. We would be fine purchasing a different unit, but we need  to have a clear path to it working for this. Any thoughts? 

Tim

LabJack Support
labjack support's picture
I'm not exactly following. 

I'm not exactly following.  You can easily read quadrature count every 50 ms, so I'm thinking you are asking something else?

tmoulton
tmoulton's picture
So sorry, the period of the

So sorry, the period of the mechanism is 50 ms. Over the course of this time, one encoder will go through one revolution which is ~2000 counts. The other encoder sweeps 60 degrees in one direction, then 60 degrees back, probably about 4000 counts each way. We need to confirm the kinematic relationship between the two throughout the course of one period. Make sense?

LabJack Support
labjack support's picture
The fastest you can read the

The fastest you can read the timer values is using stream mode.  If you keep your counts in the lower 16-bits you can just read 2 channels which means you can scan at 25 kscans/second:

https://labjack.com/support/datasheets/u6/operation

https://labjack.com/support/datasheets/u6/operation/stream-mode

https://labjack.com/support/datasheets/u6/operation/stream-mode/streamin...