Multiple y axes overlay eachother

I'm working on a program which will allow users to plot up to 5 different channels with indepdnant y axes. I make them visible / invisible depending on how many channels are being plotted.  Unfortunately, the axes start to overlap eachother.  I decided to programmatically fix this
The code works just fine initially (for preventing the axes from overlaying eachother), but quickly mess up once you start making them visible / invisible.
Any thoughts / solutions?
Solved!
Go to Solution.

BowenM wrote:
I'm working on a program which will allow users to plot up to 5 different channels with indepdnant y axes. I make them visible / invisible depending on how many channels are being plotted.  Unfortunately, the axes start to overlap eachother.  I decided to programmatically fix this
 [code snippet not copied here]
The code works just fine initially (for preventing the axes from overlaying eachother), but quickly mess up once you start making them visible / invisible.
Any thoughts / solutions?
Well, a couple of things (okay, three) come to mind. First, you don't need to use two different property nodes inside your for loop if you are referring to the same axis - just use one property node and pull down a second property. That way you won't have a chance of mixing things up.
Second, you could use a for loop set to only include the axes/plots you want visible with autoscaling N to an array of your visible plots, then your axes would all be spaced identically.
Third, you could set the plot position and size to move over and shorten as more y axes are made visible, so you take up the same amount of screen real estate for any case.
Other customizations are possible, but these should get you where you say you want to be.
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ

