Academic Hardware Products (myDAQ, myRIO)

Showing results for 
Search instead for 
Did you mean: 

About myRIO timer


Hi all
I'm controlling a robot with myRIO and I need to read time in microsecond resolution.
I have real-time module, so I use "Tick count express vi" from real-time module by choosing microsecond output.
But I do not get accurate data. For example I want to measure the sampling time of a loop and I put a 1ms wait in the loop, but the elapsed time that I read oscillates (which is natural) and reads values less than 1000 microsecond (which is wrong since I have 1ms wait in the loop).
I  am wondering when we run a VI with myRIO from windows, what timer it uses.
In this case if it uses windows timer it it natural to get wrong results (since windows timing resolution is 1ms), however if it uses myRIO timers I should get accurate results.
Does anybody have any ideas?

0 Kudos
Message 1 of 2

I found the answer to my question. It uses myRIO timer itself.
No the problem is that when I am running a loop in almost 1kHz, as I plot the sampling time (the time between consecutive loops), there is much jitter. Also as it can be seen in the following plot, the hiccups time has an increasing trend.
I tried to attenuate this by changing priority of VI but it did not help.
Is there anyway to avoid this. My application needs to be run around 1kHz.


0 Kudos
Message 2 of 2