Mahmoud Ismail
2008-05-30 14:10:13 UTC
Hello everybody,
I'm sure that my question has been asked for hundereds of times by now, but for some reason it doesn't seam to work well with me. Thus I hope you guys can help me out.
I have 2 encoders that return pulses allowing me to measure their angular position.
Thus I would like to read their values at the same time, i-e synchronize there values.
The 1st is slower than the second so I thought to use the A signal of the 1st encoder as the source for "DAQmx Timing".
If I understood the correct functioning of the M series and DAQ then it should work, but for some reason it's not giving me the correct results.
it seams to me that the buffer is recording more values for the faster encoder.
My encoders run at a speed no more that 100rpm and each return 18000pulses/round.
I attached the vi to this message hoping that someone can tell me where my mistake is!!
I would be very grateful for any reply.
Regards
Mahmoud
SyncronizedDecoders.vi:
http://forums.ni.com/attachments/ni/250/40414/1/SyncronizedDecoders.vi
I'm sure that my question has been asked for hundereds of times by now, but for some reason it doesn't seam to work well with me. Thus I hope you guys can help me out.
I have 2 encoders that return pulses allowing me to measure their angular position.
Thus I would like to read their values at the same time, i-e synchronize there values.
The 1st is slower than the second so I thought to use the A signal of the 1st encoder as the source for "DAQmx Timing".
If I understood the correct functioning of the M series and DAQ then it should work, but for some reason it's not giving me the correct results.
it seams to me that the buffer is recording more values for the faster encoder.
My encoders run at a speed no more that 100rpm and each return 18000pulses/round.
I attached the vi to this message hoping that someone can tell me where my mistake is!!
I would be very grateful for any reply.
Regards
Mahmoud
SyncronizedDecoders.vi:
http://forums.ni.com/attachments/ni/250/40414/1/SyncronizedDecoders.vi