Graph Scale Range

Hello Everyone,
I have a problem in the Waveform Graph.
Basically I have a Waveform Graph and on the graph I have a cursor.
Now I should be able to move the cursor on the Plot , but the condition is that it should not go beyond the X Sacle range.
For e.g. If my X Scale range is 0 to 400, the even if i move my cursor beyond 0 or above 400 the cursor should not scroll or should stop scrolling.
One way of doing is that you keep on checking the X Scale Max and Min Values and as soon as it crosses any one of it, Make the cursor value to 0 or 400.
Is there any other way of doing it?
Please let me know.
Thanks in advance.
Avni

Hi Dennis
Thanks a lot for your reply.
But doing that will not solve my problem.
One e.g. to tell is that If I have a data of 400 points and my scale range is 0 to 100 then if I follow the instructions that you have given, then I will not be able to scroll and see the data beyond 100.
I acquire a data of 400 points. and depending of the Sweep speed, I dispaly the points and scale of the X axis changes .
Meaning If my Sweep speed is 1ms/d then I plot all four hundred points and the scale is 0 to 400
and if my sweep speed is chenged after acquiring the data then my scale changes to 0 to 200 .
I hope that you understand my problem.
Hoping that you will solve my query.
Avni

Similar Messages

  • Programmatically changing the x scale range of xy graph

    Hi,
    from a subvi I need to access the x scale range of an xy-graph on the panel of the main vi. I tried the code shown in the pdf attached to my posting. How can I restrict the general property node for an unspecified control to a more specific property node that offers the property "x scale range"?
    Thanks,
    Peter
    Attachments:
    access_property_node.pdf ‏34 KB

    You can use "To More specific Class" from the application control palette.
    Of course make sure to handle errors gracefully. This is just a draft 
    Message Edited by altenbach on 09-18-2007 09:31 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ToMoreSpecific.png ‏5 KB

  • How can I add custom captions to a waveform graph scale?

    I have an application that displays one or more signals in a WvfmGraph.  The X Axis is set by a hardware encoder giving signals vs. distance (measured length).  I would like to change the caption of the XScale according to the values of one of the signals.  Its similar to an XY graph, but differs in that I want to see the data unrolled.
    The problem is that the X Axis scale markers are fixed.  I would like to ask the graph what is range property of the X Axis scale.  Then use that information and a derived position signal to replace the marker values with values from a derived signal that includes relative motion. 
    For example, measuring a unit 100 feet long results in measurements of 200 feet worth of data (out and back).  The customer would like to see this data unwrapped 0, 50, 100, 50, 0. 
    One alternative is to use an XY Graph, but the data on top of itself.  Not necessarily a bad thing, but not the same as what they have always had.
    I found a similar post to display the scale at a rotation (CW or CCW) and was able to get it to work for my specific case.  The problem is that my picture marker values are not aligning nicely with the corresponding gridlines. 
    Attachments:
    Position vs MeasuredDistance.PNG ‏43 KB
    Position vs. PseudoPosition.PNG ‏37 KB

    Stephen,
    Thanks for replying to my post.  XScale.Range does not handle this situation.  In "rigorous" terms, LV does the right thing with X axis scale markers and put them where you want.  I tried to set custom Marker values as: {0, 50, 100, 50, 0} and only saw the first three values.  My guess is that under the hood, the spacing is set to 'Arbitrary' and my custom values are overwritten.  Not what I intended, but I admit my task is not the normal use case.
    Today I am prototyping the entire application with each WvfmGraph replaced with XYGraph's.  Good thing I used a modular design and passed Refnums around to all my subVI's.  Depending on a review of this prototype, I might skip this graph scale formatting.
    FYI, the original graph issue wanted to rotate the marker labels CCW.  They hid the graphs XScale and used a custom picture to display the new scale.  There is a VI that formats an axis with custom labels, where the font, text, etc. can be customized.  I have a working example of that custom scale on a Wvfm graph.  I stopped refinement when I tried to consider use cases for how the user would zoom on the data, how the graph's label's would appear if the DAQ signal indicated that the part reversed on itself.  All the data is better visualized on an XY Graph.
    p.s. are you one of the Waterloo Labs engineers?  Great stuff!

  • How do I programmatically set the scale range for the two y-scales of the two plots

    hi,
    I am using labview 8.2
    To programmatically assign a range to the y-scale of a plot I use a Property Node for the plot display and adjust Y.Scale.Range.Minimum.
    How can I assign the ranges of a plot with multiple y-scales?
    miethe

    One of the problems with using two Y scales is that the display can get very messy is you also want grids on the plot. To address this, I created the attached VI. After allowing the right axis to autoscale, it fine tunes the marker locations so the grid lines for the left and right side overlay each other.
    To use it all you have to do is write your data to the graph and then call this VI with a reference to the graph.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    Match Dual Y-Axis.vi ‏25 KB

  • Getting graph scales and grids to only show integers

    How do I get a mixed signal graph as shown in the attachment to only show the whole integers on the y axis and reduce the grid to doing the same?
    Solved!
    Go to Solution.
    Attachments:
    Graph Scale Issue.JPG ‏38 KB

    Hello,
    programatically, you have a property node for the graph scale that should do the job :"increment"
    => property node, Y scale, range, increment.
    The grid will follow.
    The minimum increment depend on the graph vertical size (and marker font size I guess, wich also has its property node)
    example attached, hope it helps.
    antoine
    Attachments:
    increment sample.vi ‏11 KB

  • Programatically edit graph scale

    Hi,
    I kow that I can edit graph scale values simply mouse clicking on them, and typing new values.
    Now I want to reproduce this behaviour programatically, but the problem is that I can't use the mouse in my application (only keyboard is available  )
    So, is there a way to programatically get focus to scale boundaries (x_min, x_max, y_min, y_max)?
    I hope so...
     I need to programatically setting them.
    Using LV 6.1 on Linux Fedora Core 3
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

    I'd have suggested this too - but you may be limited. Imagine you have set your control to increment by 0.01 (for precision reasons) - how long may it take if you want to set a value of 50?
    By the way - building a num pad is not that complicated. Of course it takes time to accomplish, but I think you are most flexible.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Reciprocal Graph Scales

    I'm trying to plot an XY Graph with one of the scales (x-axis) set to the reciprocal of a variable.  I can plot this by calculating the values within an array, however the scales (as would be expected) now show the reciprocated value (ie. 1/value).  I would like to plot the reciprocal values whilst still displaying the actual values, similarly to how mapping in log mode would show the value before taking it's logarithm.  Essentially I'm wondering if a reciprocal mapping mode can be generated, since the scale varies non-linearly.  I'm using LAbview V8.0.  Thanks.

    Wiebe@CARYA wrote:
    Create a property node of the graph, select the Y Scale, and select the property Marker Values[]. With this property, you can set the markers any way you like it (the values are sorted automatically). Use the Flipped property to reverse the scale.
    I am pretty sure if this will not work because "stel" wants labels that don't correspond to the underlying plotted data. For example, he wants to show a 10 where the value is actually 0.1, etc.
    The proper solution would be to make your own graph in a picture indicator. Have a look at the example "XY Multi Plot.vi" as a starting point.
    Unlike the scales of sliders, graph scales unfortunately don't support text labels (Now here's something that could be useful! ). Of course you could cheat, hide the graph axis and substitute a slider with only the axis shown. Now assign label/value pairs of e.g. "10"/0.1, "2"/0.5, etc.. as desired.
    Align everything perfectly and make sure to disable "autoadjust scales" on the graph so things don't move around. See how far you get.
    LabVIEW Champion . Do more with less code and in less time .

  • Two progress bar joined or two diferent scale range in one progess bar!

    Hello guys,
    I try to get 2 diferent scales range in one progess bar. But I cant get it.
    So, I tried to join 2 progess bar putting the fit scales to look similar like I want to. One from 0 to 100 and the second from 100 to 300.
    In case I need to use 2 progress bar, the problem is the second start with mark in the start, I would like the second to be totally clear from 0.
    Is it possible?.
    Regards.
    Solved!
    Go to Solution.
    Attachments:
    progress_bar_joined.vi ‏10 KB

    Alternatively, you could set the Fill Style.  0 is no fill while 1 is Fill To Min.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    progress_bar_joined(1).zip ‏8 KB

  • Is it best to set waveform graph scale properties before or after sending new data to the graph?

    Hi I'm wondering when is the best time to update waveform graph scale properties.
    I am sampling data every 15 minutes for 192 samples, i.e. 48 hours.  I want to plot these samples with the x scale in absolute time mode so that x scale maximum is the current time and x scale minimum is x max minus 48 hours (172800 seconds).  I also want the intermediate scale markers to be 6 hours apart and to be multiples of whole 6 hours.  e.g. at 06:00, 12:00, 18:00.  This works OK using property nodes but sometimes the intermediate markers are on the 6 hour multiples and sometimes they are at 6 hours after the min scale marker.  e.g. 09:15, 15:15, 21:15.  Is there a way of guaranteeing that the intermediate markers will be on the 6 hour multiples?
    Thanks,
    Neville
    Solved!
    Go to Solution.

    Hi Bryan,
    Thanks for your reply.  I have discovered that I can achieve what I want by using an XY graph instead of a waveform graph.  I want X max to be the current time and X min the be 48 hours earlier with intermediate scale markers on multiple of 6 hours.  The XY graph in the attached VI does exactly that but I can't get the waveform graph to behave as I would like.  Is there a way of getting the waveform graph to behave as I would like?
    Thanks,
    Neville
    Attachments:
    waveform graph x axis scale.vi ‏16 KB

  • Change tank scale range

    Hi everyone, I have the following question:
    1. Some one konw how change de scale range, for a tank, in run time, ? I think I shold
     create aproperity node but I couldnt found it.

    Hi gamarra,
    right-click the control or it's terminal and select create->property node->Scale->Range->All Elements...
    Message Edited by GerdW on 08-06-2009 11:00 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Change scale range with property

    hello,
    is it possible to change the scale range of aslider with a properties?
    markus

    Have a look at the attached vi. Is this what you are looking for?
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    range.vi ‏41 KB

  • Critical graph scale bug in LV2009?

    Put a graph or XY plot in LV2009 on Vista - and set the X scale to be in absolute time. If you do this in LV 8.6 you will now see multiple time stamps along the X axis. In LV2009 you will only get the two at each end.
    Fill the graph with data...now you may get 1 extra axis point along the X axis...but never more, regardsless of the axis style, - and its position will either be in the middle or at either 25% or 75% of the full time range. (See attached picture of chart and graph).
    I know this is not how things behaved before,  but is it a bug? Unless I'm overlooking something it is, and it is a show stopper....I hope it's me.
    If not, a fix should be sent out immediately.
    MTO

    In a project as big as LabVIEW bug fixes that involve changing the actual executable as opposed to changing some VI components, either in vi.lib or in one of the frameworks, is not a matter of days but more like several weeks, especially if it is something like this most likely going very deep into the operational handling of LabVIEW. This bug isn't there because of a typo but most likely because of an addition of some other code that now causes this behaviour. And simply changing it to behave as before might turn other features, specific to 2009 but also earlier ones suddenly into running havoc, so it is definitely not like changing some lines of code and then recompiling the entire thing and voila. It basically has to go through the entire regression test suit on all platforms as well as going through some serious interactive tests of many UI aspects by several guys/gals, before they can even consider wrapping everything up into  a patch distribution. By that time this is done, the impationetly awaited Service pack fix for 2009 most probably is around the corner anyhow, so it will likely get wrapped into that release.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • OBIEE 11g: Hierarchy Drills & Graph Scales

    Hi eveyrone,
    I have a time-series graph with dates along the x-axis and my measure value along the y-axis.
    In the "Sections" portion of the graph I have a node based hierarchy.
    I have 4 columns in the report.
    Presentation hierarchy (node based hierarchy), Hierarchy Dimension column (regular FK link to the hierarchy dimension but not a presentation hierarchy), Date, SUM( Metric by hierarchy dimension column)
    In the graph, I create a line scale marker and set it to be based on my one measure column. I also graph my one measure column.
    In therory, since I'm graphing the EXACT same column that the scale marker is tied to, they should ALWAYS appear to overlay. And in fact they do at the first level of the hierarchy.
    But when I drill into the hierarchy, the measure column changes, but the scale marker does not.
    Why does this happen?
    It is the exact same column so they should always be the same value. It's a pretty frustrating bug because as you drill, the scale of the measure changes but the scale of marker does not, so it's basically like you're viewing a flat line because the y-axis is too far off from the actual column measure to see any trend.
    Has anyone seen this?

    Thanks for the response, in regards to whether it is 1 or 2 Logical Facts, it is still the same behaviour. IN regards to the Logical Dimension, yes it is set with two LTS with the applicable content levels set. I even tried that as just 1 LTS doing the join through the General tab. Still the same behaviour with the drill-down. I am assuming it will always go through the full drill path regardless of what level the Fact you are hitting is at.

  • Create graph scale programatically

    Another day, another problem.
    I'm currently writing a holy grail tool for our UI development and have run into a problem.  How do I add an X-Scale or an Y-Scale to an existing graph programatically?
    I can iterate through the existing scales and store all relevant information from them but when I want to apply these infos to a target graph (regardless of type) I have hit a brick wall with regard to adding scales.
    With sliders this was mush easier because we have the "Add slider" and "delete slider" methods.
    Anyone have any ideas?
    Scripting allowed.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

    Seems like the only way.  It's a bit of an ugly workaround, but whatever.  Even if I was able to delete the scales I could start with a silly number (16 or so) and delete the ones not needed.  I must try actually deleting scales to see if that works.  I don't like the idea of graphs in production code (sold software) with zillions of scales when it only needs a few.......
    Shane
    Ps Nope, deleting doesn't seem to work.... Bugger.
    This is a big hole in my design.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • Changing xy graph scale using combo box selection

    Hello,
    I have a xy graph with x scale set to 10k and y scale set to 6 by default.
    I have a combo box which i use to select what the graph will display. For example in combo box i have 3 choices, A, B, C.
    If i select A, xy scale is set to 10k and 6. If i select B, xy scale is set to 2.5k and 8, if i select C, xy scale is set to 4k and 10 respectively. Is there some functions that i can use to do this?
    Thanks.
    Solved!
    Go to Solution.

    Like this (attached)?
    Of course, if the data actually follows these mins and maxes, you could just turn on auto scaling and it would do it automatically
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect
    Attachments:
    Untitled 1.vi ‏14 KB

Maybe you are looking for