Handle runtime menu in subvi event

I am passing the runtime menu reference to a subvi event structure for processing the top-level runtime menu in the event case. I already have a registered case to handle any change in the top level vi control values. Since, I'm passing a runtime menu reference to the subvi, I initially thought I can handle the runtime menu in the subvi event. When I add an event, runtime menu is not a choice when setting the event up. The event setup does show "shortcut menu" as a selection but this must be for a context menu or the like.
Thx ahead of time,
richjoh

Hi Richjoh,
what you should do is pass the VI-refnum into the sub-vi, and register there for menu events! A menu reference, does not cover a FP-object so LV has no events for it.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!

Similar Messages

  • Runtime Menu of Radio Buttons

    Dear All,
    How to add event case to the runtime menu associated with Radio Buttons?
    There's a property in Event Case for Radio Buttons but that includes the whole Rectangular Box consisting of Radio Buttons, and not individual Radio Button.
    I want to add an event case for for menu selection for individual Radio Button as I am having 4 Radio Buttons, and menu associated with each radio button is different.
    Thanks,
    Ritesh
    Solved!
    Go to Solution.

    The event structure returns a reference to sub-item. If you right-click on the boolean, caption or boolean text of one of the buttons you get a valid reference and you can figure out (with caption see example) which element is clicked, if the right click is on the border or background of the radio button a null-reference is returned.
    Ton
    Message Edited by TonP on 10-04-2008 02:25 PM
    Message Edited by TonP on 10-04-2008 02:25 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_VI_BD.png ‏4 KB

  • How can I change the state of a runtime menu item programati​cally?

    Using LabView 6.1, I would like to change the state of the runtime menu item "Operate/Print at completion".
    The goal here is to print the VI front panel according to the operator choice (OK ->print, Cancel ->don't print)
    In a first release, I put a Stop function at the dialog output (activated by the cancel button) but this function stop the complete application and my idea where to stop only the VI in which the dialog is running.
    In a second release, I've tried to use the "Application
    control/Menu" but I receive every time an error:
    Error 88 occured at Cannot modify application menu item in the printtest.vi.
    Possible reasons: LabView, Runtime menu error...
    Any suggestion is appreciated.
    Re
    gards,
    phidu

    Instead of using the print at completion option, print the VI programatically if the user selects to print...open a reference to the VI you want to print and use an invoke node to print vi to printer.
    Alternatively create another VI with a layout optimized for printout, set it to print at completion and run and load the data into that VI if and only if the user OKs the print...
    Mads
    MTO

  • Changing runtime menu item names dynamically in executable

    I want to change the language of my application dynamically. In the run-time menu i do this by changing de item names (leaving de item tags the same) In Labview (6.1) this works but in a application builder build executable this don't work.
    Attachments:
    demo_vi.jpg ‏55 KB
    demo_exe.jpg ‏55 KB

    How are you changing the runtime menu dynamically? Are you reading the menu settings from a file? If so you might be losing the path to the file in the executable.
    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

  • Programatically set runtime menu to default

    I am trying to set the Runtime menu from a custom menu back to the default menu.  I write a string using the RunTimeMenuPath property node when the VI is idle.  All the basic combinations failed: empty string, "default", "default.rm".  When I open the VI and verify the menu change, the string I specified cannot be found and the menu is then reset to default.
    Is there another way to set the RunTime menu back to default other than the RunTimeMenuPath property?
    I have LV2010 Professional.
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector
    Solved!
    Go to Solution.

    Found the solution to this problem.   The reference that I was using was generic Virtual Instrument and gave me at RunTime Menu Path as a string.  There was no way to clear the menu.  When I obtained a VI Refnum instead, setting the path to <Not a Path> changed the Run Time menu to the default.
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • Handling Runtime Exceptions after Internationalization

    Hi,
    can any one let me know how to handle runtime exceptions . Like keyMissing exception while trying to retirive a key from .property file . The missing key might be due to a typo as property file is just a txt file . Another type of exception could be not able to find the property file itself. The two options available with resource bundle are the property file and the listResource bundle class.Since property file is just a plain text file it wont be able to catch missing key or missing value error[which could be typing mistake] but the listresourceBundle class wont compile if any of the entities key or the value is missing.. How to deal with this problem?
    Thanks
    Mukul

    Hello everyone,
    I added the addition ACCEPTING TRUNCATION to the above statement and the current runtime error has been solved.
    But now a new runtime error came up.'CONNE_IMPORT_WRONG_OBJECT_TYPE'     of exception 'CX_SY_IMPORT_MISMATCH_ERROR'          
    This is because there is a type conflict between the structured objects.
    The defn of CRT is like this
    DATA:  BEGIN OF CRT .
            INCLUDE STRUCTURE PC22Y.  "Cumulated result table (USA)
    DATA:  END   OF CRT.
    but I dont know where the mismatch is occuring in the data cluster.
    Infact I am very much confused with the data cluster structure.
    How do I resolve this issue?
    Any insights would be appreciated.
    Goldie.

  • Best Method To Use a RunTime Menu

    Hi
    I´m using a menu in my LabView Apllication, and I saw today that it takes considerable ressources. I enclose a vi in order to explain better what I mean. with my menu activated, my program loop runs about 5 times per sec, and about 170 without. Do you have better methods to use a RunTime Menu ?
    Thanks in advance for your help
    Nicolas Minary

    Sorry, I forgot the vi...
    Attachments:
    menu.zip ‏11 KB

  • Com.mslv.oms.handler.InternalErrorException: Cannot create automation event

    Hi Friends,
    I try place on order but i am getting below error.pls help me on this.
    java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Failed to invoke end component oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl (POJO), operation=CreateOrderBySpecification
    -> Failed to invoke method
    -> com.mslv.oms.handler.InternalErrorException: Cannot create automation events : Error in ejbCreate:: javax.ejb.CreateException: While trying to lookup 'mslv.oms.oms1.internal.jms.ConnectionFactory' didn't find subcontext 'jms'. Resolved 'mslv.oms.oms1.internal'
    I am using 7.0 OSM Version.
    Edited by: 996142 on Mar 26, 2013 5:58 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi JP,
    I have installed OSm 7.0.3 on top of weblogic 10.3.5 and i not able to create order is OSM after deploying cartridges
    on the server.The error i am getting is : (Wrapped) com.mslv.oms.handler.order.cache.c
    I see in your previous posts that we have to downgrade to version 10.3.3 for weblogic.
    Is there any other alternative for this. Please let me know the solution ASAP.

  • Runtime menu crash

    Hi,
    In one application I have a runtime menu which is dynamically changed. When a option is not available, the menu point is dimmed. Now I found out, that LabVIEW crashes every time when the runtime menu is opened while the change occurs in the program.
    Is there a way to avoid this? Otherwise the whole option to change the runtime menu dynamically would be worthless..
    Best regards
    Dermot

    Hi
    just now by looking at it a second time, I found the solution.
    In a early version of the program I added and deleted the runtime menu tags dynamically. When the runtime menu was opened during a delete action, LabVIEW 7.1 crashed completly.
    Now I just dim the tags that are not available, that means I only change the properties of the tags and the program works just fine.
    Thanks and best regards
    Dermot
    Attachments:
    screenshot1.jpg ‏51 KB

  • Changing runtime menu of multiple controls

    I have ~90 indicators that I need to change the runtime menu of. Is there an easy way to do this all at once?  I can't think of one, but figured I'd ask.
    Thanks,
    -M
    Edit: To clarify, they are all being changed to the exact same menu.

    I actually expected this to be quite easy with LabVIEW Scripting, but I couldn't find the functions needed.  Here is a post a while ago that basically said you can't.
    http://forums.ni.com/t5/LabVIEW/scripting-control-run-time-menu-file/td-p/1257590
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Selecting a custom runtime menu makes it so that the VI cannot be saved

    Whenever i try to save a VI with a custom runtime menu i get the attached 2 errors, oneter the other. This is using Labview 2014. any help would be much appreciated. Ther is of course not any invalid characters in the file name i am using.
    Richard
    Solved!
    Go to Solution.

    That's pretty much the same what i did, except i used a blank VI. Can you verify if the issue is connected to EVERY VI on your machine or connected to specific ones?
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Events handling for menu items

    I was trying out Action events on MenuItems and I manage to compile the java file successfully. However, there isn't any results shown when I select the menuitems. Please help me :-(
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MenuWithEvents extends JApplet implements ActionListener
    public void init()
    Container content = getContentPane();
    FlowLayout flow = new FlowLayout();
    content.setLayout(flow);
    JMenuBar menuBar = new JMenuBar();                         
    //File Menu
    JMenuItem j1 = new JMenuItem("New Template");               //Create MenuItems
    JMenuItem j2 = new JMenuItem("Load Template");
    //j1.addActionListener(this);
    //j2.addActionListener(this);
    j1.setActionCommand("New");
    j2.setActionCommand("Load");
    JMenu m1 = new JMenu("File");
    m1.add(j1);
    m1.addSeparator();
    m1.add(j2);
    //Help Menu
    JMenuItem j3 = new JMenuItem("Help Topics");
    JMenuItem j4 = new JMenuItem("About");
    JMenu m2 = new JMenu("Help");
    m2.add(j3);
    m2.addSeparator();
    m2.add(j4);
    setJMenuBar(menuBar);                                             //Add Menus to MenuBar
    menuBar.add(m1);
    menuBar.add(m2);
    public void actionPerformed(ActionEvent evt)
    //Object source = evt.getSource();
    String cmd;
    cmd = evt.getActionCommand();
    if(cmd.equals("New"))
    System.out.println("New Template is chosen");
    else if(cmd.equals("Load"))
    System.out.println("New Template is chosen");
    }

       //j1.addActionListener(this);
       //j2.addActionListener(this);No wonder - you've commented out the lines which add the ActionListener for the MenuItems.
    cheers,
    kelysar

  • Menu Design using Event Handler and Containers

    I am going to redesign my menu interface using a Labview Event Structure which has many control on tab pages.  I want to start out doing the correct design approach here.  By registering the front panel controls[] property as an event, I can write event cases for each of the controls on the front panel.  However, I run into difficulty when I have controls on tab pages.  I have attached a VI which shows how I want to set it up.  The event hanlder only fires when I change pages on the tab control. 
    What is a good way to be able to decipher individual controls on the tab control and
    what is the characteristic (label, ref number, etc) that I should be writing the event cases on for good code maintenance? 
    Solved!
    Go to Solution.
    Attachments:
    Generic Menu.vi ‏14 KB

    Looking at your code, you registered for value change events for controls on the front panel, not in the tab control. Use the property node for the tab control to get the references to the pages and for each page get the references for the controls on that page. Build an array of all controls on all pages (or you could separate the registration for each page to make your life easier potentially) and register those controls for value change events. See below...

  • How to handle RunTime Faults which doesn't list under System Faults?

    Hi,
    I have a doubt regarding runtime faults in BPEL 1.1.In BPEL 1.1 some of the run time faults are categorised as system faults.So we can handle those run time faults
    using the faultname or namespace(http://schemas.oracle.com/bpel/extension) of system fault itself.But 'SublanguageExecutionFault' is a run time fault which doesn't list under system faults.
    So what namespace it belongs to?Can we use the same namespace of system fault for this kind of runtime faults ?
    Are any other runtime faults existing which don't have the same namespace of sytem faults?So how can we identify and handle those run time faults?

    You can create a role menu as remote enabled remote menu.
    The authority checks will happen on the remote side, also against objects which don't exist in the calling system as the music is on the other side.
    On the RFC client system side, you only need the parameter transaction to start the remote transaction in the remote system.
    See the documentation on SYST function module ABAP4_CALL_TRANSACTION.
    This is however a rather antiquated technology... it is more popular to use a SAP Portal or webdynpro applications for this sort of thing (the user does not notice the difference) or later versions of such integration such as Fiori UIs or imbedded links within the Business Client.
    I don't want to lean out the window too far, but the buggy phase of these new things is approaching an end and they are usable if you are on newer releases. Then you can pool the menu and use APIs for navigation and no more irritating S_TCODE checks.
    Cheers,
    Julius

  • Handling runtime errors

    We have an AS3 application made in Flash Builder that I would like to compile such that the script continues to execute after encountering a runtime error.
    We made a simple AS3 test movie and compiled it with Flash CS3 and then Flash Builder.
    The movie tries to evaluate a variable that does not exist, and then puts a yellow square on the stage.
    Here is the core of the code:
    if(this["d"] == 1){ } // this line throws a runtime error because d is not declared.
    var s:Sprite = new Sprite();
    s.graphics.beginFill(0xFFCC00);
    s.graphics.drawRect(0,0,200,200);
    addChild(s);
    In the movie compiled in CS3 (with this code in a frame on the timeline) the runtime error seems to be ignored - and the square appears.
    In the movie compiled in FB with this code wrapped in a simple Class, or if this class is used as the document class for a CS3 movie - then the resulting swf throws the runtime error and does not add the sprite to the stage.
    Here is the simple Class:
    package
    import flash.display.MovieClip;
    import flash.display.Sprite;
    public class ErrorTest extends MovieClip
    public function ErrorTest()
    if(this["d"] == 1){ } // this line throws a runtime error because d is not declared.
    var s:Sprite = new Sprite();
    s.graphics.beginFill(0xFFCC00);
    s.graphics.drawRect(0,0,200,200);
    addChild(s);
    Why does it ignore the error when I just publish this code on the timeline?
    How can we compile a swf that will emulate this behavior using class files?
    Does the timeline code extend a class that ignores runtime errors?
    We read this http://livedocs.adobe.com/flex/3/html/help.html?content=11_Handling_er rors_03.html and it seems that the description in the documentation is inaccurate as is pointed out in the comment:
    The following statement regarding uncaught exceptions seems to be either inaccurate or misleading: 
    "At run time, Flash Player ignores, by design, uncaught errors and tries to continue playing if the error doesn't stop the current SWF file"    
    Script execution does NOT continue when hitting an error - even in a non-debug player.  Previous versions of AS/Flash Player used to continue.  For the non-debug Player, this is arguably a better approach as it prevents small errors from bringing down an entire block of script.
    Our experience confirms this.  Is there any way to globally specify that the application should continue on uncaught errors?
    We saw this class: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/events/UncaughtErrorEvents.html
    It seems to be only available in 10.1 - which is higher than we would like to target.

    Thanks Anirudh,
    In Flash Builder, try doing
    if(this.hasOwnProperty("d") && this["d"] == 1){ }
    I was just throwing this error as an example of throwing an error, and not looking to fix it in particular.  We have a large and complex application which is used by many people.  Unfortunately, some of our users are experiencing runtime errors that are stopping the execution of the script - and we do not know exactly where those are.  They may be easy to fix once we can locate them. Unfortunately, we have not been able to reproduce them locally.
    If the flash player encounters an error in the constructor of the sprite/movieclip which is the main class, it will not be able to continue. If this error had occurred in an event handler, then you'd be able to continue.
    Can you tell us more about the rules of uncaught runtime error handling? For example: when I compile this code - the sprite is not shown on the stage and the second trace is not executed - despite having moved the code to an event handler function.
    package
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.TimerEvent;
    import flash.utils.Timer;
    import org.osmf.events.TimeEvent;
    public class ErrorTest extends MovieClip
    public function ErrorTest()
    var t:Timer = new Timer(100, 1);
    t.addEventListener(TimerEvent.TIMER, eventHandler);
    t.start();
    protected function eventHandler(e:Event):void {
    trace("1");
    if(this["d"] == 1){}
    trace("2");
    var s:Sprite = new Sprite();
    s.graphics.beginFill(0xFFCC00);
    s.graphics.drawRect(0,0,200,200);
    addChild(s);
    I'd like to publish our application such that it would ignore all run time errors. Are there any compiler or other options to achieve that.
    Ideally we'd like to collate the errors such that end users could open a hidden text field and copy the error messages and send them to us.

Maybe you are looking for

  • Apple TV audio not controlled by AV receiver

    Just got a new Apple TV. The audio from my Macbook Pro (Mavericks) is correctly played on the TV, however, the audio seems to be controlled by thr Macbook only. My AV receiver audio controls do not seem to work. The result is that I can not turn up t

  • How do I save a pdf from Gmail to my adobe reader?

    How do I save a pdf from Gmail to my adobe reader? how can i solve this?

  • Iphoto and facebook - most recent photos not showing up in file upload!!

    on iphoto, all the photos are fine and the most recent photos i import are in the recent import folder like they should be. i'm trying to upload a new profile picture to facebook but when i go to file upload and then click on iphoto to find the pictu

  • Customising the toolbar PE-6 for Mac

    I loved using the PE version 4 for Mac but decided to upgrade to PE 6 for Mac. I noticed that the 'Open Folder' icon was not on the toolbar and now I have to tediously go the File/Open each time I want to get into a photo (and I have a lot to go thro

  • Some EC-CS features not found in BCS

    Hello, in EC-CS there are two quite important features which don't see in BCS. They are: 1) Multy-period consolidation (for consolidation several periods at once). In budget consolidation it's often required to consolidate annual figures in monthly d