03-22-2013 08:05 AM
Thanks for your help for improve the programation.
But maybe my problem is much more basic:
For be sure I developed this simple program(I attacht it) in the microprocessor, and even with this loop im not able to achieve loop iteration times lower than 1 ms (1 KHz).
What do you think about this? Looks like a limit of the processor..
Regards
03-22-2013 10:21 AM - edited 03-22-2013 10:23 AM
Hi Alvaro,
are you sure about that? How fast can you watch your VI executing? 😄
The problem with pictures is: we cannot see what you have set as value for the loop timing. So just some comments:
- The timer value is given as U32, so the result of subtracting current timestamp with previous is either zero or one millisecond...
- Setting small microsecond values to wait for will not change the behaviour of the timestamp function...
Hint:
Try the TimedWhileLoop with a timing source of 1MHz (or whatever your cRIO supports). Now try to execute that loop with 2kHz or 5kHz and watch the "late execution" flag...
03-22-2013 02:59 PM
So, if I understood well, I cannot measure the timeloop time with the method of the clock and the shift register when the loop times are the order of microseconds.
Im not a experienced user with labview and CRIO, I dont know exactly what do you mean with a timming source of 1 MHz, and wacth the late execution flag for know the time loop period.
When I check the loop times I always do it using the method of clock and the shift register.
I also attach the the calculation SubVI with the method that I use for measure the time loop, this time is always higher than 2000 micreseconds, even in the processor of the computer, I think that could be a problem about how I measure the loop time(clock and shift register).
Thanks a lot
regards