LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert element by element in chart

hi,

 

I am having the following scenario.

 

Cluster of signal name and data.(for example signal name as signal 1,and data as 10)

user specified number of signals will be coming(shuffled manner) in the cluster with the respective values.

 

I want to plot all the signals in the chart.kindly suggest me, how to proceed.

 

Thanks 

0 Kudos
Message 1 of 4
(2,676 Views)

Sorry, I don't understand some of your terms (e.g. shuffled manner" ).

 

Can you attach a simplified example VI that shows the data structures?

Message Edited by altenbach on 11-13-2008 05:17 PM
0 Kudos
Message 2 of 4
(2,674 Views)

Hi fgrr,

 

I believe you wouldn't be able to use a chart to plot this data. Smiley Sad If you have multiple plots in a waveform chart, it expects the values of all the plots at time 't' to be input to it at the same time. Since the data coming in your cluster is shuffled, you wouldn't be able to have the multiple plots on the chart.

 

A neat trick you can do is to have multiple waveform charts (one for each signal) and make their backgrounds transparent (using the color tool in the front panel) except the one at the bottom. Overlay them nicely one on top of the other and make sure that the X and Y scales auto scale is disabled. Then you could use a case structure and pass the value to different charts. (as VI attached)

 

One potential problem with this would be clearing chart contents.

 

Hope this works out for you,

 

Cheers!

 

Sanka Smiley Happy

 

 

 

 

0 Kudos
Message 3 of 4
(2,646 Views)

Well, it all depends what "shuffled manner" is. If all points come in as a complete array of such clusters and all we need to do is re-sort by signal name before charting, this would be very simple.

 

I won't try to guess any further until we get more information. 🙂

0 Kudos
Message 4 of 4
(2,630 Views)