LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Menu in command window is missing when using MATLAB scripts.

I am working on a LABVIEW program that uses MATLAB scripts.  Someone before me developed the LabVIEW program and setup the computer.  On this older computer, with MATLAB v. R2007a installed, the menu bar is visible on the command window that pops up when opening the LabVIEW program.  On a new computer that I setup, with MATLAB v. R2007a installed, the menu bar is not displayed in the MATLAB command window; for example, I can not select File -> Set Path because there is no menu selection for "File" or anything else.

 

The LabVEIW program was eventually written for two different product tests, which call MATLAB files in different paths.  This requires that the user set the path from the file menu.  We are working to make this happen programatically, but I would still like to know reason behind the missing menu bar.

 

When I open the MATLAB software by itself, the command window DOES have the menu bar.  With MATLAB still open, I open up the LabVIEW program that has the MATLAB scripts, and a separate command window opens without the menu bar.  Is there an option or preference setting for displaying the menu bar in the command window that pops up from LabVIEW MATLAB scripts?

 

I have also found that, with the new computer, I can not set the paths in MATLAB to something different without closing the LabVIEW program, setting the paths in MATLAB, and then re-running the LABVIEW program.

 

Thank you in advance for any help to clear this up.

 

0 Kudos
Message 1 of 4
(3,888 Views)

Can you give the verision of LabVIEW you are using on both the old and new computer? Also, be sure to understand the finer points on calling files from the Math Script node.

 

 

Joshua B.
National Instruments
0 Kudos
Message 2 of 4
(3,856 Views)

Both computers have ver. 7.1.1 LabVIEW installed.

 

0 Kudos
Message 3 of 4
(3,835 Views)

Do you have multiple versions of MATLAB® on your computer?
 
Let's talk about code. Are you using the MATLAB Script node, and when the VI is executed the MATLAB automation server command window opens up and that had a menu bar on it? Or does MATLAB open with the normal command window? Or is it some other configuration (using the MathScript node or the MathScript Window)?
 
You can tell if the automation server is opening by the way it looks. If you are using Windows, go to Start then Run and type "matlab -automation" without the quotes. The resulting command window doesn't have a menu bar on it by default.
 
As a possible work around, could you change the script in such a way that the path doesn't have to be selected from the menu by using the "path" command? Check out the link below.
http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/p...
 

MATLAB® is a registered trademark of The MathWorks, Inc.

Joshua B.
National Instruments
0 Kudos
Message 4 of 4
(3,813 Views)