Legend disappear when resizing graph in CVI 2009

Hi forum,
i have a problem with the graph control and the legend of a graph. I want to resize a graph by using the splitter. I attach the graph to two splitters to resize it in width and height by doubleclicking the panel. If the legend is in the range of the control, means the top of the legend is not greater than top + height of the graph control everthing is working fine. But if the top of the legend is greater than top + height of the graph the legend moves to the right, but dont moves back to the old position if the panel is resizing again.
Also there seems to be a positioning problem. If i resize the panel height to a minimum by click and hold the bottom of the panel and i do this again to a normal size the position of the second graph is not set correctly.
Please review my little source code. Maybe this happens due to an error by my side.
Thomas
Attachments:
test.zip ‏7 KB

Resizing graphs with legends is tricky because, when  you grow or shrink a graph, the legend moves depending on how it is positioned relative to the graph. Let's your bottom graph as an example:
In your bottom graph, the top legend is (just barely) below the bottom edge of the graph. In this position, when you increase or decrease the width of the graph, the legend does not move. However, if the top edge of the legend were above the bottom edge of the graph, then the legend would move whenever you changed the width. This implicit movement of the legend needs to happen so that it doesn't end up overlapping the body of the graph as the graph changes size.
This is what happens when the panel grows:
You first grow the graphs vertically (by operating the horizontal splitter). This forces the bottom edge of the graph to be below the top edge of the splitter. Then, you grow the graphs horizontally (by operating the vertical splitter). Because the bottom edge of the graph is now below the top edge of the legend, the legend is forced to move to the right.
Now this is what happens when the panel shrinks:
You first shrink the graphs vertically (by operating the horizontal splitter). This forces the bottom edge of the graph to once again be above the top edge of the splitter. Then, you shrink the graphs horizontally (by operating the vertical splitter). But now, because the bottom edge of the graph is above the top edge of the legend, the legend does not move, and as a result you no longer see it (because it's clipped by the panel's right edge)
You could fix this by alternating the order in which you operate the splitters depending on whether the panel is growing or shrinking. You could also fix it by slightly tweaking the original position of the legend (moving it up by 1 pixel would be sufficient), such that it is always above the bottom edge of the graph. Your top legend, by the way, is already above the bottom edge of the top graph. This is why you're only seeing the problem with the bottom graph.
Luis

