LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to put the MathScript plot pop up windows into the LabVIEW main interface?

How to put the MathScript plot pop up windows into the LabVIEW main interface?
In this case, it breaks the perfect LavVIEW interface.I think.

Message Edited by ma da lin on 10-05-2006 06:56 AM

0 Kudos
Message 1 of 6
(4,101 Views)
 

Hi Ma Da,

Thanks for your post. If you want to put the values generated in a Mathscript node into a chart on the front panel of your VI, you can wire the results of operations out of the Mathscript node as an array, and wire this into a chart. There is a great example of this in the LabVIEW installed examples, MathScript - Lorentz Diff Eq.vi.

Do you have an example of a VI you are using that pops up a graph that you could post?

 

Best wishes,

Mark

Applications Engineer

National Instruments

 

 

0 Kudos
Message 2 of 6
(4,081 Views)
Dear MarkLe
 
---------------------------------
x = -5:5;
e = rand(1, 11);
errorbar(x, e, 'bo-')
---------------------------------
 
How can I put the pop up  windows or show the chart in LabVIEW, in the errobar case, I can not find any wire to link the data generated in the MathScript Node to the LabVIEW graphical interface.
 
Thanks, Looking forward to hearing from you soon.
0 Kudos
Message 3 of 6
(4,079 Views)
Hi Ma Da,
 
The behaviour of errorbar as a function is to pop up a graph in a new window, it's a member of the Mathscript plots class. It's not possible to re-stream this graph directly to the LabVIEW front panel (and it won't work in the LabVIEW Run Time Engine either).
 
To bring the output onto a front panel object you will need to place output nodes on the border of the MathScript node (you can do this by right clicking on the border, typing into the node the name of the data you want to access (x and e in this case), then right clicking again to set the type of data to expect (in this case we'll set it to 1D array of DBL)).
 
Once the data is available in LabVIEW, you can cluster both arrays and wire them into an XY Graph.
 
I've put together a simple example that does this for you (in LabVIEW 😎
 
Hope this helps,
 
Best wishes,
 
Mark
 
 
 
Download All
Message 4 of 6
(4,063 Views)
This method is ok, but not the answer I need. Yes, I can use Mathscript to generate data, but what I need is put the Mathscript Popup windows into LabVIEW interface.
 
Anyway,thanks for your help, now I know,just as you said, LabVIEW can not do this.

Message Edited by ma da lin on 10-10-2006 04:34 AM

0 Kudos
Message 5 of 6
(4,062 Views)
>This method is ok, but not the answer I need. Yes, I can use Mathscript to generate data, but what I need is put the Mathscript Popup
>windows into LabVIEW interface.
 
If you want to make Mathscript Popup window a child window of LabVIEW, you can find a lot of thread about child window in this forum.
 
 
George Zou
 
George Zou
0 Kudos
Message 6 of 6
(4,053 Views)