LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple strip charts

Hello,

I am reading a Rs-232 data stream very 104ms. The data stream is 5 bytes long, and I want to display them on a Waveform Chart as different plots, specifically strip chart.

I have made a 2-D array of these data bytes and update the array every time I read the stream. How can I display this 2-D array on the Waveform chart ?

Thanks
0 Kudos
Message 1 of 5
(3,432 Views)
Hi,
What have you tried so far?  Please elaborate on what you mean when you say you you want to display them as different plots.  You should be able to wire an array directly to a waveform chart.
Eric A.
National Instruments
Distributed I/O Product Support Engineer
0 Kudos
Message 2 of 5
(3,399 Views)
HI Eric,

I I am able to extract all the bytes from the stream and then I use them to build a 1-D array. Should I connect this 1-D array to the Waveform chart icon ? I have selected multiple plots to appear on the waveform chart, by right clicking the icon and going to properties of the waveform chart.

So lets say the UART data stream had 5 bytes, I want to diaply these 5 values as 5 plots on the same waveform chart by stacking them on top of each other. Since the UART data comes every 100ms, the chart will appear as continuously updating to the human eye.

Thanks,

Bira_pxi
0 Kudos
Message 3 of 5
(3,381 Views)
Hi,
I sounds like you might want to take a look at the reshape array function on the array palette.  Search the LabVIEW help for that function also, there is a pretty good description of how it works.  You should be able to turn your 1D array into 2D array relatively easy since it sounds like your elements will already be in order.  Let us know if you have any more questions.
Eric A.
National Instruments
Distributed I/O Product Support Engineer
0 Kudos
Message 4 of 5
(3,363 Views)

Hi Bira

Try to use the array to cluster function on your 1D array and wire that into your waveform chart.  If you right click on the array to cluster function you can specify how many values you need displayed on the chart.  The number of samples displayed will be limited by the chart history length.

What version of labview are you using?

 

Good Luck

Eric

0 Kudos
Message 5 of 5
(3,354 Views)