LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript - modeling Z(x,y)

ps. Actually it would not be a bad idea to include most if not all of the options available for the LabVIEW surface graph.....Don
0 Kudos
Message 11 of 16
(5,037 Views)
Is there a way using Mathscript to plot more than one 3d plot on one graph.  In other words,  Z(x,y)  actually now becomes  Z(x,y,c) where c is the 4th variable.  So we would have  several Z(x,y) plots  as a function of  c.

Sincerely,

Don
0 Kudos
Message 12 of 16
(5,010 Views)
Hello Don,

Unfortunately, this is not possible with the 3D plotting commands in MathScript.  One way to accomplish this for 2D plots is to use the command
hold on
Each successive plot command will then work on the current plot.  However, this does not work for the MathScript 3D plots.  I have attached a VI that shows how to perform the computations in MathScript but to use LabVIEW to generate the multiple surface plot.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

Message Edited by GrantM on 05-11-2007 08:46 AM

Message Edited by GrantM on 05-11-2007 08:55 AM

0 Kudos
Message 13 of 16
(4,997 Views)
I seem to be having difficulty attaching a VI that works.  Let's try a zip file now.

Message Edited by GrantM on 05-11-2007 09:00 AM

0 Kudos
Message 14 of 16
(4,987 Views)

I think the multiple surface.vi will have to be reposted.  I could not open it (I am still using LabVIEW 8.2, not 8.2.1).

My strategy for doing this in LabVIEW was to import the mathscript into a mathscript node, create the outputs needed, create the X and Y vectors for the surface graph, and manually add plots to the surface graph.  Attached is the resulting VI.....

 

Don

0 Kudos
Message 15 of 16
(4,984 Views)
Based on what you posted, I modifed my VI to just use one mathscript node and used the set plot.vi fx.....Don
0 Kudos
Message 16 of 16
(4,980 Views)