![]() |
RC Refresh Rate
Does anyone happen to know how often the RC will scan the code?
I'm trying to estimate how long something will go by saying increment the counter every loop but i don't know how often it refreshes so therefore i don't know how many increments i want it to count to....:mad: Thanks in advnace |
Re: RC Refresh Rate
The 2007 & 08 RC's execute the user code around 28-32 times per second, depending on the amount of time the code takes to execute.
|
Re: RC Refresh Rate
Code:
if (statusflag.NEW_SPI_DATA) /* 26.2ms loop area */It doesn't vary much to matter, if you have code that makes it take longer than 26.2ms to run it, it will explode. |
Re: RC Refresh Rate
Quote:
|
Re: RC Refresh Rate
Can we figure out the loop time for the 2009 controller or do we have to wait for the default code?
|
Re: RC Refresh Rate
Quote:
|
Re: RC Refresh Rate
Quote:
Also, the new controller could still be running tasks in fixed time loops. At least, it's easily possible to do so on a Labview RT controller, though there are certainly other control methods they could be using. But for measuring elapsed time, it'd certainly be easier to start a timer and watch the elapsed time value instead of trying to count loops. |
| All times are GMT -5. The time now is 00:10. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi