LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple plotting but not with static inputs but using a control inputs once.

I want to plot SCR Char for different value of the trigger current so, what i want is each time i take different value of the trigger current from the user, and calculate the corresponding forward current and voltage etc. it should plot the V--I for all these values at the same time,(for comparative study) that is the trigger current should be the controlling element
0 Kudos
Message 1 of 8
(3,190 Views)
Hello,

I am not sure that I understand your application. Is there something in LabVIEW that I can help you with?

Best regards,

Justin T.
National Instruments
0 Kudos
Message 2 of 8
(3,190 Views)
hi,
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


regards
tanisha
0 Kudos
Message 3 of 8
(3,190 Views)
> 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 late
r want to add other actions like clearing. You add
another case, either nested inside the False frame, or combined into an
enum.

Greg McKaskle
0 Kudos
Message 4 of 8
(3,190 Views)
hi,
i have made this trial VI which i would like u to check, coz its not plotting multiple lines the VI explains the functioning but what i want is whenever Ok is pressed the point plotted should be of a different colour

regards
Tanisha
0 Kudos
Message 5 of 8
(3,190 Views)
hi Greg,

the VI works fine that is it plots a new set of data everytime OK is pressed, but only problem is the colour setting to display 2 or more plots is not working or to be precise i think i m making some mistake somewhere.

Best Regards
Tanisha
0 Kudos
Message 6 of 8
(3,190 Views)
Hey Tanisha,

The reason that the VI is only displaying one graph is because you are giving it a one dimensional array of coordinates. If you look at the shipping example XY Graph.vi, you can see the valid types for making an XY Graph. If you want multiple plots, I would suggest using an array of clusters, that contain arrays of points (single plot).

Take a look at that example in the example finder and let us know if you have any questions!

Justin T.
National Instruments
0 Kudos
Message 7 of 8
(3,190 Views)
Hi Justin ,

thanks a lot !!!!
this time i looked at the eg's with xtra care n its working . all my confusion related to
clusters n bundles have been solved

Best Regards

Tanisha
0 Kudos
Message 8 of 8
(3,190 Views)