LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple waveforms in a graph

Iam trying to record the data in a 2-seperate graphs. say graph-1 and graph-2.

 

Elements are classified in to 2-groups each group should be tied up to 1-graph.

Iam reading the elements and the info to which group the element is belonged from a Excel sheet. And the element value is Received and should be assigned to the plot during the run time of a test .The number of signals in the group may vary from test to test so it is unknown.

 

1) Can anyone help me how to divide the received data based on the group to which it belongs and plot that data in a graph.

2) And how to display the names of the signal what actually it is plotting for.

 

Thank you

 

Shanth.

0 Kudos
Message 1 of 11
(36,210 Views)

Can any one pls help me with ploting waveforms in the Graph. I want to display mulitple no of signals in a single graph. And should indicate the name of the each signal in the graph.The no of signals will be varied for test to test. So no of signals in the graph will be updated during run time.

 

Thank you,

Shanth, 

0 Kudos
Message 2 of 11
(36,190 Views)
for multiple plots try using the build array function
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 11
(36,184 Views)

Hello Harlod,

 

                  Can you give me a little bit more information, how to show the names of each plot, and how to plot many signals in a single plot.

 

Thank you,

 

Shanth. 

0 Kudos
Message 4 of 11
(36,169 Views)
Start with using the Help functions with LabVIEW and the example finder.  If you hover over a waveform graph, waveform chart, or XY graph in the block diagram with Context Help turned on, it will give you the names of the example VI's to look up in the Example Finder.
0 Kudos
Message 5 of 11
(36,164 Views)

Go to the diagram and turn on context help. Move the mouse over the graph terminal and look at what is required for multi plots. You can create what you need with a graph but with single point acquisition, you are going to have to do some coding to keep adding new data to the graph. By default, a graph will replace the old data with new each time you write a new array to it. That's the basics of how a graph works. You should probably use a chart. Below is an image of how you could convert the 1D array to a 2D array (use context help again) and wire it to a chart. The number of columns in the 2D array will correspond to the number of channels you are acquiring. I'm assuming that someplace you get that information.

 

To name plots, you can use a property node. I don't know where you will be getting the names so the image just shows a string array constant wired into a for loop.

 

chart basics.PNG

Message 6 of 11
(36,162 Views)
you could also use stacked plots in a waveform chart
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 7 of 11
(36,142 Views)
an example of this, is this....
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 8 of 11
(36,134 Views)
Iam trying to plot graphs for the give data. The row with graph1 should be plotted in Chart-1 graph2 should be plotted in chart-2,and row with N/A should not be plotted. With the help of above suggestions Iam able to do something, but can u pls let me know how to split the data in to graph-1 and graph-2 by setting its plot name as shown in the attached vi.
 
 
-Shanth. 
Message 9 of 11
(36,077 Views)
Start by breaking your 2-D array into multiple 2-D arrays where the data for each graph is grouped together.
0 Kudos
Message 10 of 11
(36,063 Views)