|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Wait Function
None of your posts really say why a loop with a 10ms delay would run at 500hz consistently, just why it may be noisy. I think the original poster meant that it was pretty consistent with its 2ms time.
The probably may be that you didn't wire up a string to the "name" part of the vi, and you're calling it twice within the same vi. Not wiring up a name is fine for teleop, where there's only one loop, but you probably want to do it in periodic tasks, where there may be multiple loops you want to measure. |
|
#2
|
|||
|
|||
|
Re: Wait Function
Doh. That would explain a lot. I normally wire the string, but it was built so that when unwired, it will use the VI name. Are you calling the Elapsed time multiple times with the same string -- unwired from the same VI? Because honestly, I wasn't liking my explanation. I wouldn't expect more than about 2ms of noise jitter.
Greg McKaskle |
|
#3
|
|||
|
|||
|
Re: Wait Function
No, we only call the elapsed time vi once in periodic task and once in teleop. Both times we left them un-named. But it should be okay since we only dropped it in one of the while loops in periodic task and not multiple loops?
|
|
#4
|
|||||
|
|||||
|
Re: Wait Function
Something is incorrect.
Care to zip and post the project as-is? I ran a test on the default framework to be sure and I get 10-11ms |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|