Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

execute matlab .m with loggernet TaskMaster


AMK Feb 26, 2013 10:27 PM

Has anyone ever used the TaskMaster to schedule matlab scripts? I've always used the Windows Task Scheduler, but I like the idea of keeping things neat in LN. Thoughts on this? What would the options be?

File Name: C:\folder\script.m
Command Line Options: "C:\Program Files\MATLAB\R2012b\bin\matlab.exe"
Start in: C:\folder\

The above starts matlab, but doesn't execute the script.

Thanks

edit:
Answer: Yes, you can. One solution is to create a .bat file and include the following line for each script you wish to schedule:
"C:\path\to\bin\matlab.exe" -r mfile

* Last updated by: AMK on 2/27/2013 @ 11:08 AM *


Sam Feb 27, 2013 06:34 PM

So wouldn't it be the following?

Filename matlab.exe
Options -r mfile
Start c:\folder\


RProodt Apr 13, 2021 05:07 AM

hi there AMK 

i am trying to send an email using matlab and task master.

i am struggeling with task masker and the commands 

can you please share what you entered in taskmaster to successfully run the matlab.m 


pokeeffe Apr 13, 2021 01:42 PM

This is an old post so you may not hear from AMK. But I recommend their approach - just put the commands into a batch file and launch it with taskmaster. 


RProodt Apr 13, 2021 11:58 PM

Thank you pokeeffe for the response. 

It worked eventually using the method Sam listed 

There is also an option in the command line that closes matlab after it ran the script. 

Log in or register to post/reply in the forum.