Filter löschen
Filter löschen

Matlab Startup and insilsation

1 Ansicht (letzte 30 Tage)
Paul
Paul am 9 Mär. 2017
Kommentiert: Paul am 9 Mär. 2017
Hi I’m trying to find a way of starting up a script when Matlab opens but after initialisation. I’m trying to run a script that controls some test equipment. If a power cut happens a UPS controls the application to turn off sensibly. Once power is regained to the computer it auto starts again opens up matlab and runs the Startup script that calls the Application I have created. In doing this I’m getting a fatal error which I think is occurring because the application is called before Matlab has finished initialisation. Is there a way to run the code with a delay to allow matlab to initialise?

Antworten (1)

ES
ES am 9 Mär. 2017
matlabrc is the script that gets called after MATLAB starts.
This will be available in for example "C:\Programme\Matlab\R2011b\toolbox\local\matlabrc.m"
Call your script at the end of the matlabrc.m.
  1 Kommentar
Paul
Paul am 9 Mär. 2017
Thank you for the quick reply.
This solution still seems to have the same problem.
The script is called before the Matlab environment is fully initialised.( the script is called before the bottom left Intialised word passes to ready)
Is there anyway to wait for the script to run till the environment is ready?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by