Changing Graph Scale

Hello,
One of my programs (LV7.1) will not the operator right-click and change items on a couple of graphs. I have tried deleting and replacing the graphs but it didn't help. One is a waveform chart and the other is an XY graph that displays data at the end of a test. Am I missing a setting somewhere? I have never encountered this before and use graphs all the time. Thanks in advance.

Your post title talks about changing scales, but the post talks about changing "items".
Could you post in more detail exactly what you want to change and how you are trying to do it. A small example would also help.
What kind of data is fed to the graph?
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Change graph scale to logarithmic

    Hi all,
    I have the following script that takes a number and visualizes it on a  circular shape much like an odometer/speed meter that a car dashboard  has.
    Code:
    var inputVal = 6.70;
    var contentMC = _root.createEmptyMovieClip("contentMC", _root.getNextHighestDepth());
    var baseMC = contentMC.createEmptyMovieClip("baseMC", contentMC.getNextHighestDepth());
    baseMC._x = 150;
    baseMC._y = 150;
    var dynamicMC = baseMC.duplicateMovieClip("dynamicMC", contentMC.getNextHighestDepth());
    var maskMC = baseMC.duplicateMovieClip("maskMC", contentMC.getNextHighestDepth());
    var markMC = _root.createEmptyMovieClip("baseMC", _root.getNextHighestDepth());
    markMC.lineStyle(0,0xFF0000);
    markMC.beginFill(0xFF0000,100);
    markMC.moveTo(0,0);
    markMC.lineTo(0,12);
    markMC.lineTo(-12,0);
    markMC.lineTo(0,0);
    markMC.endFill();
    var startSize = 320*-1;
    var startPos = -110;
    drawWedge(baseMC,100,startSize,startPos,[0, 0x000000],[0x0033CC, 100]);
    drawDoughnut(maskMC,50,100,startSize,startPos,[5, 0xFF0000],[0xFF00FF, 100]);
    processsInput(inputVal);
    contentMC.setMask(maskMC);
    onMouseDown = function () {
        processsInput((1200/Stage.height)*_ymouse);
    function processsInput(inVal) {
        var wedgeSize = (startSize/1200)*inVal;
        var wedgeStart = startPos;
        drawWedge(dynamicMC,100,wedgeSize,wedgeStart,[0, 0x000000],[0xFF6600, 100]);
        contentMC.setMask(maskMC);
    function drawDoughnut(mc, radius, radius2, arc, startAngle, lstyle, fstyle) {
        mc.clear();
        var segAngle, theta, angle, angleMid, segs, ax, ay, bx, by, cx, cy;
        arc = (Math.abs(arc)>360) ? 360 : arc;
        segs = Math.ceil(Math.abs(arc)/45);
        segAngle = arc/segs;
        theta = -(segAngle/180)*Math.PI;
        angle = -(startAngle/180)*Math.PI;
        ax = Math.cos(angle)*radius;
        ay = Math.sin(angle)*radius;
        mc.lineStyle.apply(mc,lstyle);
        mc.beginFill.apply(mc,fstyle);
        rx = ax;
        ry = ay;
        mc.moveTo(ax,ay);
        if (segs>0) {
            for (var i = 0; i<segs; i++) {
                angle += theta;
                angleMid = angle-(theta/2);
                bx = Math.cos(angle)*radius;
                by = Math.sin(angle)*radius;
                cx = Math.cos(angleMid)*(radius/Math.cos(theta/2));
                cy = Math.sin(angleMid)*(radius/Math.cos(theta/2));
                mc.curveTo(cx,cy,bx,by);
        startAngle = arc+startAngle;
        arc *= -1;
        segAngle = arc/segs;
        theta = -(segAngle/180)*Math.PI;
        angle = -(startAngle/180)*Math.PI;
        ax = Math.cos(angle)*radius2;
        ay = Math.sin(angle)*radius2;
        mc.lineStyle.apply(mc,lstyle);
        mc.lineTo(ax,ay);
        if (segs>0) {
            for (var j = 0; j<segs; j++) {
                angle += theta;
                angleMid = angle-(theta/2);
                bx = Math.cos(angle)*radius2;
                by = Math.sin(angle)*radius2;
                cx = Math.cos(angleMid)*(radius2/Math.cos(theta/2));
                cy = Math.sin(angleMid)*(radius2/Math.cos(theta/2));
                mc.curveTo(cx,cy,bx,by);
        mc.lineTo(rx,ry);
        mc.endFill();
    function drawWedge(mc, radius, arc, startAngle, lstyle, fstyle) {
        mc.clear();
        var segAngle, theta, angle, angleMid, segs, ax, ay, bx, by, cx, cy;
        arc = (Math.abs(arc)>360) ? 360 : arc;
        segs = Math.ceil(Math.abs(arc)/45);
        segAngle = arc/segs;
        theta = -(segAngle/180)*Math.PI;
        angle = -(startAngle/180)*Math.PI;
        ax = Math.cos(angle)*radius;
        ay = Math.sin(angle)*radius;
        mc.lineStyle.apply(mc,lstyle);
        mc.beginFill.apply(mc,fstyle);
        mc.moveTo(0,0);
        mc.lineTo(ax,ay);
        if (segs>0) {
            for (var i = 0; i<segs; i++) {
                angle += theta;
                angleMid = angle-(theta/2);
                bx = Math.cos(angle)*radius;
                by = Math.sin(angle)*radius;
                cx = Math.cos(angleMid)*(radius/Math.cos(theta/2));
                cy = Math.sin(angleMid)*(radius/Math.cos(theta/2));
                mc.curveTo(cx,cy,bx,by);
        markMC._rotation = (startAngle-arc)-90;
        markMC._x = Math.cos(angle)*(radius-50)+baseMC._x;
        markMC._y = Math.sin(angle)*(radius-50)+baseMC._y;
        mc.endFill();
    The scale is from 0 to 1200 and the problem I have is that the  value I want to show is usually so small that it looks like it's stuck  next to zero all the time. So, what I need is change the scale to  logarithmic so the values from 1 to 10 take up as much space as those  from 10 to 100 etc. and the small values show fluctuation. In thefollowing image you see on the left how it behaves now and on the  right how I need it to become (both show a visualization of a small  value, something around 7 or 8).
    http://i43.tinypic.com/29v03kz.gif
    Anyone can tell me how it's done?  Thanks.

    Thanks for your tip, problem is... it doesn't work. I added the extra function you proposed but it doesn't do anything. I attached the (CS3) fla file here
    http://www.sendspace.com/file/6o1nhi
    and the code is here again (changed some var names as they conflicted with an other script in same movie + removed the onMouseDown function). Thanks for your time.
    var inputVal = 6.70;
    var content2MC = _root.createEmptyMovieClip("content2MC", _root.getNextHighestDepth());
    var baseMC = content2MC.createEmptyMovieClip("baseMC", content2MC.getNextHighestDepth());
    baseMC._x = 200;
    baseMC._y = 200;
    var dynamicMC = baseMC.duplicateMovieClip("dynamicMC", content2MC.getNextHighestDepth());
    var maskMC = baseMC.duplicateMovieClip("maskMC", content2MC.getNextHighestDepth());
    var markMC = _root.createEmptyMovieClip("baseMC", _root.getNextHighestDepth());
    markMC.lineStyle(0,0xFF0000);
    markMC.beginFill(0xFF0000,100);
    markMC.moveTo(0,0);
    markMC.lineTo(0,7);
    markMC.lineTo(-7,0);
    markMC.lineTo(0,0);
    markMC.endFill();
    var startSize = 320*-1;
    var startPos = -110;
    drawWedge(baseMC,100,startSize,startPos,[0, 0x000000],[0x0033CC, 100]);
    drawDoughnut(maskMC,80,100,startSize,startPos,[5, 0xFF0000],[0xFF00FF, 10]);
    preprocesssInput(inputVal);
    function preprocesssInput(inputVal) {
        processsInput(Math.pow(10, inputVal));
    processsInput(inputVal);
    content2MC.setMask(maskMC);
    function processsInput(inputVal) {
        var wedgeSize = (startSize/1200)*inputVal;
        var wedgeStart = startPos;
        drawWedge(dynamicMC,100,wedgeSize,wedgeStart,[0, 0x000000],[0xFF6600, 100]);
        content2MC.setMask(maskMC);
    function drawDoughnut(mc, radius, radius2, arc, startAngle, lstyle, fstyle) {
        mc.clear();
        var segAngle, theta, angle, angleMid, segs, ax, ay, bx, by, cx, cy;
        arc = (Math.abs(arc)>360) ? 360 : arc;
        segs = Math.ceil(Math.abs(arc)/45);
        segAngle = arc/segs;
        theta = -(segAngle/180)*Math.PI;
        angle = -(startAngle/180)*Math.PI;
        ax = Math.cos(angle)*radius;
        ay = Math.sin(angle)*radius;
        mc.lineStyle.apply(mc,lstyle);
        mc.beginFill.apply(mc,fstyle);
        rx = ax;
        ry = ay;
        mc.moveTo(ax,ay);
        if (segs>0) {
            for (var i = 0; i<segs; i++) {
                angle += theta;
                angleMid = angle-(theta/2);
                bx = Math.cos(angle)*radius;
                by = Math.sin(angle)*radius;
                cx = Math.cos(angleMid)*(radius/Math.cos(theta/2));
                cy = Math.sin(angleMid)*(radius/Math.cos(theta/2));
                mc.curveTo(cx,cy,bx,by);
        startAngle = arc+startAngle;
        arc *= -1;
        segAngle = arc/segs;
        theta = -(segAngle/180)*Math.PI;
        angle = -(startAngle/180)*Math.PI;
        ax = Math.cos(angle)*radius2;
        ay = Math.sin(angle)*radius2;
        mc.lineStyle.apply(mc,lstyle);
        mc.lineTo(ax,ay);
        if (segs>0) {
            for (var j = 0; j<segs; j++) {
                angle += theta;
                angleMid = angle-(theta/2);
                bx = Math.cos(angle)*radius2;
                by = Math.sin(angle)*radius2;
                cx = Math.cos(angleMid)*(radius2/Math.cos(theta/2));
                cy = Math.sin(angleMid)*(radius2/Math.cos(theta/2));
                mc.curveTo(cx,cy,bx,by);
        mc.lineTo(rx,ry);
        mc.endFill();
    function drawWedge(mc, radius, arc, startAngle, lstyle, fstyle) {
        mc.clear();
        var segAngle, theta, angle, angleMid, segs, ax, ay, bx, by, cx, cy;
        arc = (Math.abs(arc)>360) ? 360 : arc;
        segs = Math.ceil(Math.abs(arc)/45);
        segAngle = arc/segs;
        theta = -(segAngle/180)*Math.PI;
        angle = -(startAngle/180)*Math.PI;
        ax = Math.cos(angle)*radius;
        ay = Math.sin(angle)*radius;
        mc.lineStyle.apply(mc,lstyle);
        mc.beginFill.apply(mc,fstyle);
        mc.moveTo(0,0);
        mc.lineTo(ax,ay);
        if (segs>0) {
            for (var i = 0; i<segs; i++) {
                angle += theta;
                angleMid = angle-(theta/2);
                bx = Math.cos(angle)*radius;
                by = Math.sin(angle)*radius;
                cx = Math.cos(angleMid)*(radius/Math.cos(theta/2));
                cy = Math.sin(angleMid)*(radius/Math.cos(theta/2));
                mc.curveTo(cx,cy,bx,by);
        markMC._rotation = (startAngle-arc)-90;
        markMC._x = Math.cos(angle)*(radius-20)+baseMC._x;
        markMC._y = Math.sin(angle)*(radius-20)+baseMC._y;
        mc.endFill();

  • Is it possible to change the scale of graph in webi ?

    Hi All,
    How to change the scale of graph in the web intelligence report.
    Thanks in advance,
    Ravi

    1. Set intervals on Y-axis values of the Webi report Charts from the Webi Chart Properties
    2. Set the Interval of 500 with Y-axis value range 0 2000,such that the value should look like,0,500,1000,1500,2000   
    Reproducing the Issue
    1. Create a Webi report from e-fashion with objects Year and Sales Revenue.
    2. Run the Webi report>Turn to Column Chart.
    3. Go to Chart properties>Y Axis>Scale
    4.Here there are 2 options.
    5. Min value, Max value however the major unit option is not available like one we have in Crystal Reports and Deski
    Environment Details:
    1. BOXIR2, BOXI3.0
    Cause
    This is a limitation in Webi report.
    Resolution
    Enhancement_Request ADAPT01202508 for this issue has been raised however there is no specific timeline as of now defined about which major release this feature will be included in.
    Regards,
    Sarbhjeet Kaur

  • Graph scale value change

    This seems like a silly thing, but I have a VI with 2 graphs on the front, and when I go to change the scale on the Y axis (X is auto-scaled), I can't just type in the number and hit enter. I can type in the number and hit ctrl-enter, and I can type in the number and click off the graph and it works, but I can't type it in and just press enter.
    Anybody know how to fix this?
    Thanks!

    Hello,
    Since you cannot reproduce the issue, it sounds like you may have some corruption in your VI.  I would suggest replacing the graphs or copying the VI into a new document.  Please post back if you have further questions or this does not work for you. 
    Was the "old" VI written in LabVIEW 8.0 as well?
    Elizabeth S.
    Application Engineer
    National Instruments

  • Changing time scale for mixed signal graph

    I want to change time scale for mixed signal graph 1 day or  5 day of realities?

    And what exactly are you having problems with? If you want to use a property node, it's Xscale.Maximum.

  • 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!

  • Graph scale

    How do I stop my graph displaying e+2 on my axis when a large scale is drawn?
    Paul Power
    I have not lost my mind, it's backed up on a disk somewhere

    Hi Paul,
    change the scale formatting…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can you change the scale of brush resizing?

    Hi there,
    When changing brush size in CS6, I've noticed that it is has granular resolution from 0 pixels up to around 500pixels, incrementing in size very slowly. However, above 500 pixels it increases in size very rapidly, jumping to 800, 1200, 1500 and then into the 2000s.
    As most of the photos that I work on have a high pixel count I find that my ideal brush size is between 400 and 1000, occasionally I use it at around 100 pixels, and occasionally at 2500.
    Is there any way of changing the scale of the brush size so that it allows greater sensitivity in the 400 to 1000 range?
    Cheers!
    Andrew.

    Thanks for pointing out that useful way of changing the brush size. Unfortunately I think it goes too far the other way ie. it changes size too slowly . Instead, the suggestion from conroy (see below) works a lot better as it alters the size in increments of 10.
    Thankyou very much though!
    Andrew.

  • How can I change the scale of a dimensionline?

    I want to change the scale of a dimensionline? Now is it 1:1. How can I change this in Acrobat standard 9?
    Thanks

    paulkreuzer wrote:
    Ok now I can change the tempo, but when I do I change all loops at once. What I want is to change the tempi of all loops seperately, how do I do that?
    You could mess around a little bit with "Flex Edit" (go to the GB help menu and search for flex edit to learn how) and see if that helps, but as Hangtime said, GB doesn't really support that... yet.
    One application that might help is Amazing Slow Downer. You could use it to speed up or slow down material before bringing it into GB:
    http://www.ronimusic.com/

  • 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 .

  • 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

  • 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

  • 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

  • Posting of retirement/transfer not possible(error in asset)

    Hi All, this is regarding intra company asset transfer through transaction code ABUMN. The issue is like below : Let's say asset code is 764 in 111 asset class & i am transferring this asset to 3615 in 112 asset class through ABUMN. Actaully in 2004,

  • Error at the time if cancellation of PR release thorugh ME54N

    Hi, While cancelling the release thorugh ME54N transaction we got following error; "No new release indicator can be determined" Message No: ME108 Please advise. Thanks shp

  • Publish changes in iCal

    I have an iPhone 3G s running OS 3 with my iCal synced to MobileMe. Syncing works fine, but changes to my calendar are not getting published until I go to my iMac. So, how do you publish iCal from your iPhone so people subscribed to your calendar can

  • Troulbe importing .aac

    I've been using Premiere Elements 4 for a while and have never been able to import .aac file formats, despite the format beging listed as compatible.  I keep getting an error message stating: "File format not supported/One of the necessary components

  • Transformation  activities in owb process flow

    could someone tell me please about process flow in owb ( oracle warehouse builder) 10.2 . how we can associate a procedure name with transformation. thanks