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 27, 2013 05:27 AM

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 28, 2013 01:34 AM

So wouldn't it be the following?

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


RProodt Apr 13, 2021 11: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 07: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 14, 2021 05:58 AM

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.