LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

High Performance Timed Loop on NI RT Target

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.

Labview 4.0, 5.0, 6.1, 8.6, 2009, 2011, 2012, 2014
If you do not know something, ask me.
0 Kudos
Message 11 of 13
(702 Views)

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

0 Kudos
Message 12 of 13
(676 Views)

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

0 Kudos
Message 13 of 13
(675 Views)