LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stacked plots

Is there a way to have a stacked "Waveform Chart" with 8 stacked charts but display 16 plots, 2 on each chart?
Message 1 of 17
(5,265 Views)

Something like this?

Message Edited by Dynamik on 03-09-2006 12:12 AM

Message Edited by Dynamik on 03-09-2006 12:14 AM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 17
(5,244 Views)
Yes. Your picture looks like what I want. But how do I do it? Remember, I don't want to use two charts with one of them transparent. I want to have one chart only.
0 Kudos
Message 3 of 17
(5,223 Views)
Hi, Fataneh.

I've never tried to do that before, so off the top of my head I'm not sure how he did that. I'll see if I can get that same behavior without the transparent workaround.
Sarah K.
Search PME
National Instruments
0 Kudos
Message 4 of 17
(5,211 Views)

Hi Sarah, Fataneh,

      I just made the background of the top chart transparent.  I explained it before (follow link here).  I had no clue you'd seen it Fataneh - no reply to first post. Smiley Sad

It seemed like a pretty "clean" solution, but it's not what Fataneh wants - maybe there's a better way!

Cheers! Smiley Happy

Message Edited by Dynamik on 03-09-2006 07:30 PM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 5 of 17
(5,211 Views)

Hi Dynamik and Sarah,

Thanx a lot for trying to help. Here's the reason why I don't want to overlay 2 graphs on top of each other with one being transparent. I need to have each 2 plots that fall on top of each other at the same scaling at run time (I need to use auto scaling). Because they belong to different charts, they scale differently. Is there a way to work around that? if so, the transparent solution could work. Thanx again.

Fataneh

0 Kudos
Message 6 of 17
(5,194 Views)
Hi, Fataneh.

After much testing I've come to the conclusion that there's no straightforward way to create multiple signals on the same stacked graph. There is a small exception to that demonstrated in the attached code: you can have as many signals as you want in the topmost plot, but all subsequent plots will display exactly one signal.

To use the transparent-chart method, you should be able to use property nodes to effectively "lock" the scales together: tell them both to autoscale, then immediately compare the max values. Turn off autoscaling on whichever is smaller and set its max to the autoscaled-scale's max. (You can do a similar procedure for the minimum values.)

Sorry I can't give you a better answer, but it sounds like this should be able to produce the desired results. Have a nice weekend!

Message Edited by sarahk on 03-10-2006 04:17 PM

Sarah K.
Search PME
National Instruments
0 Kudos
Message 7 of 17
(5,195 Views)

Sarah,

Thank you. I'll try that.

Fataneh

0 Kudos
Message 8 of 17
(5,172 Views)

Ok I found a way to do this.  It is not exactly straight forward but the attached VI and control show what you want.  The secret is in customizing the graph and using the "Y Scale Index" property.

Follow these steps and you should be golden.

1. Create your stacked plot with the 16 plots.  So you will have 16 tiny little plot areas... no worries.

2.  Take a look at the attached code and see how you can select the active plot and then the Y Scale Index associated.

    You at the moment have 16 plots and 16 Y scales.  Simple change the Y scale index of the last 8 plots to be 0-7. 

3. Try that and notice you now 16 plot areas 8 plots with 2 plots on it, and then 8 that are empty.

4. The last thing is to get rid of the 8 "blanks".

5. Select the last 8 plots and make their Y scales not visible.

6. Finally right click on the chart and select customize.

7. Select window>> Show Parts Window.  In that new window you can find the last 8 plots, and set their hieght to 1, and change their location.  I suggest moving them under the top plot. 

8. At this point you have a lot of free space.  Select one of the remaining plots and increase its height to what looks good for just one plot area.  Then select the 8 that you want to show and you can use the "Resize Objects" ring in the tool bar to make them all the same size.  Move them to where you want and bingo.

9.  You should now have 8 visible plots, and 8 that are hidden.  Save the control and replace the one on your Front Panel.

You should be done.  Let me know if or where you get lost because I know this is kinda strange.

Evan

Download All
Message 9 of 17
(5,171 Views)
Wow. That does sound tricky. But hey, if it works. Thank you so very much. I'll try it.
 
Grateful: Fataneh
0 Kudos
Message 10 of 17
(5,169 Views)