09-09-2013 07:30 AM
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.
Solved! Go to Solution.
09-09-2013 09:21 AM
You should use a chart instead.
09-09-2013 07:10 PM
Is this something you are looking for?
09-09-2013 08:38 PM
@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.
09-09-2013 11:30 PM
Thanks altenbach, I will resave it to 2012 & upload it.
09-10-2013 02:55 AM
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?
09-10-2013 03:55 AM - edited 09-10-2013 03:55 AM
@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.
09-10-2013 04:03 AM
Maybe something like this?
09-10-2013 06:11 AM
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
09-10-2013 08:27 AM
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.)