06-25-2007 04:35 AM
06-25-2007 08:24 AM
- angular or position up/down counters with direction set through hardware (A = pulses and B = direction)
- edge counter (A = pulses and B = ignored)
06-25-2007 09:43 AM
Adding to JB's comments, I'd echo some suspicion about the 256 "Z-index" pulses per rev.
What is the timing relationship between these Z-index pulses and the A,B square waves? Are they synchronized or independent? If independent, there's a very good chance for reset problems.
You describe a config where your counter board will reset count when the following conditions are ALL simultaneously true: A and B signals are High, Z index signal is High. If the Z isn't sync'ed to the A,B there are two kinds of problems you can get.
1. The Z-index pulse may be too short and not overlap an interval where both A & B are high. Your counter won't reset its count on any such Z-pulses.
2. The Z-index pulse may be too long and overlap more than one interval where both A & B are high. Your counter will reset its count 2 (or more) times on any such Z-pulses.
-Kevin P.
06-25-2007 10:16 AM
06-25-2007 11:13 AM
...if the LabView will run in EXE mode, would it run under "real" mode and does it get the maximal real time in the windows environment?
06-26-2007 06:30 AM
06-26-2007 07:30 AM
06-27-2007 09:07 AM
I second JB's comments. Additionally:
The angle measurement itself should be as fast as possible in order to not miss any A, B, Z pulses.
The second fact is that even with the velocity of 291 increments per second, which is very low, sometimes the LabView is not running for about 6 milliseconds (Windows does not give this real processing time to LabView) and we are not able to catch exactly the positions before and actual (last) on the occurence of the Z-Index.
-Kevin P.
06-29-2007 03:56 AM
I am including the part of my report to the customer.
May be it will be accepted to correct the FPGA error, if not it could help at least to other users.
11-20-2008 04:20 AM
I have the same problem. What was your solution or alternative?
Thanks!