LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab GUI loaded from within Labview

Hi,

I have a GUI user interface that needs to be loaded from within Labview Matlab script.  In the script text, I simply have: "open test.fig".  The figure window appears, however, seems to be incomplete.  By that I mean certain structures (handles) was not initialized.  Anyway can tell me how to correct load it up??   Thanks.
0 Kudos
Message 1 of 10
(4,399 Views)
Which version of Matlab and LabVIEW are you using together?

Jarrod S.
National Instruments
0 Kudos
Message 2 of 10
(4,390 Views)
Hi,

Labview 7.1.  I have two versions of matlab: 6.5 and 7.0.1, but I use matlab6.5.  This is verified by using 'ver' command in matlab commnad window. 
0 Kudos
Message 3 of 10
(4,380 Views)

Hi DaqProblem,

You are using the correct command to open the Matlab GUI (as discussed in KB 3Q56TJL2) although the interface is limited.  The Matlab script node simply calls the Matlab Script Server and is limited by the functionality this exposes.  There are also possible problems because you have multiple versions of Matlab installed.  Check out KB 2A6E3SDM for more information on this.  Uninstalling the version of Matlab you are not using might help.

I hope this helps!
Megan B.
National Instruments

0 Kudos
Message 4 of 10
(4,367 Views)

Hi

Try using run command instead, like

run('yourmfile')  %the name of the m-file without .m. Remember to use ' '

or take at look at my post here

http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=284468#M284468

Hope it works

Simon

LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 5 of 10
(4,171 Views)

Hi

Try using run command instead, like

run('yourmfile')   %the name of the m-file without .m. Remember to use ' '

or take at look at my post here

http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=284468#M284468

Hope it works

Simon

LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 6 of 10
(4,171 Views)

 



Message Edited by SCMAJA on 11-15-2007 11:29 AM
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 7 of 10
(4,171 Views)

Hi

Try using run command instead, like

run('yourmfile')     %the name of the m-file without .m. Remember to use ' '

or take at look at my post here

http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=284468#M284468

Hope it works

Simon

LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 8 of 10
(4,171 Views)
SORRY about the many posts. By browser went crazy 😞
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 9 of 10
(4,170 Views)

The right way to call a GUI in command line is GUIname(), before which you must ensure current path is correct so that matlab can find the mfile of GUI

0 Kudos
Message 10 of 10
(3,299 Views)