Receiver output events 8 to CVI exit 7

Hi all, I am facing a strange behavior when you change an old program written in CVI 7.1. CVI 8.5 is installed on my machine, so the active execution engine is one of the most recent version.

If you change the program in CVI 7 IDE, I found that a table receives events still undefined in this version. Specifically, it receives a EVENT_MOUSE_POINTER_MOVE event when the mouse points control; I also noted an EVENT_LEFT_CLICK_UP event. I did not the specific tests for other events.

He is an annoying problem with a simple solution: just by adding the line

If (event > EVENT_MARK_STATE_CHANGE) return 0;

at the beginning of the function removes any possible confusion due to unexpected events; reception of events in the IDE, both in the compiled application.

Having noticed this fact, there are two issues I'd like someone can answer:

Q1: is this expected behavior? In other words, the events are coded inside the runtime engine so that I have to consider my controls will receive the events mentioned in the TEN running? I wonder if I need to add the output line of filtering on all programs that are likely to be running the RTEs more recent than the version that they were built with: in other words, the compatibility declared with new RTEs could lead to unpredictable behavior.

Q2: is this consistentbehavior? In other words, I can rely on these events passed to the controls exactly as if the application was developed in the more recent IDE?

Yes, this is the expected behavior. I realize that the reminder to receive new events when you install a new version of the CVI is probably not an obvious side effect, but it's a side effect of the architecture of the CVI runtime engine. As mentioned by jr_2005, that is why it is important to respond only to specific events in your reminder. As mentioned by ebalci, you can work around this by using a local RTE by copying the version of this editor, you want your application to use in the same directory as the executable file.

However, if the recall does respond to specific events, this behavior should be no problem. As you have noted, it is only when you have the code in an event of default, or outside the switch statement, as it can cause unexpected results.

Tags: NI Software

