LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I have a high speed timing control loop?

I used to use timer and waiter or counter to control a timing loop for control applications. Either of these two methods is ok for slow or moderate speed sampling. I would like to know other methods that allow me to deal with a fast speed (say, higher than 2000 scans/s) analog in and out application. Thanks.
0 Kudos
Message 1 of 2
(3,108 Views)
Keli,

We can guess from your description that you are performing PID control, if this is the case then you don't have many options, a possible solution will be to eliminate the timers or timing control function inside the loop, that is, get the whole processor speed from your computer, another good practise could be to separate in two different threads the user interface from the operation program, or best even to eliminate the user interface.

You are using LabWindows, if you really feel the need for faster control operations you may want to consider LabVIEW RT (real time) which performs a faster PID control as for real time.

But in the case of your LabWindows it will most likely be system dependent even though you make your code as faster as possible.

Good Lu
ck!

Nestor Sanchez
Applications Engineer
National Instruments
Nestor
0 Kudos
Message 2 of 2
(3,108 Views)