ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when use "saveas" function in MathScript Node, Can't save the figure ploted.

I want to save figure plot by MathScript Node, the function I used was "saveas". I could achieve my attention in matlab using this function. Where was the problem?
 
If this function is unusable in labview, how can I save the figure ploted using MathScript?
 
The following is the code I used in the MathScript Node:
******************************
x=1:0.1:10;
y=x.^2;
h=plot(x,y);
saveas(h,'G:\test2.jpg')
******************************
 
Thanks for any reply!
YangAfreet
0 Kudos
Message 1 of 2
(2,581 Views)
Please go to http://zone.ni.com/reference/en-XX/help/371361B-01/lvtextmath/msfunc_classes/ and see if "saveas" is an available function in LabVIEW MathScript. As a matter of fact,I do not see the need to complete the file I/O inside the MathScript node,Why do you want to do that?
0 Kudos
Message 2 of 2
(2,558 Views)