Similar Messages

  • The plotted data on the graph disappear when clearing graphs!??

    Hi folks
    I got this vi, with two graphs, and one chart. I got this chart coz i want the data plots to strip in the graphs.
    but when the VI runs, and i pres stop and run again, the data plot disappears, they are then beeing plotted in the back ground or something like that.!
    Also when clearing the graphs the data plottet disappears.
    How can I overcome that ?
    regards
    Zamzam
    HFZ
    Attachments:
    FlowReadChartHist1_mod2.vi ‏79 KB

    Hello Zamzam,
    same again:
    1) I click "Clear" when the graphs are not filled with data: graphs are cleared, new data appear from left and fill the graphs.
    2) I click "clear" when the graphs are "filled" (the x-scrollbar shows
    more data the display is showing): graphs get cleared, new data appear
    from left and fill the graph again...
    3) I click "stop" at any time: vi stops, actual display stays.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • My scrollbars disappear when resizing my LabView8.6 Block Diagram window

    My design can't be seen in it's entirety within the Block Diagram window so I need to use the vertical and horizontal scrollbars to navigate the design.  The scrollbars disappear if I resize the Block Diagram window past "some point".  If I shrink the window very small, the scrollbars reappear.  Other programs I've generated don't seem to have this problem.  Any suggestions?

    Hi,
    Check the scrollbars settings, right click on vertical/horizontal scrollbars and change the settings. If the problem still exists, U can send me ur vi, let me have a look to know the exact problem.
    regards
    sunil 

  • Responsive animation disappears when scaling browser window

    Hi all.
    I am having a problem with responsive scaling.
    After integrating the animation into a responsive html page made in Dreamweaver I tested it on various browsers.
    When I scale the browser window down  the animation scales responsively with
    the browser. When I scale it back up, it stays stuck at the same size.
    If I pass the the threshold for the tablet layout, then resize it back to
    the desktop size,  the animation disappears entirely, requiring the page
    to be reloaded to bring it back.
    Has anybody else run into this problem and
    if so is there a known fix?
    Cheers

    Hi Devendra.
    How are you today?
    It is doing it on a page I am currently working on, however I noticed that
    it also does it on the last site I worked on.
    Here is a link. If you resize the window down and then back up you
    will see that it does not resize. The site I am working on at the moment
    is structured differently, so when I pass the tablet threshold in  the fluid-grid
    layout the animation usually disappears when resizing back to the desktop threshold.
    Here is the link to the live site.
    http://indigocare.com.au/index.html
    Thanks for getting back.
    Cheers from Jules

  • Graph title disappears when unchecking "Show Legend"

    I am using Oracle Business Intelligence Discoverer Plus 10g (10.1.2.55.26). I have a worksheet crosstab with a line graph of just a single series, so there is no need to display the legend. When I uncheck the "Show Legend" option, the graph title disappears. Any suggestions on how to display the title without the legend?
    I noticed later that the graph title either disappears on my screen, or the formatting shifts it to the right to some area where I can't see. If I select a left justification for the graph title, it re-appears to the left, but not centered. I do want it centered, but it seems to be centering about some other center point. Any ideas?
    After some more work, the only way I could get the title centered is to leave it as center-justified, but add spaces after the text on the title. After adding enough spaces, the title can be forced to move to the center. Wondering if anyone else experiences this behavior?
    Edited by: user11169968 on Mar 13, 2013 7:31 AM

    hi ,
    Using guided navigation we can do this
    1) create an intermediate report with a title view of your main report add a dummy column and hide that
    in compound layout only add "title" view delete other views
    2) No Results view of the main report "in headline " just give a white space
    3) Place the intermediate report in first guided navigation request
    http://img525.imageshack.us/img525/5829/pic114q.jpg
    4) Second section pull your intermediate report in this and use the main report as source
    http://i51.tinypic.com/2zzrfaa.jpg
    5) http://img155.imageshack.us/img155/9880/pic116.jpg (With results)
    6) http://img205.imageshack.us/img205/1083/pic117.jpg (No Results with title view)
    PS: You will get "Refresh "
    thanks,
    Saichand.v

  • Legend behavior when switching between plots in graph.

    I am trying to plot two plots on a single XY graph. The user should be able to switch between the individual plots as well as showing them together. I do not use the Plot.Visible property but instead change Plot.Color to transparent to make sure the Y-scale keeps updating also when the plot is hidden. This works fine, but the Curve in the legend disappears for one of the graphs when it is hidden but not for the other one. I guess that the correct behavior is that they disappear but if it would be possible to make them both visible in the legend the entire time this would be desirable. I have made and attached a simplified VI of what I am trying to accomplish.
    Any ideas about what the problem is and how I could solve it?
    Thanks,
    Johan Gustafsson
    Attachments:
    Prototype_Plot_Switch1.vi ‏31 KB

    Hi,
    i'd changed a little bite your code. Cause if you set the line color to transparent, the legend must also be transparent. So, I think that you can't go that way.
    See my approach.
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    Prototype_Plot_Switch1 changedvi.vi ‏24 KB

  • CVI 2009 menu bar resize problem

    In CVI 2009, if you have the 'scale contents on resize' attribute set for a panel with a menu bar on it, the menu bar font resizes with the panel.
    Unfortunately, there is a rather severe bug in this. If you do the following repeatedly:
    (a) Load a panel with 'scale contents on resize' set and a menu bar
    (b) Enlarge it
    (c) Display it
    (d) Hide it
    (e) Discard it
    then the menu bar font gets progressively bigger and bigger each time the panel is displayed. Below is an example from the test project attached to this posting (four successive display iterations). To say this is inconvenient is understating the truth: It actually breaks many of my applications. Is there any way to stop this behaviour?
    Martin
    Certified CVI Developer
    Attachments:
    TestMenu.zip ‏6 KB

    Hello Martin -
    I'm very sorry for the inconvenience this bug has caused.  Another workaround that may be a little simpler would be to update the font of the menubar with a newly created metafont immediately before showing the panel (and after resizing).  This also has the added benefit of the menu retaining it's original size instead of being scaled.  You could accomplish this with code similar to the following:
    int hNewPanel, hMenuBar;
    hNewPanel = LoadPanel (0, "TestMenu.uir", MENUPANEL);
    hMenuBar = GetPanelMenuBar (hNewPanel);
    SetPanelSize (hNewPanel, 600, 800);
    CreateMetaFontEx ("NewMenuMetaFont", "NIMenuMetaFont", 13, 0, 0, 0, 0, 0);
    SetMenuBarAttribute (hMenuBar, 0, ATTR_MENU_BAR_FONT, "NewMenuMetaFont");
    I also just wanted to add why the behavior of scaling menus with "Scale Contents On Resize" changed in LabWindows/CVI 2009.  The problem was that when using scale contents on resize, all fonts are supposed to scale proportionately to the scaling of the panel.  However, menu fonts did not scale, and this led to the problems seen in this forum.  Because of the inconsistenty and to fix the bug reported on that forum, bug report 134165 was created and then fixed in LabWindows/CVI 2009.
    Once again, I'm sorry for the inconvenience this has caused,
    NickB
    National Instruments

  • CVI 2009 - Instruments loaded in project lost when CVI shutdown/restarted

    Steps to duplicate:
    1. Start CVI 2009; load a project with no instruments loaded.
    2. Load instruments into project (the test case in which this problem was observed loaded niScope.fp and FieldPoint.fp; NI-Scope version was 3.5.1, Field Point was 6.0.4).
    3. Compile/build project.
    4. Shutdown CVI; restart (project will be reloaded by default).
    Observed behavior:
    1. Instruments loaded into project in prior iteration will not be loaded and need to be reloaded before project can be compiled/built.  This behavior was not observed in prior versions.

    This is the expected behaviour, I think. At list it was up to release 8.5 (I can't test more further). See here.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to use CVI 2009 with CVI 2012 installed

    I have TestStand 2012 / CVI 2012 installed. 
    I need to also test using teststand 4.2.1 / CVI 2009.
    I installed teststand 4.2.1 / CVI 2009 and can activate teststand 4.2.1 but I cannot access CVI 2009. 
    Is there any way to have CVI2009/2012 both available on the same computer? 
    Is there a way to compile CVI 2012 to work with TestStand 4.2.1?

    Hi HMRJ,
    You can have multiple versions of CVI installed on the same computer. Can you explain in detail what you mean when you say that you cannot access CVI 2009? Do you mean that you can't open it or can't activate it?
    I am not sure I understand what you mean by compiling CVI 2012 to work with TestStand 4.2.1. You should be able to create a DLL from CVI 2012 and call this code module from TestStand. Are you receiving any errors when you try to do this?
    Regards,
    Anjelica W.
    National Instruments
    Applications Engineer

  • Apply transition when Resizing AIR Window Stage

    I am using FLEX and trying to resize the AIR Application's
    Stage - I have a desk app that I want to expand out when I change
    state:
    The problem I have is that none of the Transitions I have
    tried work - it would be nice to gracefully slide down.
    Or maybe I'm doing it wrong???
    [Code]
    <mx:states>
    <mx:State name="normal">
    <mx:SetProperty target="{this.stage.nativeWindow}"
    name="height" value="84"/>
    </mx:State>
    <mx:State name="expanded">
    <mx:SetProperty target="{this.stage.nativeWindow}"
    name="height" value="500"/>
    </mx:State>
    </mx:states>
    <mx:transitions>
    <mx:Transition id="transition1"
    fromState="normal" toState="expanded">
    <mx:Parallel targets="{[this.stage.nativeWindow]}">
    <mx:WipeDown duration="2000">
    </mx:WipeDown>
    </mx:Parallel>
    </mx:Transition>
    </mx:transitions>
    [/Code]

    This is a bug! I uninstalled AIR 16 and installed AIR 15.0.0.356, and there are no striped lines on window resize. What to do?
    EDIT: New information:
    Those lines appear and dissappear on mouse move/hover. It looks like lines disappear on "redraw region". Lines are always visible only on right side of window.
    EDIT: More info:
    I think I found that bug is if you have smoothingQuality="high" like in:
    <s:BitmapImage source="{imgCls}" smooth="true" smoothingQuality="high"/>
    If I set smoothingQuality to "default", then there are no horizontal lines flickering.
    What got wrong with latest AIR so I have this issue?
    EDIT: I filed a bug: Bug#3928797 - Display problem when resize a BitmapImage with smoothingQuality="high"
    It looks it is related to: Bug#3923037 - Corrupted display of resized images

  • Can't open .prj files CVI 2009

    Running CVI 2009 and everything had been running fine for weeks.  Shut down test program that was running.  Installed my license device and went to my .prj file to open it up in debug mode.  When I double clicked on it, Windows says it can't find the file, even though it is sitting right there in explorer, it will not open it.  Tried several other .prj files and it does the same thing.  Tried opening CVI by itself and then loading the .prj file, but the splash screen comes up and then it never does anything else.  Rebooted several times (running XP SP3), then finally tried to do a repair of the CVI install.  This didn't help and it did the same thing.  Then deleted everything and did a fresh install...it still says it can't find the .prj file.  It seems like something has gotten corrupted in my Windows install maybe??  Probably going to try and re-image the machine, but trying to figure out what happened.  Anyone seen anything like this ever before???
    Thanks for any info...
    EDGE

    Hi EDGE,
    I haven't run into a similar error in the past but keep us posted on if reimaging the machine resolves the issue.
    Best Regards,
    Swathi B

  • Timer( ) resolution in CVI 2009 SP1

    In the CVI 2009 SP1 Contents Help for Timer() function I find
    The resolution is normally 1 microsecond. However, if you set the useDefaultTimer configuration option to True, the resolution is 55 milliseconds.
    But if you click on the useDefaultTimer hyperlink, a new page is opened, where you can read that the resolution is 1 millisecond if you set useDefaultTimer to False.
    Which is the right resolution?
    I wrote my application considering 1 microsecond, but I found strange problems, and I think it is 1 ms.
    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

    Hi vix,
    Thanks for bringing those documentation problems to our attention.
    1. There does seem to be a problem with a lot of the function prototypes in the .chm help in the CVI 2009 SP1 and 2010 versions, where an extra asterisk seems to have been added to a number of output parameters. We'll fix this and post a corrected version of the affected .chm files as soon as possible. In all these cases, the parameter data type as it appears in the Parameters section of the help topic is correct, as is the prototype in the corresponding function panel.
    2. Concerning the timer resolution issues, the async timer resolution is in fact 1 millisecond, as confirmed by the GetAsyncTimerResolution function. But note that asynchronous timers are a library in and of themselves, and are not covered by what is discussed in the documentation of the Timer() function or the useDefaultTimer option.
    The resolution of the Timer() function should be 1 microsecond, as of CVI 9.0 and later. The function documentation is correct. When that change was made, however, the documentation of the useDefaultTimer option was incorrectly not updated. It should say that "the performance counter timer provides a resolution of 1 microsecond".
    You mentioned that you didn't think that the resolution of the Timer() function was 1 microsecond. If you run the following code, what do you see?
    int     i;
    double  time[10];
    for (i = 0; i < 10; i++)
        time[i] = Timer();
    for (i = 0; i < 10; i++)
        DebugPrintf ("timer = %f\n", time[i]);

  • Cant see mask when resizing in CS 6

    I am trying to resize a mask in Photshop CS6 and everytime I try to scale it the mask disappears and I cant see what Im doing. Is there a setting that I need to change so that I can see it? Please see screenshots of what is happening when I try & resize.
    I have the mask visible in the first screenshot. And the 2nd screenshot shows how it disappears when I try to resize.

    The first screen shot shows the layers panel and image.
    The 2nd shows the mask turned on and the layers panel.
    If I try to scale the mask up it turns to white and I cant see it,
    as I showed in the 2nd screen shot above.

  • CVI 2009 Base Package won't activate CVI 8.1

    I own a license for CVI 2009 Base Package, which is activated and works correctly.  A customer of ours requires that we use CVI 8.1.
    When I launch CVI 8.1, I first got an evaluation period, but now I'm unable to launch at all since the evaluation is expired.
    I already tried removing my cvi_base_pkg_080100.lc and downloading the new one from NI's site (http://joule.ni.com/nidu/cds/view/p/id/78/lang/en).
    License manager shows that the license is installed correctly:
    What should I do next?
    Josh W.
    Certified TestStand Architect
    Formerly blue

    Louis,
    Thanks for cluing me into how NILM works with NI software.  I didn't realize that it was linked as a static library.  I had seen in the past when NI moved to WinVista-compliant paths that licenses didn't need to be in the old folders and that software pre-change and post-change worked equally well with the new folders, so I had guessed that it was all handled by the NILM runtime.
    Nick,
    This may not be a reproduceable case.  I wish I could tell you my install order...but unfortunately this machine isn't that clean.  I think the order goes something like this, but I'm not completely certain:
    Install CVI 7.1 (eval)
    Install CVI 2010 (eval)
    Install CVI 8.1 (eval)
    Install TestStand 4.2.1 (eval)
    Install TestStand 2010 beta (beta license)
    License CVI 2010 & CVI 7.1
    Install LabVIEW 2010 (full)
    Uninstall TestStand 2010 (after beta expires)
    Uninstall TestStand 4.2.1
    I originally had all of the usual license files for CVI, but I removed the extraneous ones (full/debug/etc.) as part of my debugging to make sure they weren't interferring in some way. I still have those licenses, they're just in a subfolder called 'old' within the Licenses folder.
    My UAC is set to "Notify me only when programs try to make changes to my computer (do not dim my desktop)".
    I'm logged in as "VIRGINIA\Josh" (VIRGINIA is the name of our local domain), and I'm an administrator.
    If you can't reproduce this, and it's not immediately obvious what's causing it, don't spend too much time at it. I'm worried it's an interaction between the TestStand beta license expiring, and the CVI license being in eval at that time.  I can work around it for now (I can write the code on my machine where I have better monitors and then compile it on a test machine where it licenses correctly).  We're also considering moving to Win7 x64 by the end of the year, so I'll have to re-install everything then anyway.
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • LabWindows/CVI 2009 Run-Time Engine update

    I wanted to let everyone know that NI has released an udpated CVI 2009 Run-Time Engine. Information on what bug(s) this update fixes can be found here. If you are currently not using the CVI 2009 Run-Time Engine, you do not need to install this update.
    This is an updated installation of the CVI Run-Time Engine, not a patch. If you download and install this update it will upgrade whichever version of the CVI Run-Time Engine you currently have to version 9.1.0.428 (CVI 2009 released with version 9.1.0.427). One way to find out which version of the CVI Run-Time Engine you have installed is to view the version number of c:\windows\system32\cvirte.dll. If you install version 9.1.0.428, any installer distributions that you create from any version of the CVI ADE will include version 9.1.0.428.
    If you have not yet installed LabWindows/CVI 2009, it's recommended that you install this update, either before or after you install CVI 2009.
    Luis

    To be clear, the original problem that you reported ("Attempt to free pointer to memory not allocated by malloc() or calloc()") might very have been the problem that this patch fixed, which was in fact new to 2009. But that problem only happens if there were actual plots in the graph.
    However, after looking at the "dynamic memory is corrupt" isse some more, it turns out that it is actually expected behavior, believe it or not. This is a limitation of easytab controls, caused by how they use callback chaining in their implementation. Whenever a panel or a control has its callback chained, you cannot change the callback, or make a copy of it after the chaining takes place. This is described in the EasyTab_ConvertFromCanvas function help ("...For the same reasons, do not call DuplicatePanel or DuplicateCtrl on any of these panels or controls after the Easy Tab control has been created.").
    As you probably have read elsewhere, easytab controls are quite obsolete. They were a stopgap "solution" to the problem of there not being a native tab control in the CVI user interface library. Native tab controls were finally added in CVI 8.0, and so we recommend that, if possible, users update their code to use these instead.
    Luis

Maybe you are looking for