LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Forcing Mathscript/Matlab figure window display position

I know in most cases I can always output the values of my mathscript/Matlab variables through the "add output and an indicator".

 

But in some cases I just want the output plot to be generated from Mathscript/Matlab. especially since some MATLAB plot command cannot be output in Labvies

 

I have attached two pic files for the block diagram and the plot figure generated. When the plot figure popped up, it is usually at the center of the screen. Is there a way to force the window to pop up say at the uppermost left corner?

 

 

Download All
0 Kudos
Message 1 of 4
(4,132 Views)

Hi ade77,

 

There are MATLAB® functions that control were the windows pop up.  You should search MATLAB help (or just google) "Positioning Figures".  This should do what you need.

 


MATLAB® is a registered trademark of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.

 

 

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 4
(4,088 Views)
I have run into the same problem.  The matlab commands that control the position of figures do not seem to be implemented in mathscript (LV8.5). If you had found a solution I would appreciate being let into the secret.
0 Kudos
Message 3 of 4
(3,908 Views)

put the MC_windpos.vi in ...\National Instruments\LabVIEW 8.6\vi.lib\imath\engines\lvmath\Functions

and us the function windpos as in the attached  example

Download All
0 Kudos
Message 4 of 4
(3,898 Views)