Stacked Plots Question

I'm working on a project based on the Continuous Data Acquisition
sample that shipped with Labview 7. My problem is that when I try to
plot multiple channels of data using the "Stacked Plot" property of
the Waveform Chart, I still get overlaid plots. The input to the graph
is the 2D array created by the example. Is there any way to get a
stacked plot here?
Many Thanks!
Dan

You might need to convert the array to cluster before feeding in to the chart... here is example for 1D stack plot
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
StackPLot.vi ‏58 KB

Similar Messages

  • How do you create stacked plots?

    Okay, I have tried for quite some time today to create a stacked plot, but without any success.  I want to be able to put in a max and min range for the x-axis on the front panel.  This x-axis will be used for three different y-axis.  Each y-axis will have a different scale than the other ones.  Also, each y-axis will have up to 6 different plots.  I have attached an example of what I hope the final chart/graph/plot will look like.  I have tried combining the x-axis values with the different y-axis values in an array (2D) and then plotting them but nothing seems to work right.
    Attachments:
    C-1650 - 4610 Q-SERIES pressure.pdf ‏24 KB

    Never had much success getting what I consider "publication quality" graphs out of LV, but that is not what it was built for.  It has a great looking GUI and the flexibility to get your data into a program to suit your needs.  Doesn't mean that there aren't some features we'd like to see added, especially when it comes to axes and labelling.  My advice to you is the following:
    1. take a deep breath and decide if this is something you really want to do.
    2.  perhaps try an in-between solution like stripping down the plots and stacking three XY graphs on top of each other.  You can programatically control the scales.  You won't have overlap of the plots like you show, and all of the labels will be on the left.
    3.  Try a standard XY graph and fudge the labels using Ben's very elegant trick. Ben is the go-to-guy (IMO) for picture control questions
    4.  Explore the Picture VIs to generate plots piece-by-piece.  You are in for a lot of work, but it is the only LV-only solution I know to get the results you are looking for.  (Perhaps there are new and exciting features in LV2009 that someone will enlighten us with).
    5.  Do what I do.  I use a MathLink connection to Mathematica when I need plots that I can't get easily in LV.  You can retrieve the graphics object and display it in a container or a picture control.  I use a picture control because the container seems to unload the image when I stop the VI.  If you don't have Mathematica, or similar program, sorry.
    Message Edited by Darin.K on 08-17-2009 07:41 PM

  • Change properties inside dynamic stack plots

    Is there any way in LabView 8.2 now to change the properties of indicators inside an array or cluster?  I want to change the properties of the waveforms inside DynamicStackPlots (http://zone.ni.com/devzone/cda/epd/p/id/3024).  I see on this forum back in 2005 this was last discussed.  I have also tried making a cluster of waveforms (instead of an array of clusters) from which you can at least separately access properties (allowing you to make specific waveforms not visible, yielding dynamic stack plot functionality).  But you STILL cannot modify, say, the plot min range, label, scale... etc.
    All ideas welcome!
    Thanks,
    Adam

    Hi, Adam.
    This question seems to pop up every once in a while. The answers are different for arrays and clusters:
    Clusters
    You can access the properties using an explicitly-linked property node (IE, one that takes a control reference as an input). You can obtain a reference to the controls in one of two ways:
      - Right-click on the control (inside the cluster) and select Create»Reference.
      - Create a property node for the cluster and access the Controls[ ] property. This will give you an array of references to the controls inside the cluster, and you can pass that into the explicitly-linked property node. (You may have to use a To More Specific Class VI if you want to access properties that apply to only graphs.)
    Arrays
    Since arrays are for holding a large quantity of indentical data types, the properties for all elements of the array must be the same. If you really want to sidestep this functionality, however, you can always create an array of references to controls. If you wanted to do that, you'd have to create all your controls individually and then create references for them one by one. Once the references are created you can pass them into a Build Array VI. To alter the properties of any particular control, you'd use an explicitly-linked property node and pass in the appropriate reference.
    Let me know if any part of this isn't clear. Have a nice evening!
    Message Edited by sarahk on 10-25-2006 04:35 PM
    Sarah K.
    Search PME
    National Instruments
    Attachments:
    clusterControlReference.GIF ‏6 KB

  • Dynamically resizing stacked plots depending on visibility of scale

    Hi,
    is there a way to change plot width in a chart with stacked plots, depending on visibility of scales and number of digits of scales _and_ without resizing width of the chart when all scales are invisible?
    The problem: when all scales are invisible and the number of digits increases, the chart's width decreases and the scales move a little to the left.
    Thanks a lot in advance.
    Cheers,
    Martin

    Hello Martin,
    Could you please attach some sample code of your question. Also, if would be really helpful if you could document the front panel of the code with what to do in order to see the problem you are seeing with the chart's width decreasing.
    Thanks.

  • Plotting 6 curves in 3 stacked plots?

    I've got some filtered x,y, z coordinate data which I'm currently plotting to a waveform chart with stacked plots. How can I include the unfiltered data on the respective plots? 
    ie. 1 plot displaying x filtered and unfiltered together, y filtered and unfiltered together etc.
    Solved!
    Go to Solution.

    Hey Graham,
    Interesting question!! It has taken me a while to figure it out, but is certainly possible - even if the solution is a bit of a fiddle.
    Please see the attached code. To impliment your functionality, I had to...
    Bundle all plots (in this case 4) in to a single cluster, and send them into a "stacked chart".
    Resize the plot legend to show all 4 plots.
    Right click each item in the legend, navigate to Y-Scale and then select which window you would like to show the plot (1-4)
    This means that 2 of the windows will show 2 plots each, and 2 of the windows will be empty. Unfortunately, I was unable to "hide" a window - so this is where the "fiddle" comes in - I just resized and repositioned each of the "windows" to effectively only show 2 of them in our stacked chart.
    I hope this has been useful Graham,
    Best wishes,
    Rich R
    Applications Engineer
    National Instruments UK & Ireland
    Attachments:
    StackedPlot.vi ‏18 KB

  • Change properties in stack plots

    hello
    I'm using a waveform chart in my VI (labview 6.1).I need to display three graphs with diffrent y-scales.
    So I chose Stackplots. The result is one chart with three diffrent output windows. So far so good - but now I need to change the properties of the graphs individually. Primarily I'd like to change the way the displayed points are interpolated.
    I've searched for the place where to make this changes but all I found was a way to adjust the first output chart. All other output windows of the stack plot remain with the standard looking. maybe a quite stupid question ...
    thanks in advance for any help
    Simon

    You need to use/set the "Active Plot" property as per the attached.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."
    Attachments:
    Use_Active_Plot_v61.vi ‏28 KB

  • "Fill base line"/"Fill to" problem within stack plots

    Hi there,
    I try to plot multi data sets within the stack plots waveform chart. But I can't control the Fill To option correctly for the plots other than the first plot in the window. As attached, even I set the fill baseline to zero for the second plot (the green one) in the first window, it performs like fill to -infinity. I am using Labview 2010 DS2.
    Any solution? Or, I made any mistake here?
    Thanks.
    Attachments:
    Stack Plot Fill Baseline.vi ‏12 KB

    I agree things behave a bit weird if the number of traces is not a multiple of the number of stacked plots. Do you want three stacked plots or have two traces share one of the plots? Maybe you should use more defined data structures, e.g. an array where each element is a clusters of size=3.
    Try the following:
    resize the plot legend so 4 stacked plots show.
    Now resize it again for two stacked plots.
    In my case, the fill to zero is now correct.
    LabVIEW Champion . Do more with less code and in less time .

  • Stacked plots problem in exe

    Hi,
    Ive got a problem with creating .exe application where 2nd chart functioning properly.
    2nd chart is in subpanel as a stacked plot. I pass via main form numbers of stacked plots. In builder it works perfectly, in .exe not at all..
    Any ideas?
    Attachments:
    WykresOnlineCAN.zip ‏73 KB

    Ok sorry I didnt explain well whats the point.
    There is no problem with properly "refreshing"  of subplot - works fine even without static reference(but thanks anyway, I missed that).
    I cannot changed the number of staked plots in the screen(constanly 1) - in editor mode it changes according as number of flaged plots.
    The problem is show in the pictures below.
    Attachments:
    editor mode.png ‏60 KB
    in exe.png ‏57 KB

  • Remove borders from stacked plot with 64 channels

    Hello,
    I am looking for a way to compact my display for 64 channel of data. Is there a way to remove/reduce the border between the stacked plots in a waveform chart? It would be awesome if I could each plot area right on top of the other. It would be even better if I could have them overlap a bit as well.
    I don't necessarily need to see each plot clearly, the important part is just being able to see if an individual channel has very high noise compared to it's neighbors.
    programatic solutions would be great as well because there will be times when only some of the channels will need to be viewed.
    I included a picture of my current stacked plot layout. Basically more border than plot.
    Thanks!
    Attachments:
    64 stacked plots.PNG ‏39 KB

    Hi honglyshin,
    As it turns out there is a way to essentially merge the plots.  On the plot itself, if you move your mouse to the far right side of a plot, you can drag its upper right corner up(ensure the double-ended expand arrow is oriented with the left side down and the right side up to ensure your have the correct corner) to meet the plot above it.  There doesn't appear to be a way to do this programmatically, but dragging the plot corner to meet the plot above it seems to work.  
    AC - LV Solver
    Attachments:
    stacked plot.PNG ‏4 KB

  • Dynamically stacked plots of chart

    In LV 2009 it is still not possible to set the number of stacked plots of a chart programmatically. Is there any useable workaround?
    Before I start measurement I know how many channels I will acquire – between 1-16.
    Before the measurement starts I want the chart to display as many plots as I have charts
    I am building exe in the end (in linked thread is proposed some workaround that doesn't work in executables)
    My only suggestion so far is to use 16 stacked plots and play with their height and position to hide and show them = not very friendly. Thanks for any suggestion
    Message Edited by ceties on 01-12-2010 03:28 PM
    LV 2011, Win7
    Attachments:
    StackedPlots.vi ‏14 KB

    If you somehow manage to execute the program with "overlayed" plot selected (with the number of stacked plots wired to the property node )and then switch back o "stack plots" progrmatically i think you can solve this...
    Guru
    Regards
    Guru (CLA)

  • Stacked plots

    Is there a way to have a stacked "Waveform Chart" with 8 stacked charts but display 16 plots, 2 on each chart?

    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
    Attachments:
    Overlaid graphs.ctl ‏31 KB
    Overlaid graphs.vi ‏50 KB

  • Changing y-axis in chart stack plot

    I am using LABVIEW 5.0.1f1:
    I plot 8 values in a chart as stack plot by bundeling the values. During
    running programm I want to change the y-axis of the 5th value (changing maximum).
    But if a use attribute node of this char and select "active plot"=5 and "y
    maximum"=40 only the 1st plot window of this stack is changing its y-axis.
    How can I modify the 5th plot window?

    I have the same problem, did you find a solution?

  • Stacked Plot y-axis property access.

    STACKED PLOT Y-AXIS
    I have a stacked waveform chart showing four plots
    Each plot correctly appears on a different sub-plot
    I can use the set active plot property to loop through the four plots and change their names, visibility etc.
    I can also read which is their active y scale index which corresponds to the plot index (i.e.both 0-3)
    BUT
    When I try and change a y scale property (e.g. label>text) it only ever changes the top sub plot label
    I have tried forcing the active Y-scale index also to no avail.
    I have also tried an overlay plot with 4 different y-axis and have the same problem.
    HOW DO I SET TEH INDIVIDUAL Y-SCALE PROPERTIES ON A STACKED PLOT?
    Attachments:
    stackedplot_yaxis_edit.zip ‏22 KB

    I made 2 small modifications to your VI, take a look at the attached.
    First you needed to set the active Y scale rather then setting the index. But more importantly the property node you are using to set the values is linked to the wrong graph.
    Let me know if the attached does what you where looking for.
    Attachments:
    stackedplot_yaxis_edit2.vi ‏66 KB

  • How do you programmatically switch between a stack plot and an overlay plot with a waveform control?

    One method i realize is to have two waveform controls, one visible and one not visible. The real issue here is, how to dynamically control the number of plots in a stacked plot. My case,
    i will have between 2 and 8 channels. I have found that in the properties if i set the number of plots - Legend--Plots shown . I can control the number of stack plots, however, i must toggle from overlay to stack plots in design mode for the correct number of stack plots to be shown. Does anyone know a way around this problem or know of the property that has alluded me?

    Hi,
    You cant select between Stack plot and Overlay programmatically. Well not in LaBVIEW 5.1.1.
    You could have two Charts, one set up for Overlay and the other setup for Stacked. Then hide the one you are not immediately using.
    Ray.
    Regards
    Ray Farmer

  • Switch stack connectivity question

    x.x.x.10 = stack 1
    x.x.x.11 = stack 2
    my question since i have been thrown to the wolves is (with very little experience): I am at one site with 2 stacks. Is connecting stack 1 to stack 2 done with a crossover or straight through cable? On stack 1 I have 6/0/19 and 6/0/20 being used for avaya vm erver and avaya ip office. So I need to make sure that second stack can communciate to number 1 in order for the prots on the second stack to recognize the vm server and ip office locations. I'm a little confused. I know I shouldn't use a stackwise cable. Any help would be appreciated.

    Not to be overly technical or picky, the term "stack" refers to the feature that the 3750 is capable of and stacking this platform would require a "stackwise" cable. It should come with the switch and it's silver. you connect the 3750 through stack port in the back of this switch. Now, if you are simply connecting two switches together, you will require a cross-over cable. A good rule of thumb is when connecting two alike devices you will need cross-over, like router to router or switch to switch. If they are not alike then you will need straight.

Maybe you are looking for

  • Tomcat + myFaces: Cant get it to run

    Hello! I try to get MyFaces and Tomcat 5.0.30 to run but only get the error message below when I point the browser to the webapp. We are using J2SE 1.4.2 and Windows NT. I also tried different Tomcat version. As a web application I tried my own one,

  • Why restore of my new mini ipad is not completed after 7 days?

    Why my new mini ipad is still in a restore mode after 7 days? What should i do?

  • Metal L&F bumps - how to get rid?

    Hi, Does anyone know how to make the metal bumps on the scroll bar drag area and splitpane divider go away? I'd prefer the plain and simple windows look - my app currently runs on HP-UX so I don't have the option to use the windows L&F. I can see it

  • Alv is not displying

    Hi All I am developing one ALV Report in that i am fetching data from diff tables and i am puting all internal table to one final internal table .Now i want to disply that i am using REUSE_ALV_FIELDCATALOG_MERGE FM aft that iam using REUSE_ALV_LIST_D

  • Call alternating between earpiece and loudspeaker

    I have a Sony Z1The last few days when i answer a call I will start the call using the ear speaker (phone held to ear) however after a while the phone begins to alternate between the ear speaker and the loudspeaker and eventually after about 15 secon