Similar Messages

  • Multiple X axes in DIAdem 9.1

    Is it possible to have multiple X-axis scales for a 2-D plot in DIAdem 9.1? 
    I have no problem with multiple y axes but I would also like multiple x axes as well.
    Thanks,
    Tom

    Hi Tom,
    Multiple X axes are not supported anywhere in DIAdem 2012, so that's a dead stop.  If you want to overlay multiple curves in VIEW that have different X values, you will need to rescale those X values.  If you're plotting waveforms, this is as easy as multi-selecting the set of N channels you want to change in the Data Portal and editing the waveform start offset property, which will make the property value change you entered once to all N channels selected.  If you have N Y channels that share an X channel, then you just need to rescale the one X channel once with the Linear Scaling function in ANALYSIS.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Creating a report with multiple Y-axes on one graph

    I currently have a script that will create a report with either 1, 2, or 3 graphs and has the ability to have four graphs per plot.  I would like to add functionality to this script by making the Y-axis on the graphs have multiple Y-axes.  How can I programmatically create a graph with multiple Y-axes?

    To create an new axis system use the command GraphObjNew, eg:
    Call GraphObjNew("2D-Axis","2DAxis1")
    Call GraphObjOpen("2DAxis1")        
      D2AxisBackColor = "blue"  
    Call GraphObjClose("2DAxis1") 
    Call PicUpdate
    If you have DIAdem Version 10 you can also create a new y-axis using GraphObjYAxisNew. This command is not available in versions 9.1:
    Call GraphObjOpen("2DAxis1")
    AxisNo = GraphObjYAxisNew("left")
    If AxisNo>0 Then
      Call GraphObjOpen(D2AxisYObj(AxisNo))
      D2AXISYTXT ="My new axis"
      D2AXISYTXTFONT ="Arial"
      D2AXISYTXTCOLOR ="red"
      Call GraphObjClose(D2AxisYObj(AxisNo))
    End If
    Call GraphObjClose("2DAxis1")
    Winfried
    Message Edited by winner on 03-23-2006 03:48 PM

  • How to set property nodes for each of the multiple y-axes?

    In Labview 6i, I have set up multiple y-axes on an xy graph. I want to change certain properties of each of the 2 y-axes independently. I believe I can do this using "property node".
    However, after I have created a property node for the xy graph, I realised that there is only 1 y-axis selectable from the list of properties. How can I set the property of the other y-axis then?
    Thanks for the help!

    I believe there is a property called "active graph"... this allows you to
    select the active graph to apply the property changes to...
    Later...
    meng118230 wrote in message
    news:[email protected]..
    > In Labview 6i, I have set up multiple y-axes on an xy graph. I want to
    > change certain properties of each of the 2 y-axes independently. I
    > believe I can do this using "property node".
    >
    > However, after I have created a property node for the xy graph, I
    > realised that there is only 1 y-axis selectable from the list of
    > properties. How can I set the property of the other y-axis then?
    >
    > Thanks for the help!

  • Multiple y axes overlap

    I have a graph with multiple y axes. I programmatically turn on and off some of the y axes as and when I need them, appropriate to the curves I'm plotting.
    When I created the graph, I placed half the y axes to the left of the plot, and the remainder to the right. However, when I use the yScale.Visible property to show/hide the axes, I get something like this:
    What's happening!? Why are my y-axes overlapped? (please ignore the white box in the plot, that's just me covering up some annotation text)
    Message Edited by Thoric on 07-16-2008 04:05 PM
    Thoric (CLA, CLED, CTD and LabVIEW Champion)
    Attachments:
    multiyaxisgraph.jpg ‏44 KB

    My chart has four axes on the left and four on the right, so you can understand why I want to hide those that aren't used as it gets very busy on there sometimes ! Unfortunately, none can be re-used as there are rare occasions when all eight are needed!
    I've managed to re-create the plot, and also create a hard-coded list defining which side of the plot (left or right) each y-axis is meant to reside. Thus, if LV 'forgets' which side of the plot to draw the y axis, it doesn't matter because I'm now calculating the actual scale position.left property and setting it myself.
    Took a bit of coding up, but seems to work nicely now!
    Thanks for the advice Paul. It's good to know people are out there willing to help!
    (I'd rate your answers but I don't have enough posts to have that privilege yet. sorry)
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • Multiple Y Axes Reference

    How do I reference a plot to the second Y axis?
    Using the example Multiple Y Axis....
    I want Plot 2 to reference the seconds Y axis, however, it always references the first Y axis
    void CMultipleYAxisDlg:nGenerateData()
    int i;
    CNiReal64Vector RedData(100);
    CNiReal64Vector MagentaData(100);
    CNiReal64Vector WhiteData(100);
    for (i = 0; i < 100; i++)
    MagentaData[i] = -25;
    WhiteData[i] = 125; // always references 1st Y axis on right side
    RedData[i] = 700;
    m_Graph.GetPlots().Item(1).PlotY(MagentaData,0,1);
    m_Graph.GetPlots().Item(2).PlotY(WhiteData,0,1);
    m_Graph.GetPlots().Item(3).PlotY(RedData,0,1);

    The CNiPlot class has a YAxis property whose type is CNiAxis. You should set this property to the axis that you want associated with the plot. For example, assuming your graph has at least two plots and at least two y axes, you could do this:
    m_Graph.Plots.Item(2).YAxis = m_graph.Axes.Item(3);
    - Elton

  • Run multiple tabs next to eachother in a single window

    I have a tv screen that i use as a monitor and it's big enough to open several windows on the same screen, but i wanted to know if it is possible to run multiple sites in a single window. to be more precise if it is possible to open 2 tabs next to eachother. That way I wont have to open 2 windows and get 2 of everything.

    Try this extension. <br />
    https://addons.mozilla.org/en-US/firefox/addon/tile-tabs/

  • Multiple Y Axes

    Hi
    I am using Flex2 and i am developing line charts,DateTime
    with X-Axis and multiple series on Y-Axis, how can i develope
    multiple(more than 2) Y-Axes with different ranges

    Flex 3 supports multiple (more than 2) axes, where we can
    specify horizontal and vertical axis for each series. But Flex 2
    supports a maximum of 2 axes. Second axis can be added using the
    properties secondHorizontalAxis, secondVerticalAxis,
    secondDataProvider and secondSeries

  • Multiple web content overlays on a page

    I'm using Edge to make some vector animations--3 separate infographics--in my DPS publication. I'm placing them all on one single page, but only the first animation that is tapped by the user "plays" all the way through like it should. That is, once I tap and successfully play one animation, I try a second animation, but it loads but doesn't play.
    Is there some limitation on the number of web overlays--or HTML5 animations--that can be on a page?
    For background on my workflow, my organization doesn't yet have a DPS subscription. We are simply building folios with CS6 and testing with our accounts on the iPad with the newest Viewer (23).
    thanks,
    Scott

    We are having the same problem here. It's seems to be related with the iOS 6 update. We have two iPads, one with the updated software (iOS 6) and the other without it (iOS 5). Both of these have been updated with the new Adobe Content Viewer. The one with the old iOS works perfectly (HTML, Edge Animation, Videos) but the other with the most-up-to-date software does not. The HTML doesn't play and some times plays it once. We even tried by adding it to the HTMLResource folder to be trigger by a button to open a new window by itself, but no joy. Again we don’t have any of these problems on the iPad without the current software update. They all work perfectly
    Please advise since most users have upgraded their iPads and iPhones.
    Thanks,
    Daniel Rodriguez

  • How do I graph multiple bit values on one time axis?

    I want to graph multiple bit values, all of which will change back and forth from 0 to 1, on the same time axis, but I don't want any visual overlap between the different bit value traces.  Now I could do this by graphing bit one as either 0 or 1, bit 2 as 2 or 3, bit 3 as 4 or 5, etc., but I would really rather have multiple Y axes showing 0 to 1, stacked vertically on the same time (X) axis.
    You could visualize this as multiple pens on a strip chart continuously recording different values.  Each pen has its own vertical area in which it writes, but all pens could be writing data from the same numerical range.
    Hmmm...  I think my description might be roughly as clear as mud, but if anyone out there can figure out what I am asking and has potential solutions, please let me know.
    Thanks!

    Thanks.  I will look at that VI, but I think I have already seen it.  My problem is that I have CAN data coming in for an hour or so, but the time interval between receiving specific CAN arbitration IDs varies, so I want to plot the X axis against specific, varying time values, not a standard dT.  I'm not sure I can do this on a digital graph, but I haven't given up hope yet.
    BTW, I am receiving 8-byte CAN packages.  Some of the bytes represent actual values, but I need to break others up into individual bit values to see error and status flag settings.  Once I break the bytes into bits, I convert from analog values to digital values.

  • Error in multiple condition type switch

    Hi,
    I define a multiple condition as a switch for different processing branches for my
    Workflow (all my attributes in the conditions are from the object).
    I defined the Other Values outcome also.
    When one of the conditions is true I received an error SWP103 "Error when starting a SWITCH branch"
    It works fine when my process go to "other" outcome.
    Thanks in Advance,
    Ronit.

    In my workflow the same error occured while using a mutliple condition with type Switch.
    A short explanation of my workflow:
    - container operation: errorcounter = errorcounter + 1
    - multiple condition
      1. errorcounter =< 4
      2. errorcounter = 5
      3. other values
    - activity
    - loop until (depending on outcome activity).
    The first time while executing the loop went perfect, but the second time it failed and based on the message I guess it failed on the multiple condition. What I also notices in the technical view was that the errorcounter wasn't updated.
    I guess the container operation and multiple condition bumped into eachother (somehow?) and caused the error.
    My solution:
    Put a wait stap between step 1 and 2 and it works fine.
    I'm not sure this case is applicable to you, but may be a hint in the right direction. Good luck!

  • How to select photo's from multiple locations in Places view?

    I want to select photos from multiple locations (close to eachother) in Places view (shift-P). I tried clicking to pins with cmd-click, but that did not work. They turn yellow, but that does not select the photos from that location.
    Koen

    Found the answer myself
    Yellow pins select the photos from that location, whereas clicking the arrow on the balloon above the pin creates a filter for photos from that location.
    Koen

  • Chart Multiple Axis

    I have seen the flex's chart documentation about multiple
    axes.
    In this documentation the example speak about single
    horizontal axis and multiple vertical axes.
    The question is: may i have multiple horizontal axis? Has it
    sense?
    Thank you

    Sorry, i give response by my self.. i can use
    labelfunction...

  • Imaq overlay pen size

    I need to add overlays to an imaq image, but when I do, the overlays are often to hard to see.  Is their a way to set a "pen size" similar to the picture control?

    tiemanjw,
       I had a similar concern and after poking around found that you can’t change pen size. So, I made my own VI to accomplish it. Granted, it is a hack and there may be better ways to do it but it works well for me. There are several caveats to my solution because I made it for a specific purpose so it isn’t as generic as maybe it could be. One is that I only did it for a rectangular bounding box. The second is instead of the input being a bounding box from a matches cluster mine accepts an optional rectangle array. But, there is no reason why you couldn't take what I did and extend it to any type of overlay and also change the optional rectangle input type to some other type to fit your needs.
    The basic idea is to just put the IMAQ Overlay Multiple Lines.vi into a for-loop and draw multiple progressively smaller overlays inside one another. The resulting effect is it looks like a thicker overlay. Here are the vis. Let me know if it works for you or if I can give any more info.
    Attachments:
    VariableSizeBoundingBox.vi ‏17 KB
    OptionalRectangleToLineEndPoints.vi ‏14 KB

  • Hide grid secondary axes export image

    Hi there,
    I'm trying to export some simplified images from graphs, with the grid hidden since it tends to make things look messy. The thing is, when there are multiple y-axes this option seems to be ignored on the second axis. Does anyone have any idea how to get around this?
    Thanks!
    Solved!
    Go to Solution.

    Hi Matt,
    Yep, using a property node to select the ActiveYScale, then subsequent properties of that scale should be the way to refer to each of them. The order is easy enough to determine from the order they were added or by name in the graph properties. It's the same method I use to programmatically set scale names, plot names, which Y axis to use for each plot and so-on. Takes a little bit more work (and space) than the standard invoke node though!
    Thanks again,
    Regards
    Attachments:
    export image hide grids.vi ‏67 KB

