10-07-2017 02:19 AM - edited 10-07-2017 02:29 AM
The processor has a low performance. The microsecond cycle time can not be obtained. Crio then and with the usual calculations is hard to cope, but here it is super-speed loaded. Plus a dynamic array. The use of any arrays sharply reduces the performance of RT applications. This is due to the fact that all memory allocation operations, even hidden, require much more time than even on Windows machines.
10-10-2017 10:37 AM
Alyssa,
The 1MHz clock source is available on myRIO and I have successfully selected it so that my Timed Loop is running off of a 1MHz clock. I believe it is the execution of the code inside the timed loop (including the timed loop overhead itself) that is taking few microseconds to complete.
Best,
Pegah
10-10-2017 10:39 AM
Borjomy,
It is very possible that it is the processor that takes so many clock cycles to execute such simple code. I even removed the array indexing (and any sort of array operation) and put a simple "add" operation. But it also took few microseconds to execute each loop iteration.
Best,
Pegah