LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

windows task scheduler

Hallo,

how can I access the Windows task scheduler from LabVIEW. I want to develop an audio (and maybe video) recorder which has a timer. Set start time, stop time parameters, and then standby the computer. Computer wakes up, records and goes back to standby. That can be done via TaskScheduler but how to program the task scheduler from LabVIEW ?

By the way: There are sound capture functions in LabVIEW, is there also a video capture functionality out there?

Oliver
0 Kudos
Message 1 of 5
(4,881 Views)
One possible solution is to build your application into a stand alone executable then have the task scheduler run the executable at the required time. LabVIEW controls how long to record and when finished recording quit the executable.
0 Kudos
Message 2 of 5
(4,881 Views)
That is no problem, but I want to access the TaskScheduler from within my application so that I can edit and create tasks from LV.

I don't want to interact with two different programs when I want to record a radio play, I want to have TaskScheduler as a background timing server.
0 Kudos
Message 3 of 5
(4,881 Views)
Hi Oliver
As far as I know, the equivalent command to task scheduler is SCHTASKS.EXE ( see microsoft doc) that you can use from labview ( exec vi).
See info about that
"You can use Schtasks to create new scheduled tasks, change existing jobs, run a scheduled job immediately, end a program that a task started, delete a scheduled task, and query all scheduled tasks, including those that other users have scheduled. You can also use a combination of switches to display detailed information about tasks. For example, to get detailed information about all tasks in an output list, type the following command at the command prompt:

C:\>schtasks /query /v /fo LIST

For detailed Help with Schtasks, use the Help and Support utility on the Start menu to search for Schtas
ks."

Hope it helps
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
Message 4 of 5
(4,881 Views)

--bump--

 

As anyone ever figured out how to use Window's Task Scheduler API in LabVIEW? I though maybe I could get at it via ActiveX or Call Library Function Node, but I can't for the life of me figure out how.

 

The SCHTASKS executable is OK, but it looks like you have to delete and recreate a task if you want to change its schedule.

-Randy
-=--=-=-=-=-=-=-
Nothing like a good dose of LabVIEW to cure what ails ya'.
0 Kudos
Message 5 of 5
(4,257 Views)