LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scheduling vi execution?

Hi everybody!
I've been looking for an easy way to schedule execution of vi's. Say I discover *now* that I need to run some vi in 5 seconds - is there an easy way to achieve this? I'm running LV 8.0.1, and all the hacks I've seen were for version 7.

Kind regards,
Severin
0 Kudos
Message 1 of 11
(3,949 Views)
Firstly, what you have seen in LabVIEW 7 will still work in 8, so maybe it's worth revisiting those examples?

A way I can think of is to have a VI which is constantly running that is looking at the current time/date etc. When you schedule a certain VI to start at a particular time, the VI will evaluate this and use VI server to open and run the VI at the appropriate time. Should be too hard to implement actually.
0 Kudos
Message 2 of 11
(3,932 Views)
This might give you a good starting point.

Thanks,

Stuart

P.S. Feel free to rate the answer 😉
0 Kudos
Message 3 of 11
(3,923 Views)
I think that's pretty much what I did: I've created an array of clusters (timestamp plus information on *what* to do) and have it checked regularly to see if the current time is greater than the first entry's timestamp.
Works quite alright so far.

Regards,
Severin
0 Kudos
Message 4 of 11
(3,918 Views)
If you are on a windows system, look at Start, Control Panel, Scheduled Tasks.
Message 5 of 11
(3,920 Views)
Yeah I'd never thought of that method Uncle. I suppose it depends on how you want this to behave as you don't get too much flexibility relying on the Windows scheduling (as far as I can see). At least using VI server allows more control over the VI that you call.

Cheers

Stuart
0 Kudos
Message 6 of 11
(3,913 Views)
Message 7 of 11
(3,906 Views)
I might not have gotten myself completely clear, so I'll clarify:
First of all I'd like to run *sub*VIs. The next point is I can't predict (at coding-time) *when* I want to perform certain actions. My (main) VI goes like "whoa, something's happened that makes me wanna do something in three seconds' time".
0 Kudos
Message 8 of 11
(3,904 Views)
Good work Zou!

Are you going to update for 8.x?
0 Kudos
Message 9 of 11
(3,902 Views)
Yes.  I will upgrade the demo to lv8.
 
George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 10 of 11
(3,898 Views)