From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-24-2006 01:16 PM
Hi,
I am using Labview 8 with E series DAQ card, and trying to calculate velocity from the Quadrature encoder. I calculate time difference by using Tick Count, and then divide the change in position to the change in time. The problem is that the time difference should be the same as sampling rate or Wait Until Next ms in the attached file, however the time difference is not always the same, which sometime makes spike in the velocity calculation. I would like to know if I have to use the constant number (sampling rate/wait until next) for velocity calculation, or is there any other solution? I don’t understand why the time difference is not the same for different iterations. I would appreciate if somebody can help.
Thanks,
Azadeh
07-24-2006 02:19 PM
07-24-2006 02:42 PM
07-24-2006 02:49 PM
Hi Conseils,
I am using one Tick Count for calculating time difference (delta time), and the second Tick Counts (one inside the loop and one outside the loop) is used for recording the time. So, I don't see why this should make any problem?
Thanks for looking at the problem,
Azadeh
07-24-2006 03:00 PM
07-24-2006 03:19 PM
07-25-2006 09:25 AM
Hi Lynn,
Thanks for your suggestions, I would like to try having the counter and the Tick count in a high priority loop. I am not very familiar with queue. Do you have any example that I can look at it? And also, by using this method, does it mean that we get the time difference from the Wait until next ms Multiple (which will be a constant) instead of the time Tick count (that varies)?
Thanks a lot,
Azadeh
07-25-2006 09:52 AM
07-25-2006 02:23 PM
Hi Lynn,
Thanks for your help. Do you know about calculating the velocity from the other counter and gating signal?
Azadeh