Autoscale Y axis

Hello,
I would like to autoscale the y-axis in a X-Y plot with the minimum set always to 0 and while the maximum autoscales. I tried to set y-scale start and minimum (using the XY plot properties) but still the y range minimum is set to the minimum value of the data. I would like the y-axis scale to be set at 0 for the minimum and the max. of the data for the maximum. Can anyone help with this. Thanks.

Don't mess with "scale start", etc. just write the following three properties:
YScale.ScaleFit (0=don't autoscale)
YScale.Minimum (0)
YScale.Maximum (Y(max))
As shown in the attached image.
(Since you mentioned that there are other property nodes on your diagram, make sure they don't fight with these new settings.)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
NoAutoscale.gif ‏3 KB

Similar Messages

  • Real time labels on x-axis

    Hi all
    I thought I had cracked the business of putting realtime labels on the
    x-axis of Labview charts but today I found that the way I had done it
    was failing at any times between midnight and 01:00.
    In the past I have used a property node for my chart or graph (not sure
    which) and initialised it with the current PC time. I'd set the x-axis
    format to be time & date. This seemed to work but I had noticed that,
    when daylight saving was active, that Labview would try to correct for
    this. (I'm GMT, London so occasionally go GMT +1). So I'd added a
    correction to subtract the "error". This works fine apart from between
    midnight and 01:00. At these times my correction results in a negative
    number which Labview cannot interpret as a time (not surprised by this)
    and so it plots Neg on the x-axis until the time changes to past
    00:59:59. The PC time zone setting also causes a problem that I hadn't
    appreciated until I started looking at this.
    In the Labview examples for real time graph axis, NI have used an x-axis
    formatted decimal and then selected realtime from the radio boxes below.
    This works OK, and is immune to DST and time zone offsets but doesn't
    look like a proper time at times between midnight and 01:00.
    So the only way I can get a nice looking display and for it not to
    misbehave at times between midnight and 01:00 is to set the PC system
    clock for GMT:Casablanca,Monrovia. This time zone has no offset or
    daylight saving activity.
    Have I missed something or is this way harder than it should be?
    Many thanks in advance for any help or advice.
    Regards
    Bill
    mailto:[email protected]

    Hi
    Sorry, was posting from a newsgroup didn't realise this was web based too.
    In my example
    timeongrapghs+dst correction.vi
    where the chart x-axis is formatted to be date and time, for some reason Labview adds an offset according to the time zone and/or
    whether or not daylight saving is active. I had corrected this offset by using a simple subtraction but at midnight the hour value is zero so, as I said in my initial post, Labview does not recognise -1 as a time and so causes the x-axis labels to be in error (they actually say Neg). My example shows this. If you set your PC clock time to e.g. 00:12 and your PC's time zone to GMT, London. If you change the PC date to be in or out of daylight saving (Apr-Oct daylight saving is active) you will see the problem come and go.
    So I looked at the Labview example and they use the decimal formatted x-axis with realtime selected from the radio buttons
    underneath. I tried this approach on my example (timeongrapghs decimal x axis correction.vi) and this does not seem to suffer from an offset introduced from the time zone and/or whether daylight saving is active but at midnight the time displayed on the x-axis reads without zeros, so 00:14:45 reads 14:45 - misleading.
    I found that setting your PC clock to GMT:Casablanca,Monrovia results in my example behaving perfectly around the midnight time. This time zone has no offset or daylight saving activity.
    timeongrapghs NEEDS GMT CASA.vi
    Finally I looked at the example you linked too and although that works (but I don't understand it ), I want my display to fill from the far left to the far right, and once the x-axis is full, for the display to scroll across from right to left. If you look at my examples, they do this, although I noticed that using them in LV 7 (they were written in 6i) automatically seems to switch the autoscale x-axis on for the chart - you need to switch autoscaled x-axis off to see how I want my charts to appear. The example you linked doesn't do this, and turning off the autoscaling seems to stop the data from being displayed. Can you change the example you linked so that the chart behaves like my examples but without the time zone/DST problem - if so can you make it so I can plot more than one data set on the y-axis (same time resolution of data)?
    Thanks for helping
    Bill
    Attachments:
    timeongrapghs NEEDS GMT CASA.vi ‏45 KB
    timeongrapghs+dst correction.vi ‏42 KB
    timeongrapghs decimal x axis correction.vi ‏41 KB

  • Still can't get realtime temp logging

    I have been trying to get a chart showing temperature vs real time of the measurment, for example temperature vs the time (hh:mm:ss) of the measurement
    All my graphs start at 7 am 1903. I have seeded the XScale.minimum and XScal.increment properties in the properties node for the chart with the start time of the measurment run. when I do that the x axis initially has the correct real time scaling, but my data does not appear. Only when I check autoscale x axis does my data appear, and then with the y axis at 1903 again.
    How do I tell the chart to use the real time of the measurement on the y axis? Using fp2010 with temperature modules and fpread.vi
    thanks again

    Hi Ben, thanks for the response, and this is directed not just to you, although I certainly appreciate your time.
    I'm REAL new to LAbview programming so keep that in mind.
    I have several problems to deal with, but one thing at time.
    I've included a VI which constantly reads temperature from my FP hardware, only a single channel at a time(one of the problems) and will set the x axis to the current time date at the start of the run, but the data being recorded doesn't appear on the chart unless I "autoscale" the x axis on the graph, and then the data displays with the x axis at 1903. Thats the problem that prompted me to find you guys and seek out tech support.
    However, I have other issues with the FP stuff that I'm hoping I can get support for here
    Here is a biggy:
    When you look at the vi I posted you will see that unlike the Example FP Temp.vi, I found I had to put the Open, Create, Read and Close all inside the loop because if I didn't then the temperature reading I got from Read never changed after the first reading. I realise this is likely adding overhead, however I found I had to Close the FP stuff and redo the Open/Create sequence in order to ensure I got a "fresh" reading from the Read command. If I didn't the reading I got from the Read.vi never changed after the first reading. I didn't get any errors, I just didn't get any new info from the Read.vi
    What I'm saying is I never could get the FP Temp Example to work with my hardware., but this vi does work in so much as it reads a new temperature everytime through the loop. Any comments on that would be appreciated.
    I'm using FP 2010 with two FP-TC-120s, an FP-RLY-420 and an FP-0A0-210. However at the moment I'm only using (or trying to communicate with) one of the FP-TC-120s, but all of the modules are connected togethor and are showing me POWER/READY indicators. Power up self test appears normal as per the manuals and I beleive the hardware is working nominally.
    PC is a windows 2000 pro 866 mhz connected to our 100 Mbps intranet through a hub to which the FP-2010 is also connected.
    I have lots of other questions. One I will ask now is where do I find documentation on all the Property node properties for all the controls and indicators. When I go to select properties for a property node on something like a waveform chart there are hundreds of properties listed in the menus. Are these documented somewhere and if so where?
    sorry for the length and I appreciate any and all responses.
    thanks again.
    Attachments:
    sample_FieldPoint_Temperature_Example_5.vi ‏74 KB

  • Binary data modulation suggest

    i am having 32 bit binary data(111101010101....), modulate and demodulate the data by using simple ask transreceiver.vi
    after demodulation i got only 26 bit binary data
    first bit and last 5 bit in the 32 bit data are gone
    only 26 bit is available
    pls help suggest whether the problem in the simple ask transreceiver or something else
    Attachments:
    simple_ask_transceiver.vi ‏172 KB

    Have you checked the x-scales of your graphs?  There seems to be a lot of waveform data that appears at x-values to the right of what is shown in the graph that I found when I picked autoscale X axis.

  • BubbleChart autoscale is not working right on the Y axis

    Hi everyone,
    When I'm trying to display some information on a Flex BubbleChart the bubbles are always displayed very low on the Y axis for some reason.
    The auto scale on the Y axis doesn't seem to work properly. It is providing extreamly high values on the Y axis. Do any of you encountered this problem before?
    How do you fix this Y axis autoscale problem without hardcoding the maximum value in the mx:verticalAxis?
    Thank you in advance,
    David

    Just make sure the data in the data provider is correct.

  • LabVIEW 2009 3D Plot has no Loose Fit property and Axis AutoScale does not function at run time ?

    I cannot find a Loose Fit property for the new 3D plots (waterfall, ribbon) in LV 2009.  As a result, my data range of 1402 to 1407 ends up on a Z axis range of 1400 to 1500 and looks like a flat line.
    The Z Active Axis properties Range Maximum and Range Minimum can be used to set the range but the Z Axis Autoscale property had to be changed to False using either the front panel Plot Properties at edit time or using the Range Auto Scale property at run time on the block diagram.  It could not be changed at run time by popping up on either the plot border or on the Color Palette.
    In edit mode, R-clicking on the Color Palette's AutoScale Z did not make that property toggle or stick and did not change its function.
    At run time, there are two AutoScale Z selections shown.  One along with the X and Y scales and another by itselfat the bottom.  Again, clicking the one that is part of the X and Y axis did not make its setting stick and did not have an effect.  What does happen though is that the other AutoScale Z shown at the bottom of the Color Pallete popup does toggle its state.  But clicking on the AutoScale Z shown at the bottom does not toggle its state.
    The grey border region of the plot area contains at run time, popup setting for X,Y and Z AutoScale that likewise have no effect.
    Or am I missingsomething ?
    Message Edited by SteveP on 08-15-2009 07:55 PM
    Attachments:
    LV 2009 3D Plot Axis Autoscale.vi ‏18 KB

    Steve,
    you should be able to successfully change the scales based on the min and max values as long as you explicitly turn off autoscale. In your program, I just right-clicked the  Range Auto Scale property selected "change to write", then made a control so that I could set the value myself. Clean up the broken wires, and the program runs like it's supposed to - resetting it's scale range: 
    is this the result you wanted? 
    Misha

  • XY Graph Axis's autoscale but no plot shows?

    I just don't undestand XY Graphs.
    I have folowed the examples, tried the xy graph express vi,  even gone as far as copying and pasting the example vi right into my own program.
    The axis's autoscale but the plot never shows on the graph?

    You only generate one point for each iteration of the large FOR loop and, unlike charts, XY graphs don't keep a history. You might get what you want by double-clicking the "Built xy graph" express VI and unselect "clear data on each call". I don't really use that feature.
    How fast does the loop run? Maybe it's OK to build the x and y array at the loop boundary and only plot at the end of the loop (green insert of image)? FOr continuous update while the loop is running, you could also build the x and y arrays in a shift register (upper part of image).
    Notice that you don't need to do the complicated detour via a 2D array. Simply keep it as 1D array and insert an "array to cluster" for the chart (see image). Don't forget to set the cluster size to 3 by right-clicking on "array to cluster".
    Message Edited by altenbach on 02-12-2007 03:56 PM
    Message Edited by altenbach on 02-12-2007 03:59 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    XYUpdate.png ‏33 KB

  • Autoscale Y only over displayed range when zoom X axis

    When a graph is zoomed over only its X axis, the Y range retains its values for the entire data range.  I'd like the Y range to be adjusted and scaled for only those Y values now plotted on the zoomed graph.  Is it possible to have this happen automatically without resorting to code to accomplish it ?

    I asked NI about this then I had some problem and was using 7.0. The message was that this was not a bug. So then you use autoscale Y on a XY graph it uses the full range to calculate the scale settings. I some sort of fixed this way. This is perhaps fixed in later versions
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    Ysacle_fit.llb ‏78 KB

  • How do you define a range for an axis in autoscale?

    Hello All,
    I found that the autoscaling is  too "tight" with my data and i'd like to define a range on the autoscaling so that I constantly have the same space between the data and the top and bottom of my y-axis. i've looked but couldnt find a way to do it. Can anyone help please?
    Thank you in advance,
    Frederic

    If that's not loose enough, you have to do it yourself.  Turn off auto scale, and set Y min and Y max to the min(data)-cushion and max(data)+cushion, respectively.  This is possible using property nodes for the graph.
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect

  • Chart Data Axis (Y) Scale - keep constant over groups, dynamic for report

    Crystal XI
    I want to chart how many transactions there are at a teller, showing number of transactions per hour, with a separate chart for each day in a range that the user specifies at run time through paramaters.
    So I group on date at report level, and make my chart on change of hour show count of transactions, and that works.
    But using autoscale, EACH CHART is scaled on the Y axis, so for a day that has a peak of 5 tx per hour, that hour reaches top of chart, where next day, there is an hour with 100 tx.  So you can't tell at a glance that day 2 was busier than day 1.
    I like the auto scale, but I'd like it to consider the report for the scaling.  Is there a way to do that?  Or do some chart types let me do it and others don't?  (I've looked at Bar and Area charts)
    I can't use a fixed scale, because different customers have wildly different typical numbers.  (I could use a dynamically calculated fixed scale, but I don't see that that's an option)  If there's a way to use a formula for the data scale, I'm missing it, and that would probably solve my problem.
    Assuming I'm out of luck there - I can change the query as necessary, and I suspect I'm giong to have to use some gimmick like chart my maximum value in invisible ink, if someone's been down the road and knows a solution, if you can give me a quick hint on that, I'd appreciate it.

    If all else fails, you can do this easily with our CRChart add-in using the @SC family of macros which allow you to set the Y-Axis scale min/max dynamically (i.e. map them to a field or formula at runtime).
    -Dan
    disclaimer: I work for the company, threedgraphics.com, that makes this product. This product costs money.

  • Print panel: wrong axis scale

    I am using Print Panel to automatically get a copy of the graph produced on the front panel at the end of a run. The printed graph sometimes has an axis whose scale is wrong by a factor of 10 (in either direction). This happens to both the x- and y- axes but never both axes at the same time. The problem is sporadic.
    The incorrect axes never appear on-screen. If the front panel is printed using File>Print after running, the axes are correct. Axis options AutoScale and Loose Fit are selected for both axes. The graph is an XY Graph with multiple plots.
    Any insight?

    I have noticed that the print front panel has a timing issue. The time I
    noticed it I had made a subvi just for the purpose of formatting some data
    and printing it. The graph would sometimes come out blank if I did not put
    in a delay.
    "Sy" wrote in message
    news:[email protected]..
    > I am using Print Panel to automatically get a copy of the graph
    > produced on the front panel at the end of a run. The printed graph
    > sometimes has an axis whose scale is wrong by a factor of 10 (in
    > either direction). This happens to both the x- and y- axes but never
    > both axes at the same time. The problem is sporadic.
    >
    > The incorrect axes never appear on-screen. If the front panel is
    > printed using File>Print after
    running, the axes are correct. Axis
    > options AutoScale and Loose Fit are selected for both axes. The graph
    > is an XY Graph with multiple plots.
    > Any insight?

  • Xy Graph Auto Scale Bug - Need AutoScale VI

    I have another bug to report, I have come across more bugs in the past year than before.
    This bug is present in all versions since 7.1 to the latest 8.5.
    Here is the bug.
    Create and Graph.
    Make sure the X-Scale is set to Auto Scale.
    Go to Properties and Choose "Formatting and Representation" and Choose Relative Time for X-Axis . Select HH:MM. 
    Click OK
    Now Set the scale to say 20 Hours. You Should see 10 Divisions of X-Axis
    Right Click on the Graph and Select "Scale Object with Pane"
    Maximize the VI now.
    The Graph will scale nicely!!
    Look at the X- Axis Scale. It is 20 Hours.
    What happened to the 10 Divisions? It is one big Division of 20 Hours.!! Why?
    Set the Scale to 10 Hours and all the divisions reappear!!
    Restore the VI window to Previous and Now All divisions of the scale are gone.
    This Behavior is random based on the size of the graph and Screen resolution.
    Can someone suggest a VI that does Auto Scaling elegantly
    Attached find Pictures of the Phenomenon and VI which exhibits this behavior. Any one to help...
    Mache
    Good Luck!
    Mache
    Attachments:
    XY Graph 2.jpg ‏370 KB
    XY Graph Autoscale bug.vi ‏9 KB
    XY Graph 1.jpg ‏116 KB

    Here are the additional attachments
    Good Luck!
    Mache
    Attachments:
    XY Graph 3.jpg ‏124 KB
    XY Graph 4.jpg ‏350 KB

  • Limit on how fine graph with autoscale

    Hello all,
    I am working
    on a temperature controller, and I currently have a graph set up to show the
    temperature over time. The autoscale feature works great, however, if I let the
    temperature sit for too long, the y-axis autoscale becomes so fine that it
    appears that the temperature is fluctuating massively and looks pretty ugly. It gets
    in a range of +/- 0.2°C.
    Is
    there some way that I can limit how fine the autoscale can go? For example, create
    the following restriction on the y-axis scale:
    Ymax –
    Ymin >= 2°C
    Thanks
    for any help!
    -Clint
    LV version 6.1

    Just turn off autoscaling and set the scale min and max using property nodes at appropriate times.
    Now you have full programmatic control of the scaling.
    LabVIEW Champion . Do more with less code and in less time .

  • X-Axis Scales and Dates Issue

    Hello, really hoping that someone can help me.
    I have a crystal reports report with a chart. The chart uses dates as the x-axis and numeric values on the y-axis.
    All I want to do is change the x-axis sacle to be 14 day intervals.
    Seems simple enough. I go into group(x) axis options, click the scales tab and try to chage the values (after unticking auto scale). Crystal will not let me change it to be 14 days, and it ignores the remove autoscale. It just constantly sets it back to autoscale everytime.
    I tried the exact same thing but with numbers on the x-axis, and it worked fine, no problem at all with setting the scale to whatever I wanted. But when the x-axis is dates, it doesn't work.
    I have been on for 3 whole weeks trying to find a solution to this.
    If anybody can help me I would be very grateful
    Thank you

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with your directly

  • Log axis

    Hello,
    I am a bit puzzled by the scaling of my log scale...
    Say the range is -.2 (or zero) to 17788.
    1) Changing the map mode to log I would have expected an error, according to the documentation:
    Use a logarithmic scale for the graph axis. The minimum axis value must be greater than zero.
    Obviously, it must not.
    2) Having the axis autoscaled, the smallest label is 18, with intermediate labels of 100, 1000, 10000, and the largest label is 17788.
    Why is the smallest label 18 and not 10, or 1, or 0.1??
    I have Auto Divisions but no Loose Fit.
    Thanks, Wolfgang
    Solved!
    Go to Solution.

    Hi Wolfgang,
    The reason it is being coerced to such a high value is because you have Loose Fit (ATTR_XLOOSE_FIT_AUTOSCALING) enabled for autoscaling and too high of a Loose Fit AutoScale Unit (ATTR_XLOOSE_FIT_AUTOSCALING_UNIT). The autoscaling unit is the log factor that the autoscaling will use for rounding. You probably have the autoscaling unit set to 2 which is the default. This means that it will round to the next higher for max and next lower for min value that is a factor of 100. This works great for a linear scale, but you can see an obvious problem with this design for log scales. By the very nature of the log scale, it does not make sense to round based on the same factor.
    The reason you are getting a min value of 18 is because the true min of the data is smaller than the autoscaling loose fit factor. And since it cannot use 0 as the min since it is an invalid value for log, it instead defaults to 1/1000 of the max.
    There are a few issues here with loose fit on a log scale, so I have filed a bug report that you can track with ID: 352509.
    In the meantime, I found that disabling loose fit allows the autoscale to work correctly even with negative data values. However, if you want to have a loose fit (i.e. you min and max on the scale have a buffer around the min and max of the data), then you will have to implement this yourself. You can use autoscaling when plotting data to automatically detect the max and min of the data, then switch to a fixed scale so that you can then add the buffer region to create a loose fit. Or you can leave autoscaling off and calculate the min and max values yourself.
    National Instruments
    Product Support Engineer

Maybe you are looking for

  • Unknown column name: annee

    Hi, I have a error message. My request is good but in my program java, annee is a unknown column name. SELECT DISTINCT round(wbdate/10000,0) AS annee FROM EUROF400.FICLIB.IE02 WHERE WBETAT=:etat ORDER BY annee DESC String l_annee=mod.getIe0211().getB

  • BPC 10.0 NW - Matrix structured security

    Hej Gurus, I have been searching the internet for information about the possibility of doing matrix structured security in BPC 10.0 NW. I have found that it is possible to do in 7.5 using a BADI, and I know that it is standard in BPC 10.1. However, I

  • OWB Process flow, how to change created by in process properties?

    Hy. How can I change created by, and last updated by data in process properties (general tab)? Where is the table with metadata in database? How can I manually change created by data for process? I have found WB_RT_WAREHOUSE_OBJECTS table in REP_OWNE

  • File Complexity/Size Maintenance; Paths vs Compund Objects

    I have found myself using different methods to make designs, but I was wondering what was the best practice for archiving FINISHED products. In terms of anchor and path complexity: would it be best to save files as paths with width controls, or shoul

  • Can I run 2 separate versions of Firefox on my Mac with OS 10.6.8?

    For example, I'd like to run my current Firefox version 5.0.1 with the new version 6.0 so that I can easily switch to the older version if something doesn't work with the new version. I run the 1Password extension with Firefox and I got a message the