>    i shall explain my problem , i want to plot the SCR char with the
>    gate current applied (without gate current applied is done n working
>    fine) so , for a comparative study of the effect of gate current i
>    want to plot multiple curves , at the moment i m prompting the user to
>    enter the value for the gate current and this controls further , there
>    is a dial control for the forward voltage etc..., at the moment its
>    plotting only once .so that is my problem
> 

I think the question is, how do I get multiple plots on one XY graph?

The XY graph accepts many different types, and in general with any type 
that produces a single plot, and array of that type produces a 
multiplot.  The exceptions are when the original plot type is an array. 
  Arrays of arrays aren't something that LV allows, so you either use a 
2D array or element, or an array of cluster of array.

Concrete examples are
Cluster(X array, Y array) -- single plot
Array(Cluster(X array, Y array)) -- multiple plots

Array(Cluster(X,Y coordinate pair)) -- single plot
Array(Cluster(Array(Cluster(X,Y coordinate pair)))) -- multi

In general, it is possible to read from the graph, use build array to 
append an element to the outer array, then send to the graph again. 
owever, it is more efficient to hold onto the data that was plotted in a 
shift register.  You will probably wind up with a while loop.  Inside 
the loop you will have a case statement switched by a Plot button and 
potentially other logic.  In the True case you take the previous array, 
add a plot, and send to the graph.  In the False case you simply wire 
the array through from left to right unchanged, perhaps this is where 
you put your 100ms delay.

Likely, you will later want to add other actions like clearing.  You add 
another case, either nested inside the False frame, or combined into an 
enum.

Greg McKaskle


Reply via email to