Showing results for 
Search instead for 
Did you mean: 

MATLAB session timed out when using MATLAB script node

Go to solution


I am using a MATLAB script node in my LV2017 application.  (Which I compile to an EXE).  It works great!

However, one very large annoyance that I'm running into is that after a certain period of time of inactivity, the MATLAB command window will time out as shown in the screenshot:



After this times out, there is no mechanism (known to me) to start a new session.  This forces me to restart the LabVIEW EXE.  (ouch)


Does anyone have any suggestions for me here?  I'll take either:

  • a mechanism to prevent timeout (set inactivity timer to infinity)
  • a mechanism to launch new MATLAB session when needed without restarting the EXE


0 Kudos
Message 1 of 3

An idea just popped into my head --> I can write a LabVIEW daemon to make small (basically no-op) call to a MATLAB script node every 60 seconds to prevent the session from timing out.


This is hokey, but it will atleast serve my purpose here until somebody potentially offers a better solution.



0 Kudos
Message 2 of 3
Accepted by topic author brentjustice
02-01-2018 09:17 PM

Whelp, I'm dumb.

Apparently, any call to the MATLAB script node will open up a new session if the previous session timed out.


Nothing to see here folks, move along

0 Kudos
Message 3 of 3