LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I plot multiple plots using the XY graph at runtime?

Solved!
Go to solution

Hi,

 

I want to plot multiple plots in XY Graph at run-time means user will select number of plots he wants to plot, based on that value i have to get those values  and use build array and then i have to give to XY Graph.

 

But at runtime how to do this?

 

Please help me in this regard.

 

Regards,

Harika

0 Kudos
Message 1 of 9
(3,465 Views)

Hi Harika,

what do you think where the difference between development and runtime is?

 

You can build your xy graph data in a loop. Depending on how often the loops runs you get your number of plots.

 

Mike

0 Kudos
Message 2 of 9
(3,462 Views)

HI Harika,

For plotting the multiple plots you can refer the example VI "examples\general\graphs\gengraph.llb\XY Graph.vi"

 

At runtime for each plot bundle the X, Y arrays so you will get cluster of two 1D arrays.

Now you can build array for the cluster available for all the plots and pass it to XY graph.

 

Hope this helps

Regards

Santosh

 

0 Kudos
Message 3 of 9
(3,456 Views)

Hi ,

 

Thanks for your quick reply.

 

Since I have to use "build array" , how i can configure it to run time to 2 inputs or 3 inputs......depending on user input.

 

Thanks,

Harika

0 Kudos
Message 4 of 9
(3,453 Views)

Hi Harika,

use the build array function in a loop. You can use a for loop, because you know how many iterations you need.

 

Mike

Message Edited by MikeS81 on 07-29-2009 08:11 AM
Message 5 of 9
(3,450 Views)

Hi,

 

Thanks for your reply. 

 

Can you provide an example of how to use build array.vi to build the number of arrays specified by the user at runtime.

 

That would be really helpful for me....

 

Thanks,

Harika

 

 

0 Kudos
Message 6 of 9
(3,429 Views)

Hi Harika,

see the attached picture.

 

Mike

Message 7 of 9
(3,426 Views)
Solution
Accepted by topic author haari
Message 8 of 9
(3,424 Views)

Hi mike,

 

Your example really helped me alot......Smiley Happy

 

Thanks a lot.....

 

Thanks,

Harika

0 Kudos
Message 9 of 9
(3,412 Views)