Maybe you are looking for

  • Even after I did all of the steps listed on various forums, the SSL 3.o or TLS 1.0 erroe will not disappear. Please Help!

    Ever since last sunday, whenever I try to purchase an app from itunes, I always get this error explaining that I cannot establish a secure connection. I made sure TLS 1.0 and SSL 3.0 were enabled in options and I made sure the firewall was notblockin

  • Snapchat wont connect when im connected to wifi.

    The internet connection is working when im using safari etc but not on snapchat, and snapchat is working on my brothers iphone 4s. I have 5s. Anyone else having this issue? Sometimes it won't even work whn im usin 3G

  • Keychain waiting for approval

    So I am currently not signed into keychain on any device and am trying to sign in on Yosemite. Because I can not verify keychain with another device I have to enter my code. I enter my code and it has a little setting up circle loading icon, before s

  • New 40G300U HDMI, xbox, netflix issue

    I've got a weird issue.  Just got this TV and everything is working great except this one issue.  I have my xbox connected to the HDMI port on the TV.  Every feature of the Xbox works except netflix.  When I start a netflix movie either SD or HD the

  • User conversion tag

    Hi people, I have following mapping rule in mappings file: in-chan=*;out-chan=tcp_intranet;convert $C$:T$EYes,Channel=tcp_keeper The $T is used to find user conversion tag, but it seem that it not working, at the same time it does work with mailDomai