11-22-2016 12:09 PM
At the moment (as default), when I load a vi containing a MATLAB script node, a MATLAB command window opens.
Is it possible to do something in the setup somewhere so when a vi is loaded, instead of opening the MATLAB command window, the main MATLAB window opens?
Thanks.
Ian
Solved! Go to Solution.
11-23-2016 05:21 PM
Ian,
I haven't been able to find any documentation of doing that directly. However you could open the application itself using a system exec command if you just want to open a full Matlab application.
regards,
Pat b
11-23-2016 05:28 PM
Pat,
Yes, I can. But MATLAB opened from "MATLAB script node" in LabVIEW and from "open MATLAB application directly" are two independent instances of MATLAB. They have different "workspace".
Thanks.
Ian
11-28-2016 04:30 PM
Tula,
Unfortunately since LabVIEW doesn't own Mathworks, you cannot open MathWorks, Inc. MATLAB® program through LabVIEW MathScript nodes. If I remember correctly there is legal tape holding that functionality back.
Regards,
Pat B.
11-30-2016 05:31 PM
Pat,
Actually, I found a workaround.
1. Within the MATLAB command window launched as MATLAB script node is loaded in LabVIEW, enter "filebrowser", a "Curent Folder" window opens;
2. Within "Current Folder", select an existing m script, the MATLAB main window opens. This MATLAB main window shares everything (e.g., workspace) with the one opened from MATLAB script node from LabVIEW, I can do almost any MATLAB stuff in this MATLAB main window. The only thing I cannot do is to "dock" the Command Window, but this is not as important.
Regards
Ian