07-29-2009 12:48 AM
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
Solved! Go to Solution.
07-29-2009 12:58 AM
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
07-29-2009 01:08 AM
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
07-29-2009 01:10 AM
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
07-29-2009 01:11 AM - edited 07-29-2009 01:11 AM
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
07-29-2009 03:12 AM
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
07-29-2009 03:20 AM
Hi Harika,
see the attached picture.
Mike
07-29-2009 03:28 AM
07-29-2009 04:34 AM
Hi mike,
Your example really helped me alot......
Thanks a lot.....
Thanks,
Harika