11-13-2008 07:07 PM
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
11-13-2008 07:16 PM - edited 11-13-2008 07:17 PM
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?
11-14-2008 03:59 AM
Hi fgrr,
I believe you wouldn't be able to use a chart to plot this data. 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
11-14-2008 08:50 AM
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. 🙂