Similar Questions

  • Mouse input/output events

    Hello

    I have a question about mouse input/output events. Specifically, I would like to know why so many mouse entry/exit events are generated. Suppose that you stack several components like this:

    @Override
    public void start(Stage frame) throws Exception {
         Pane root = new Pane();
         frame.setScene(new Scene(root));
         addEnterExitHandlers(root, "root");
    
         Pane fst = new Pane();
         root.getChildren().add(fst);
         addEnterExitHandlers(fst, "first");
    
         Pane snd = new Pane();
         fst.getChildren().add(snd);
         addEnterExitHandlers(snd, "second");
    
         Rectangle rect = new Rectangle(0, 0, 100, 100);
         snd.getChildren().add(rect);
         addEnterExitHandlers(rect, "rect");
    
         frame.show();
    }

    The addEnterExitHandlers() method just registers handlers for MouseEvent.MOUSE_ENTERED_TARGET and MouseEvent.MOUSE_EXITED_TARGET which print the name of the type of the event with the specified string.

    The result looks like this:

    root MOUSE_ENTERED
    
    first MOUSE_ENTERED
    root MOUSE_ENTERED_TARGET
    
    second MOUSE_ENTERED
    first MOUSE_ENTERED_TARGET
    root MOUSE_ENTERED_TARGET
    
    rect MOUSE_ENTERED
    second MOUSE_ENTERED_TARGET
    first MOUSE_ENTERED_TARGET
    root MOUSE_ENTERED_TARGET
    
    root MOUSE_EXITED
    
    first MOUSE_EXITED
    root MOUSE_EXITED_TARGET
    
    second MOUSE_EXITED
    first MOUSE_EXITED_TARGET
    root MOUSE_EXITED_TARGET
    
    rect MOUSE_EXITED
    second MOUSE_EXITED_TARGET
    first MOUSE_EXITED_TARGET
    root MOUSE_EXITED_TARGET

    This output is not correct, because I inserted blank lines to visually group related items.

    As you can see, a MOUSE_ENTERED event is fired for each node and all nodes parents receive MOUSE_ENTER_TARGET events. I just thought that it would be sufficient to take only the last group of input/output events, respectively, that is to say:

    rect MOUSE_ENTERED
    second MOUSE_ENTERED_TARGET
    first MOUSE_ENTERED_TARGET
    root MOUSE_ENTERED_TARGET
    
    rect MOUSE_EXITED
    second MOUSE_EXITED_TARGET
    first MOUSE_EXITED_TARGET
    root MOUSE_EXITED_TARGET

    Is there a particular reason the behavior?

    Best regards
    Matthias

    Hi Matthias,

    Yes, there is a reason for that. In the vast majority of use cases, entry/out handlers are added on a node to handle the case where the mouse arrives / leaves the node. _TARGET variants will tell you "this node or some of his children was input/out", which is not quite there. Now, if you want to check that TSF has been entered, you just do:

    fst.setOnMouseEntered(new EventHandler() {
      @Override public void handle(MouseEvent e) {
        // your code
      }
    });
    

    If we have generated only the last group of events, as you suggest, you'd have to do:

    fst.addEventHandler(MouseEvent.MOUSE_ENTERED_TARGET, new EventHandler() {
      @Override public void handle(MouseEvent e) {
        if (e.getTarget() == fst) {
          // your code
        }
      }
    });
    

    Even if we added convenience for the _TARGET (setOnMouseEnteredTarget) variants management, having to always check the target would be pretty boring.

    See you soon,.

    Pavel

  • GlobalEventListener received an event twice

    Hi all

    I use the GlobalEventListener to receive an event. However I just send the event once, but I have the event twice in the eventOccurred() can someone help?

    I would almost bet money on the fact that you have saved the two listeners.  Make sure that you really only a single listener.

  • AsyncEventListener receive duplicate events

    Hello

    I'm running a problem with some AsyncEventListeners who receive duplicate events. There are four tables with listeners (the listener code is the same for everyone).

    When a row is inserted in one of the tables there are four events in double received by the listener of the table (I checked this by writing instructions for debugging in a file).

    Here are the instructions to create the table:

    create table sqlfire.proxy_0

    (integer k, value varchar (500))

    GROUPS of SERVERS ASYNCEVENTLISTENER ("proxy_0") (proxy_0)

    ;

    create table sqlfire.proxy_1

    (integer k, value varchar (500))

    GROUPS of SERVERS ASYNCEVENTLISTENER ("proxy_1") (proxy_1)

    ;

    create table sqlfire.proxy_2

    (integer k, value varchar (500))

    GROUPS of SERVERS ASYNCEVENTLISTENER ("proxy_2") (proxy_2)

    ;

    create table sqlfire.proxy_3

    (integer k, value varchar (500))

    GROUPS of SERVERS ASYNCEVENTLISTENER ("proxy_3") (proxy_3)

    ;

    Here are the instructions that add each AsyncEventListener:

    CALL THE SYS. ADD_ASYNC_EVENT_LISTENER (' / taq_us | username = gpadmin | password = gpadmin | tableName = lineitem "");

    CALL THE SYS. ADD_ASYNC_EVENT_LISTENER (' / taq_us | username = gpadmin | password = gpadmin | tableName = lineitem "");

    CALL THE SYS. ADD_ASYNC_EVENT_LISTENER (' / taq_us | username = gpadmin | password = gpadmin | tableName = lineitem "");

    CALL THE SYS. ADD_ASYNC_EVENT_LISTENER (' / taq_us | username = gpadmin | password = gpadmin | tableName = lineitem "");

    I have attached the code AscynEventListener (MicroBatchListener.java).

    For any help or suggestion would be greatly appreciated.

    Thank you

    Sean

    Hi Sean,.

    SYS. ADD_LISTENER is unchanged and still supported in 1.0.2. It should work without any problems even in older versions.

    Yogesh-

  • Image with enabled set to false still receives click events

    I have a simple image with a click event and the button is set to enabled = false and it still receives click events. Does anyone know how to disable the image if it receives no click events. I want only the image to send a click on some points, then the other event not to do... Thanks to all those who can help

    I didn't think allowed aims to control the actual events - rather the native behavior resulting from events. My suggestion is that you either remove the headphones when you don't want to see the clicks, or place the code in the listener that runs the effect selectively.

    If you want you could simply encapsulate your headset with a test for the license:

    private void handleImageClick(event:MouseEvent):void {}
    If ((event.currentTarget_as_InteractiveObject).enabled) {}
    ... Things //Your here
    }
    }

    It will run only then the code when the image is selected.

    If you want to have the image as the button, you can extend it and save a listener in the constructor for the click event. Inside the listener, if not enabled, call event.stopImmedatePropogation ().

    Tim

  • Run the code to output on output keyboard event and not mouse exit

    It seems that the exit event runs on the cell in the table (text field) when you select a cell with the mouse.  I have had to force a Tab or entry to set the focus keyboard to another cell in another table.  It's pretty easy to take place, but when you select a location with the mouse, the exit event seems to operate and excessive rides of the keyboard focus to the location I'm force.  Is it possible to ignore exit code for the event in case of non-clavier?

    Hello

    The exit event will always when the object loses the focus. Take a look at the end of this example that shows how you can detect how the field was left: http://assure.ly/j1KdNq.

    This early example also considered the development of a field setting when you press on enter: https://acrobat.com/#d=RZ1lzX23 * u7L4N9rtWCYPQ.

    Hope that helps,

    Niall

  • Problems with the script to output event

    In fact I don't know if I have a problem with the Exit event or if there is something wrong with my script syntax... The output of a field event, I check if the field is empty or not and check a flag I put in place.

    The first if statement works - if I get back a value in the field, everything goes as planned. If I delete the value of the field, nothing happens.

    //if field has a value hide subSection04
    if (!(this.rawValue == null || this.rawValue.length == 0))
    {
         subSections.subSection04.presence = "hidden";
    }
    
    //if field is empty and flag equals true show subSection04
    else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == true))
    {
         subSections.subSection04.presence = "visible";
    }
    
    //if field is empty and flag equals false hide subSection04
    else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == false))
    {
         subSections.subSection04.presence = "hidden";
    }
    
    There are a few groups radio button that also control this behavior, they are all inter relate. So I tried also triggers the Click event of a radiobutton Group (which resembles the value in this field) out of this area, but that doesn't seem to work.

    Hi Jono,

    Your expression subFlags.Commercial.rawValue is true compares a String data type with a Boolean data type.

    Edit the expression as subFlags.Commercial.rawValue is 'true'

    I hope that this should work for you.

    Your code should look like

    //if field has a value hide subSection04
    if (!(this.rawValue == null || this.rawValue.length == 0))
    {
         subSections.subSection04.presence = "hidden";
    }
    
    //if field is empty and flag equals true show subSection04
    else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == "true"))
    {
         subSections.subSection04.presence = "visible";
    }
    
    //if field is empty and flag equals false hide subSection04
    else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == "false"))
    {
         subSections.subSection04.presence = "hidden";
    }
    

    Nith

  • do you have an output event initiate key tab?

    Hello

    I have a table in my form. If the user presses the tab key on the last field of the last row, I want to add another line (as happens in the tables in MS Word for example).

    My problem is: How can I find out what inititated an output on my domain event? Was it a tabulator or did the user click with the mouse somewhere else?

    I would like to write something like

    If (xfa.event.trigger = 'TABKEY') {...}

    Hope that someone had the same problem already.

    ULI

    xfa.event.commitKey returns a value based on what has been used to exit the field. 3 that a tab has been used a 1 means that the mouse has been used.

    If you can write code that looks like this:

    keypressed var = xfa.event.commitKey;
    If (keypressed == 3) {}
    App.Alert ("you left this area using a tab")
    }
    If (keypressed == 1) {}
    App.Alert ("you've left the field with the mouse")
    }

    Paul

  • Windows Mail can receive but not send up to exit application

    Hi and thanks for taking the time to read what I am in need of your help.

    I have a Toshiba P200, Vista Home Premium, Tiscali as my ISP, Norton Internet Security for AV and firewall and access my broadband via Ethernet to a Belkin ADSL router (and occasionally a Siemens router) and I am experiencing some strange events with Windows Mail.

    In short I can receive mail without any problems, but when I send the mail, remaining in the Outbox despite the option send immediately being checked, or by pressing the send/receive button. When I go out Windows Mail mail is sent immediately and is when I restart Windows Mail in the sent messages folder.

    So why I think there is a problem with the laptop. Well, I'm lucky to have a friend who has a non-Toshiba laptop, where all of the above can be replicated. Guess what, Windows Mail sends the message exactly as it should (on my account and on my network, through my router and the ISP, Tiscali etc.), so I conclude that the only difference is that my laptop is a P200.

    I called Tiscali, which confirmed that all my mail settings were OK, POP, SMTP etc, which I expect (because they work on the laptop from my friend), and they advised to contact Microsoft, I did, and since the P200 has pre-installed Vista they say that I need to contact Toshiba, and here I am.
    My P200 has been restored to factory settings, and I tried to get this working without Norton IS and no firewall (Vista and router) but no luck.

    Any ideas would be very appreciated and if I find through other means, I'll post back with the result. If the answer is already out there, please apologize for being too stupid to locate and beg your patience.

    Thank you very much.

    Hello

    It is typical for support persons. All of them are trying to refer clients and through them. In my opinion Microsoft s reaction is strange to me. They designed the operating system and they should be responsible for the feature.

    I have the Satellite A200 and Satellite P200D and I use Windows Mail on two of them successfully. My laptop is connected to the WIFI router and router directly to the phone line. To be honest, I have configured Windows Mail as you and all of the work are made in a few minutes.

    It is not easy to tell where the problem may be, but I think that there is a problem with some settings of your laptop. Some of them block it somehow. To compare your, with friends laptop is also not the best because it can have completely different OS settings (antivir application, the settings of the firewall).

    Try turning off all the features that can block Windows hotmail to see if there is some difference.

  • event based sampling and exit

    Hello

    I have an application where I want to taste at the entrance of HAVE and deliver the output of AO based on the level of a meter. The meter measures the angle of a circular movement. When the angle changes at some levels, for example every 30 degrees, we want to take the extent of AI and deliver at the exit of the AO. Could someone tell me how to make this application? Thank you!


  • How certain actions between received the event and related events

    Hi all!
    Sorry my bad English :(

    I want to review the event data (to compare with the form of java method courses) after the event received and match, but before he bound.
    How could I do?

    Have you checked RCD_VALUE?

    You have Network KEY and you can extract the data from table RCD with this NCE KEY.

    ignoreEvent will not work in your case because it is not a custom connector.

  • last update received Recon event

    When the updated recon event received will be called.
    in the target or reliable source?

    Are you running recon trust or recon target?

    What are your rules of reconciliation?

    Thank you
    Suren

  • Catch the event CLOSE LabWindows/CVI

    In my LabWindows UI, the user can right-click the X in the upper corner to exit the application.

    I want to intercept this message to do different things before he gets to the TestStand engine.

    I tried to use InstallWinMsgCallback for a WM_QUIT and WM_CLOSE, but it is not called.

    Thank you

    Ronnie

    OK - I thought about it - it's the EVENT_CLOSE generated by the MainPanelCallback.

  • At the start of Vista (32) I receive an event ID 7024 error in event compared to KTmRm Viewer.

    The event viewer shows "The KtmRm for Distributed Transaction Coordinator service ended with an error specific to the service of 2147942438 (0 x 80070026).

    When I check "application of sc KtmRm" it shows an error of 2147024858 code (0 x 80070026).  How to solve?

    Is KtmRm service subset of service "Distributed Transaction Coordinator"?

    The "Distributed Transaction Coordinator" service is set to "Automatic (delayed start)" instead of "manual"?

    Thank you!

    Hi BigBadBob33,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the below link:

    http://social.technet.Microsoft.com/forums/en-us/category/windowsvistaitpro

  • EventListener never receive an event

    I have an application that consists of multiple mxml files.  In one file, I have a comboBox that has an event changes, as indicated below:

    < mx:ComboBox id = "comboBoxProperties".

    dataProvider = "{gXMLCollectionOfProperties}".
    labelField = 'text' labelFunction = "getLabelProperty."
    change = "selectProperty (event)."

    / >

    private void selectProperty (event: Event): void
    {
    dispatchEvent (new Event (eventPropertySelect.PROPERTY_SELECT, event.target.selectedLabel));
    trace ("you selected:"+ event.target.selectedLabel ");
    }

    In another mxml file, I have an event listener to intercept the event sent earlier.  For some reason any the function in my listener events never get the event passed to it.  Anyone can see what I'm missing here?

    < mx:VBox
    ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "
    Width = "100%" height = "100%".
    creationComplete = "onComplete () '"

    >

    Mx.events import. *;
    import com.lms.portal.events.eventPropertySelect;

    public function onComplete (): void
    {
    this.addEventListener (eventPropertySelect.PROPERTY_SELECT, updateDataGrid);
    }

    Here is the code eventPropertySelect.as

    package com.lms.portal.events
    {
    import flash.events.Event;

    public class eventPropertySelect extends event
    {
    public static const PROPERTY_SELECT: String = "Proprieteselectionnez";

    public var propertyNumber: String = ";

    public void eventPropertySelect (type: String, propertyNumber: String = ", bubbles: Boolean = true, cancelable: Boolean = false)
    {
    Super (type, bubbles, cancelable);
    this.propertyNumber = propertyNumber;
    }

    }
    }

    You can add the event to the systemManager listener, if it is not recommended, it should work:

    systemManager.addEventListener (eventPropertySelect.PROPERTY_SELECT, updateDataGrid);

    When send you the event, are the second must be true, as in the definition of a default constructor for the class of events:

    public void event (type: String, bubbles: Boolean = false, cancelable: Boolean = false)

    So for you:

    dispatchEvent (new Event (eventPropertySelect.PROPERTY_SELECT, event.target.selectedLabel), true);

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Flex / development, training, AIR and Support Services

Maybe you are looking for

  • Search sms

    Is it possible for me to do a word search in my last text messages if I want to find something that was said in a past text message?

  • How to create a recovery disk using external hard drive?

    Is it possible to create the recovery media on an external hard drive instead of using a USB flash drive or an optical medium? I was making mistakes when creating the recovery on optical disc media. Thank you!

  • Update and get rid of the execution error

    When I turned on my laptop, I get the Visual C++ Library Run runtime error following: Macintoshëoperating. Orogram:C:\Program files... R6034 An application has made an attempt to load the C runtime incorrectly library. For more information, contact t

  • parsing xml in blackberry jde 5.0

    Hi, I was wondering if someone could help me to analyze an XML file from a server in the channels that I can use. I'm trying to access the data are under the "ResponseChoices" tag in the following fragment:

  • several paging files

    How to troubleshoot if several files for the exchange occurred in the machine virtual esx host o?