10-14-2013 02:08 AM
Hello,
I am new to Labview.My code is reading Voltage value from no. of Power supply & storing in 1D-array of string. No. of power supply will depend upon user selection. Now I want to plot all these Voltage's value to XY graph,in which X is time stamp at which value is read & Y is Voltage value.
Please suggest me a solution to add multiple plots programtically according to the no of power supply, so user can have a one XY Graph with multiple plots of Voltage's value of each Power supply.
10-14-2013 02:15 AM
10-14-2013 04:21 AM
From the help:
"
The XY graph accepts three data types for displaying multiple plots. The XY graph accepts an array of plots, where a plot is a cluster that contains an x array and a y array. Refer to the (X and Y arrays) Multi Plot graph in the XY Graph VI in the labview\examples\general\graphs\gengraph.llb for an example of a graph that accepts this data type."
As Kate shows, wire an array of plots.
/Y
10-14-2013 04:32 AM
Better hide from the front panel. In my projects user used to had 6 plot at the maximum. Before plotting I used to ask how many parameter you want to plot. All the time I used to plot 6 plots only but visible according to parameter selection done by user.
Here is what I used to do
10-14-2013 04:40 AM
Even easier is to show the Plot legend and Plot Visibility tick box. 🙂
/Y
10-17-2013 03:04 AM
Thanks all of you for your reply.
All above solution are static.
In my code no. of power supply selection is user dependent,if user has selected 3 nos i need 3 plots in a XY graph, if 5 than 5 plots.
10-17-2013 03:06 AM
I need a dynamic solution.
10-17-2013 09:34 AM
Multiple plots on an XY graph are created by wiring an array of clusters of X Y data in.
Say you have a 2D array of X data (i.e. an array of timestamp arrays) and a corresponding 2D array of Y data. You can feed those arrays into a for loop, autoindexing them, then bundle them together. Passing this bundle out and auto-indexing again will create an array of clusters of XY data to wire to the graph.
So say I've got X data and Y data for my plots, and I have 4 plots worth of data, but I only want to plot two. I use array subset to return only the first two, pass the arrays to the for loop, bundle and then plot.
11-15-2013 09:52 AM
Hi everyone,
I'm fairly new to Labview but I've constructed this VI. I have a problem with getting the I-V measurements from my labview VI using Keithley 6430.
The current - time measurements works fine, however for some reason, the I-V measurement just doesn't compute. Any help would be greatly appreciated please.
Cheersss