LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display two 1D arrays on Wavechart

Solved!
Go to solution
Highlighted

Hello,

 

How to display two 1D arrays of the same size on a WaveChart

 

Thanks.

0 Kudos
Message 1 of 6
(1,417 Views)
Highlighted

Have you tried taking some LabVIEW tutorials or reading the documentation for a Waveform Chart? You makes lots of posts asking the basics about LabVIEW...


LabVIEW Champion, CLA, CLED, CTD
MediaMongrels Ltd. - NI Alliance Partner (blog)
0 Kudos
Message 2 of 6
(1,408 Views)
Highlighted

Here is extract from Help:

Wire a 2D array data type to the chart, right-click the chart, and select Transpose Array from the shortcut menu to treat each row in the array as a single plot.

 

Doesn't work. There is error in this instruction.

Solution: instead of right-click on Waveform chart one should insert Transpose Array block between Build Array block and Waveform chart.

0 Kudos
Message 3 of 6
(1,398 Views)
Highlighted
Solution
Accepted by topic author Pavel_47

No, the help is correct, when you wire a 2D array to the waveform graph, you can transpose it from the shortcut menu as follows:

2016-04-05_12-57-33.png

 

Ticking/unticking that option has the same effect as putting a Transpose 2D array before wiring your array into the waveform chart.


LabVIEW Champion, CLA, CLED, CTD
MediaMongrels Ltd. - NI Alliance Partner (blog)
0 Kudos
Message 4 of 6
(1,389 Views)
Highlighted

Yes...

I've tried on Block Diagram - there is no such option on Waveform chart context menu.

One more trap of LabVIEW - context menu changes depending on where it is called - in BlcokDiagram or in Front panel.

Thanks anyway.

0 Kudos
Message 5 of 6
(1,379 Views)
Highlighted

You could use "build waveform" for each of the 1-d arrays. make sure you set the "dt" to the right value and THEN build an array of the two WFs. present that to the chart.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(1,353 Views)