LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout and/or Failure with Matlab script block

Continuing to work with the Matlab Script block in LV 7.1.1f2 and Matlab 7.0.

I've got a script that's not necessary fast at this time and has the potential to go longer.  The script works with no problems in Matlab directly, and at times, works fine in LV, but there's times that, even without changing the data sent to it through the front panel, the script seems to fail to execute.  I can't debug too much at this level (hint to others, I did find that you can use 'errordlg' to get a string to display, though this will not stop processing within the script node), so I can't tell what the failure mode is.  It seems like a timeout issue, but the timing is odd - I can have success after waiting some time, and I can have failure after a short time.  I do note that from a previous message, I'm using "clear functions" to reset all external calls and force re-compilation of m-files that get called.  If I take the clear statement, I don't seem to have a problem, so while I can fix it, I'm concerned it may be an indication of a larger problem.

From development, this isn't a big problem, but I'm a bit worried in the more stable release that this incosistancy with the Matlab script block may come back to hurt.  I'm just wondering if there's anything I can do to improve the matlab block performance within Labview.

0 Kudos
Message 1 of 1
(2,478 Views)