LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic multiple waveform display

Hi,
 
I'm a labview beginner. Here I got a quick question. I want to use one waveform graph to display two waveforms (acquired from two channels). As shown in help files, it seems I need use "build array" to bundle the two data streams to one array and output to waveform graph. However, I got an error (error message: ''You have connected an array to its element type?) when I was doing this. Attached is a picture showing my simplified test case. Instead of use data acquired from hardware, in this test file, I use simulated sine waveform.
 
I knew this could be a very small trick. However, I couldn'd find a way to fix it.
 
Any help is appreciated.
 
 
0 Kudos
Message 1 of 5
(2,825 Views)
Hi CookLight,
in your case you have to use the "Merge Signals" function from the Express -> Signal Manipulation palette.

Mike
0 Kudos
Message 2 of 5
(2,821 Views)
Hi Mike,
 
Thank you so much for your quick response. I guess if I use "merge signals" I will loss one wavform, which  is not desirable. My purpose is to display two waveforms (signals) in one waveform graph (or any other displays such as XY graph). I would appreciate if you can give me some suggstion on how to do this.
 
Thanks again.
 
CookLight
0 Kudos
Message 3 of 5
(2,808 Views)
You do not lose a waveform when you use the merge signal function. It is the correct function to use when you work with a dynamic data type. If you converted the dynamic data from the simulate signal to a waveform data type or to a 1D array, then you would use the Build Array function like the help says. To see both signals, just replace the Build Array with the Merge Signals and look at your graph. You don't have to 'guess', you just have to do it and see
0 Kudos
Message 4 of 5
(2,802 Views)

Dennis and Mike,

It worked. Thanks for help.

Actually, I did try "merge signal" when I first got this problem and it didn't solve the problem. That's why I looked up the help file and tried "build array" then.  I might have made some other mistakes when I firstly tryied that. Anyway, I'm glad the problem has been solved and thanks again for your patience.

0 Kudos
Message 5 of 5
(2,786 Views)