LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i plot data from 2d array one at the time on the same waveform graph

Solved!
Go to solution

hello. everyone. i have two sensor readings build into a 2d array. i would like  to plot them as bar  on the same waveform each a the time so each sensor reading is display as one bar on the graph.the problem is that i dont really know how to access each data at the time and sent each sensor reading on the waveform.the  2d array is actually a two rwo/100 columms with the 100 representing the reading from each sensor each 1s.

0 Kudos
Message 1 of 23
(6,468 Views)

You should use a chart instead.

0 Kudos
Message 2 of 23
(6,450 Views)

Is this something you are looking for?

*************************************************
CLD
*************************************************
0 Kudos
Message 3 of 23
(6,425 Views)

@lvrat wrote:

Is this something you are looking for?


You probalby did not notice that the first VI was LabVIEW version 2012, thus he won't be able to look at your VI, which is in LabVIEW 2013.

0 Kudos
Message 4 of 23
(6,421 Views)

Thanks altenbach, I will resave it to 2012 & upload it.

*************************************************
CLD
*************************************************
0 Kudos
Message 5 of 23
(6,413 Views)

Thanks Sir for the answer.but i tried some stuff and i was able to plot both signal into the waveform.but the problem is that when i configure the graph to show each signal as a bar  its output both signal one on the other.i could see this  when i greyed out one of the plot.i would like the graph to show the value of plot0 which represent one of the 2d array rows as bar 0 given that is shows only one value at the time which i already know how to do and the valu of plot 1 which are the second row of the 2d array as bar 1(i need this because i want to customise one bar plot without changing anything on the other).is there a way to access each rows of the 2d compare the valu to some limit and send them both to the graph?

0 Kudos
Message 6 of 23
(6,393 Views)

@yannstephen wrote:

Thanks Sir for the answer.but i tried some stuff and i was able to plot both signal into the waveform.but the problem is that when i configure the graph to show each signal as a bar  its output both signal one on the other.i could see this  when i greyed out one of the plot.i would like the graph to show the value of plot0 which represent one of the 2d array rows as bar 0 given that is shows only one value at the time which i already know how to do and the valu of plot 1 which are the second row of the 2d array as bar 1(i need this because i want to customise one bar plot without changing anything on the other).is there a way to access each rows of the 2d compare the valu to some limit and send them both to the graph?


Please be more specific than "tried some stuff". Your description is not clear at all. Please attach your newest version. Also explain what you mean by "bar". Maybe add a figure showing how things should look like.

0 Kudos
Message 7 of 23
(6,388 Views)
0 Kudos
Message 8 of 23
(6,384 Views)

sorry sir for the lack of details. i had more info on my block diagram concerning what i am trying to achieve. basically i simulated two signal, converted the waveform data to arrdy data type feed it to the loop number of iteration.in for for loop i read from the array a number at the time do some comparaison to some limit and send this number to build array so i can send it to the waveform.which menas that at each iteration of the for loop a single valu of both signals is sent to waveform(with the waveform configure to show it as a vertical bar line).the color of the bar line is selected dependently of the value of data.so on my graph, i should see each(200ms) two separated bar line with the appropriate color instead one two bar line one on the other as it is know.

i hope this is clear enough.

thanks.

 

yannstephen

0 Kudos
Message 9 of 23
(6,375 Views)

As I said, use a chart instead of a graph. See my VI attached earlier.

 

(If you want to use a graph, you need to build the array in a shift register or feedback node.)

0 Kudos
Message 10 of 23
(6,368 Views)