LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform chart

Solved!
Go to solution

Hi, im having some trouble setting up a waveform chart with multiple plots. The plot gives the excel output in the picture, but i dont need to plot the channel name (102,103,104), just the values. I'd like a separate plot on the same graph for each channel. Probably something to do with the arrangement of the array but cant seem to fix it.

Thanks 

Download All
0 Kudos
Message 1 of 9
(2,415 Views)

You are adding the channel names for each iteration of the loop. Just don't add them or add them only the first time.

Certified LabVIEW Architect
0 Kudos
Message 2 of 9
(2,405 Views)

How do i only add them the first time 

0 Kudos
Message 3 of 9
(2,394 Views)

From your code, the simplest (no, there is always a simpler way) would be to have a case-structure around the build-array node in the loop and only do that on i=0 and on all other iterations only add the data.

Certified LabVIEW Architect
0 Kudos
Message 4 of 9
(2,385 Views)

Reduce your FOR loop to something like this:


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 9
(2,384 Views)

@crossrulz wrote:

Reduce your FOR loop to something like this:

...


...And then if you want the channel numbers on the top row you can use build array after the loop. You probably don't want that in the chart data anyway, but only when you export the data (to Excel).

Certified LabVIEW Architect
0 Kudos
Message 6 of 9
(2,378 Views)

Thanks for your reply,

Adding the waveform chart before building the array results in only 1 channel being plotted and showing up in excel.

0 Kudos
Message 7 of 9
(2,374 Views)

Can anyone help with this? 

How do I separate the points into different plots 

Thanks 

0 Kudos
Message 8 of 9
(2,350 Views)
Solution
Accepted by topic author newman3108

@newman3108 wrote:

How do I separate the points into different plots


Insert a Build Array before the chart.  Make sure it is only 1 input tall.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 9
(2,348 Views)