LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Required: read from spreadsheet csv of 14 columns into Waveform chart with stacked plots

Solved!
Go to solution

Hello there. I cannot seem to plot my waveform chart into stacked plots and the chart is somehow incorrectly put. Can anyone help me with it or point out which I should change? 

0 Kudos
Message 1 of 9
(3,473 Views)

Hi ping²,

 

don't use ExpressVIs!

 

The context help of the chart explains how to provide data!

Why don't you wire your 2D array directly to the chart? (Maybe all you need is an additional TransposeArray function!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(3,464 Views)

Thanks for your response. I have removed all functions in the middle and replace it with transpose. However the chart does not response to my csv file attached. Below is the result. My expected outcome would be like the graph attached below. 

 

I do have done the graph in xy graph, but I needed result to be stacked.

0 Kudos
Message 3 of 9
(3,456 Views)

Hi ping²,

 

you need to enable the stacking behaviour at edit time in the chart properties…

Did you?

It works for me:

check.png

 

That's the problem when people only attach images: we cannot examine their code nor can we debug those images!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(3,442 Views)

Below is what I got so far. I can't seem to get my csv data to corresponds to the waveform chart. 

Download All
0 Kudos
Message 5 of 9
(3,436 Views)

Hi ping²,

 

it works for me:

check.png

- You should enable autoscaling of the x axis.

- As I already mentioned: don't use ExpressVIs for this simple task!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 9
(3,421 Views)

Thanks, I'm almost there. The result outcome you generate is exactly my aim. However I still cannot get that specific result.

Download All
0 Kudos
Message 7 of 9
(3,417 Views)
Solution
Accepted by topic author pingping12

Hi ping²,

 

I repeat a sentence of my last message:

You should enable autoscaling of the X axis.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 9
(3,411 Views)

Great!! Got it! Many thanks!

0 Kudos
Message 9 of 9
(3,402 Views)