LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i get deterministic time in windows for real time control application???

how do i get deterministic time in windows for real time feedback control
0 Kudos
Message 1 of 4
(2,810 Views)
Windows is not a real-time operating system so it can't run real-time applications. But today's machines can run things very fast, maybe fast enough for your application.
The Time & Dialog palette has functions like Get Date/Time in Seconds and Tick Count (ms) or you can add delay in a loop using Wait (ms). For some applications, you can also use external counter/timer hardware.
Just remember that you have little control over what Windows is doing as it multi-tasks its way through whatever applications are running at the time.
Message 2 of 4
(2,810 Views)
You could also look into LabVIEW Real-Time which offers a better solution than Windows for this particular type of application.
J.R. Allen
0 Kudos
Message 3 of 4
(2,810 Views)
> how do i get deterministic time in windows for real time feedback
> control

I noticed that nobody mentioned setting priorities on your VIs.
Depending on what typical latencies you are trying to get, setting
priorities on the VI and restricting the user and OS from doing certain
things can improve determinism by a bunch. As others stated however,
Windows isn't realtime, and there are many ways to get unbound
latencies, so any solution needs to be thoroughly tested.

As others have mentioned, you should read the web page about LV Realtime
or get a demo.

Greg McKaskle
0 Kudos
Message 4 of 4
(2,810 Views)