From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview merge two charts from different while loops

Hi LabVIEW enthusiasts 🙂

 

I'm trying to merge two charts from different while-loops. I have simulatenous two while-loops that do these things :

1) First while-loop is used to generate sound and display it as chart.

2) Second while-loop is used as serial communication that displays voltage from soundcard (generated by 1st while-loop). The voltage is acquired by ARDUINO UNO and send the ADC value through serial communication to labVIEW to display as a chart.

parallel.PNG

 

The problem is I can't merge those charts into one chart. I have tried with making a bigger while-loop that contains those two loops, trying move the 2nd loop into 1st loop, still failed. 
So do you guys have any idea to do this? Thank you very much for the help or hints. 

0 Kudos
Message 1 of 6
(3,530 Views)

Hi wildan,

 

just a hint:

check.png

Best regards,
GerdW


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

The idea is that the Waveform Chart should output data from the same trend at the same time. Another waveform contains empty data. For him, you need to specify the correct TimeStamp so that the trend does not reset.

Default Control values: "frequency" = 0.001.. 0.01, "Rate" = 10..1000, "milliseconds" = 10..1000AsyncChart.png

Labview 4.0, 5.0, 6.1, 8.6, 2009, 2011, 2012, 2014
If you do not know something, ask me.
0 Kudos
Message 3 of 6
(3,507 Views)

Thanks for the hint. Could you explain that diagram and where I should place it?  @GerdW

0 Kudos
Message 4 of 6
(3,495 Views)

Thanks for the answer @Borjomy 🙂
Does it work for LabVIEW 2016? So you're saying that I could create another while-loops to obtain both values from 1st loop and 2nd loop and then merge it? 

0 Kudos
Message 5 of 6
(3,488 Views)

@Borjomy wrote:

The idea is that the Waveform Chart should output data from the same trend at the same time. Another waveform contains empty data. For him, you need to specify the correct TimeStamp so that the trend does not reset.

Default Control values: "frequency" = 0.001.. 0.01, "Rate" = 10..1000, "milliseconds" = 10..1000AsyncChart.png


 

0 Kudos
Message 6 of 6
(3,435 Views)