Problem with the event

Hello
I am facing a problem with the events. Please Ref. Event.zip the attachment.

AEv.vi is a LV2G used for the reading/Generate/Init/destroy the event. Test2.VI is a main vi (we must run this vi)

The AEv.vi Init action must be done in the other vi (other than the Test2.vi:- but for the objective test I've initialized in Test2.vi only).

Test2.VI is used for genetate event.

I could have called statically AEv.vi inside the Test2.vi to generate an event... but the path that comes is decided when running... (I have many live similar to AEv.vi...) .. who decided at run time...)

The problem:

When I run Test2.vi, it gives me the error code 1 (try running test2.VI... it gives the dialogue on the occurrence of the error)...

Can someone fix this?

Thank you!

I modified your screws to do what I think you want.  The way you did the user events will not work.  I added a line to send orders to Ev.vi

Tags: NI Software

Similar Questions

  • Problem with the event and the case of Structure

    Hi all,

    I get the problem in my program, I'm using the two structure one is the same and other structure box.

    In the structure of the case, I had the button as an entry to the SPL and the case structure as the output of the structure of the case.

    And in the same, then I had the two text box (num control A and B) in that I had put the event changes its value. Then, even I put the value has

    num or num B control control control this corrosponding num value will save seeing num C. Now the problem is when I click on

    the theLEB button does not blink until or if you don't put the value of one of the corrosponding num control.i didn't post my file in version 8.5 and 8.6 Please find tha.

    Hello

    It should work like that or I misunderstood what you want to do.

    If Boolean is true, boolean 2 is true, at the same time, you can change the value of A so C or B then C.

    See attachment

  • Problem with the events and Movieclips

    Hi all.

    I got myself in a situation where everything was perfect with zoom events, keyboard events and drag-, click of the mouse.

    The project is:

    A movieclip with image sequence: original background.

    And other clips: also images sequence (png)

    They were all separate specific mouse events and all the zoom and key events.

    Now wen I click on the button with the movieclip to function, only the png image sequence is turning and the main mc is not.

    What should I do to rotate active both regardless of the mcs and main mc also png with these.

    Help, please.

    Thank you in advance.

    use:

    var mcA:Array = [garage_horizon_mc, garage_moss_mc, garage_ocean_mc, gutter_ocean_mc, gutter_horizon_mc, Audrey r_moss_mc, main_mc];

    for (var i: int = 0; i<>

    mcA [i] .addEventListener (MouseEvent.CLICK, garageF);

    }

    function garageF(e:MouseEvent):void {}

    for (var i: int = 0; i<>

    mcA [i] .visible = false;

    }

    var mc:MovieClip = MovieClip (e.currentTarget);

    mc.gotoAndStop (rotationframe);

    MC. Visible = true;

    whateverF (mc);

    }

    function whateverF(rotater_gah:MovieClip):void {}

    rotater_gah.offsetFrame_gah = rotater_gah.currentFrame;

    rotater_gah.offsetX_gah = 0;

    rotater_gah.percent_gah = 0;

    rotater_gah.addEventListener (MouseEvent.MOUSE_DOWN, startDragging_gah);

    rotater_gah.addEventListener (MouseEvent.MOUSE_UP, stopDragging_gah);

    }

    function startDragging_gah(e:MouseEvent):void {}

    e.currentTarget.addEventListener (MouseEvent.MOUSE_MOVE, drag_gah);

    e.currentTarget.offsetX_gah = e.target.mouseX;

    }

    function stopDragging_gah(e:MouseEvent):void {}

    e.currentTarget.removeEventListener (MouseEvent.MOUSE_MOVE, drag_gah);

    e.currentTarget.offsetFrame_gah = rotater_gah.currentFrame;

    }

    function drag_gah(e:MouseEvent):void {}

    e.currentTarget.percent_gah = (e.target.mouseX - e.currentTarget.offsetX_gah)/e.currentTarget.width;)

    var frame_gah:int = Math.round(e.currentTarget.percent_gah*e.currentTarget.totalFrames) + e.currentTarget.offsetFrame_gah + 1;

    While {(frame_gah>e.currentTarget.totalFrames)}

    frame_gah = e.currentTarget.totalFrames;

    }

    While (frame_gah<=0)>

    frame_gah += e.currentTarget.totalFrames;

    }

    e.currentTarget.gotoAndStop (frame_gah);

    }

  • Small problem with the events of the listener

    I have a small interface with 5 radio buttons and a buttonfield and when i click buttonfield I create an event. all this works fine, but when I want to go back to the previous page I see pop up with 3 had to 'save, ignore, reject' and when I click on one of them I create a duplicate of the trial before.

    How can I go to the previous page without showing the pop-up with 3 coiches and without creating duplicate event?

    It's the listener code

    FieldChangeListener listener = new FieldChangeListener() {}
          
    ' Public Sub fieldChanged (field field, int context) {}
     
    {if (delivery. IsSelected())}
                               
    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                     
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                     
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Delivered");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");
                       
    } else {}
    {if (GuastoMeccanico.IsSelected ())}

    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                         
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                         
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Guasto Meccanico");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");

    } else {}
    {if (IncidenteStradale.IsSelected ())}

    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                          
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                          
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Incident Stradale");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");

    } else {}
    {if (LavoriInCorso.IsSelected ())}
                             
    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                           
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                           
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Works in Corso");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");
    } else {}
    {if (SenzaConsegna.IsSelected ())}
                                          
    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                            
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                            
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Not delivered");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");

    } else {}
    Dialog.Inform ("Nessun elemento indication!");
    }
    }
    }
    }
    }
    }
    };

    Added on-screen, this code will replace the popup screen.

    I don't understand the second part of the question, that is to say the second invent.  Add this code and make sure that the popup is removed and then tell us if all your problems are solved.

    Also search the doc for this method in the object Screen to understand how it works.

    /*
    * Override to ignore the save/discard/Cancel dialog box
    */
    public boolean onSavePrompt() {}
    Returns true;
    }

  • Since 10.11 I have not been able to download via the usb port of my Davis Vantage weather station. No solution of tech Davis on the issue even with the new recorder of events in the resort. Is there a problem with the usb?

    Since 10.11 I have not been able to download via the usb port of my Davis Vantage weather station. No solution of tech Davis on the issue even with the new recorder of events in the resort. Is there a problem with the usb?

    What Mac? (details)

  • Problem with the change in value of listbox event

    Hello

    I have a problem with the help of Listbox value change event. The code that I have attached is a simplified version of the largest program, but the problem is the same. One of the loops of Nonna is responsible for handlig occurring events ant the other is responsible for the execution of the program. In the project of oryginal I use a listbox control to determine which plots graphic display of a waveform is visible (first position of the listbox-> only plot first visible etc.). In the attached vi, I just show the current value of the listbox control. The problem is the event runs only once and then the program crashes. I want to be able to change the value of the listbox work both at idle and in State of a program, but when I put the structure of the event in both States, he does not. I'd be very grateful if someone smarter than me could tell me where I made my mistake. I want my program to be able to manage the keys and listbox events in States (slow down and knit) program.

    You have two structures of event in two cases different from the structure of the case, and both are tuned to listbox events has changed. Because only once can be triggered at any time, the VI crashes (lock events the front panel (default) until the event can complement).

    You must use a unique event structure managing all events.

    The overall program architecture looks like inside-out for me.

    For the buttosn, you must use action lock (switch not release!) and use the value changed events.

  • Strange problem with the keyboard event listener

    I have a full screen touch app. To close the application, I set an event listener on keyboard for the key "0". I don't want the press user due to some restrictions Alt + F4 key combination. Problems begin when the application loses focus. Here's the code;

    protected function onComplete(event:FlexEvent):void
    {

    this.setFocus ();
    this.addEventListener (KeyboardEvent.KEY_DOWN, trapKeys, true, 0, true);

    }

    private void trapKeys(e:KeyboardEvent):void {}

    If (e.keyCode == 96) {}
    This.Close ();
    }

    Else if (e.keyCode == 48) {}
    This.Close ();
    }

    }

    When the user change the screen to a different with Alt + TAB application, or any other combination of keys flex app loses focus and does not work when he turns back to my app "0". How can I solve this problem?

    Thanks in advance.

    Hi, Ahmed.

    I have absolutely no problem with the solution you are trying to set up - you use mode full-screen interactive mode of keyboard?

    Please consider:

    on full add keyboard listener

    protected function applicationCompleteHandler(event:FlexEvent):void

    {

    this.stage.addEventListener (KeyboardEvent.KEY_DOWN, trapKeys);

    };

    //

    protected function applicationActivateHandler(event:AIREvent):void

    {

    If (this.stage)

    {

    switch the State to display full-screen when activated

    If (this.stage.displayState! = StageDisplayState.FULL_SCREEN_INTERACTIVE)

    {

    this.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

    };

    };

    };

    //

    private var exitHandled:Boolean = false;

    on NUMBER_0 | NUMPAD_0 exit-close

    protected function trapKeys(event:KeyboardEvent):void

    {

    If ((event.keyCode is Keyboard.NUMBER_0

    || event.keyCode is Keyboard.NUMPAD_0)

    (& this.exitHandled == false)

    {

    exitHandled = true;

    this.stage.removeEventListener (KeyboardEvent.KEY_DOWN, trapKeys);

    This.Close ();

    };

    }

    (Note: applicaton of the events 'applicatonComplete' and "applicationActivate" are routed to over managers)

    Kind regards

    Peter

  • 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

  • Problem with the onChange event

    Hello

    I am currently facing a problem with the onChange event when you use a datefield entry type.
    for example
    < cfinput type = "datefield" name = "date_txt" width = "175" mask = onFocus = "date_txt.disabledDays" dd/mm/yyyy"= [0.6]; "tabindex ="1"style =" "text-align: left" onChange = "checkDate (); ">

    And then, when I alert the selected date in checkDate function, I still get the old figure.
    for example
    public function checkDate (): Void {}
    Alert ("Date:" + date_txt.text);
    }

    For example if the date displayed is 05/05/2008 and I select another day (05/02/2008), then when the alert box appears, it still shows 2008-05-05.

    Any idea on how to solve this problem?

    Is this a bug with Flash Forms?

    Thank you and best regards,
    Yogesh Mahadnac

    I suppose that the function onchange occurs before the value of text is actually defined.
    Use the correct value
    Alert ("Date:" + date_txt.selectedDate);

    Ken

  • I ran CHKDSK, the report tells me I have problems with the file system, usn journal. ___

    I ran CHKDSK, the report tells me that I have problems with the sys file. I ran CHKDSK/F, it is said it fixed the problem but I ran CHKDSK again and it shows that the same listed the issues.

    Describe how you run chkdsk.

    That is what the report said: you have problems with the sys file?

    CHKDSK examines the disk space and use of the disk for the table of allocation of files (FAT) and NTFS file systems. CHKDSK provides information specific to each file system in a situation report. The report shows the errors found in the file system. If you run chkdsk without the /f on an active partition command line option, it can report errors because it cannot lock the drive. You should use chkdsk occasionally on each disk to check for errors.

    If you run chkdsk from a command prompt while Windows is running, it can report errors or it may not report errors - and it may report different
    Errors each time you run.  If this is the case, it could just be the way you run chkdsk.

    Here's how Microsoft explains this observation:

    "... CHKDSK may report that the disc is damaged, even when there is no
    current real corruption. This can happen if NTFS happens to modify
    areas of the disc on behalf of some programme activities that CHKDSK is
    review at the same time. To check a volume correctly, the volume
    must be in a static state, and the only way to ensure that the State is
    to lock the volume. CHKDSK only locks the volume when /F or/r (which
    involves the 'F') is specified. For example, you may need to run CHKDSK more than
    time so that it can complete all the steps in read-only mode. »

    If you run chkdsk from a command prompt, you are not the necessary static state and you can encounter errors "when no real corruption is present. This is how it works when you use this way.  Any changes made to a NTFS file system modifies the USN Journal.  If you are not in a static state, your USN change Journal probably all the time, so what you see (says something like that) can be quite normal.

    Two ways to ensure that you are in a static state is to run chkdsk from the Recovery Console or to schedule a chkdsk to run the next time that the system
    Restart by answering Yes to the question:

    Would you want to check this volume to be the next time the system restarts?

    If chkdsk reports errors when running in a static state, the errors should be investigated, resolved or explained.  This may take several
    chkdsk runs all of the issues and some problems cannot be resolved by chkdsk.

    If chkdsk runs the next time the system is restarted, the activity and the result will be displayed in the application event log.  Look in the Application log for
    Winlogon events and a source have the date and the duration nearby time chkdsk.

    It is in fact a chkdsk additional reading if you want to learn about it and it will explain everything you see and why your expectations exceed reality.

    Please vote my posts as helpful so I can get a lot of points. I'm saving for a pony!

  • Problems with the display settings in Windows XP on my acer aspire netbook

    Lack of custody of my office and the bottom was always blue. When for example I opened the menu options for DIVX it's all close together and the window is way to big for the screen I can't see all of the screen. Also problems with the connection to my netbook to the TV. It should never be on the screen and I can't understand how difficulty. Any suggestions

    Hi CharlesHefty,

    1. do you get an error message or error code?

    Check the event viewer for the newspapers of the related events that could help us solve the problems:

    Procedure to view and manage event logs in Event Viewer in Windows XP

    I suggest you try the steps from the following links in the article and see if it helps:

    How to solve problems of hardware and software drivers Windows XP

    How to configure and use multiple monitors in Windows XP

    Overview of multiple monitors

    I hope this helps.

  • Everyone has a problem with the Windows Explorer permanently closing?

    * Original title: Windows Explorer

    Everyone knows about a problem with the Windows Explorer (not Internet Explorer) without interruption closing? It is not fair on 1 computer, I have 2 desktops and 2 laptops, and it does on 4 of them. They are all running Windows 7, (1 to the publishing house, 1A Ultimate and 2 Professional).  I can right click on something, even on the desktop, and most of the time, I get a message that Windows Explorer has stopped and the ability to close or wait for it to respond. I have normally not 30 minutes or more to wait so that he could respond and if I close it, then it does nothing. I've done all updates are recommended for all my computers, I did the defragmentation, disk check, etc and it still continues. I need help, please. I am so sick and tired of what I am about to go to a Mac and I don't like Mac computers, but said there is much less of a problem.

    You have loaded all 3rd party "Add-ons" in common to all PC? For example (this is an old post Vista but gives the general idea) - http://answers.microsoft.com/en-us/windows/forum/windows_vista-desktop/windows-explorer-crashes-on-right-click/719385e6-fff5-498d-807c-103bf0344f44?page=1&tm=1423414000974 and see Ramesh respond.

    If not, is there clues in the log of events (errors) in common on all computers where the crash?

  • Problems with the DVD on Pavilion dv6-2010sa

    HP Pavilion dv6-2010sa laptop computer (under Windows 7 x 64), I bought less than a week ago.

    I started the disk recovery software to back up my OS in the event of future disasters.

    I used a DVD + disc, so it would take 3 discs to do the recovery disks.

    First DVD completed successfully. Software asked me to enter the disk 2.

    This is where I started to have problems.

    Drive recovery software couldn't recognize my blank dvd +.

    The drive makes a lot of noise, but then stopped making noise.

    I tried a few other DVDs +, but to no avail.

    I rebooted the computer laptop and tried but same problem.

    So I tried to play a dvd movie to see if it was the disk recovery software or the dvd player.

    He would not play a dvd movie.

    I also tried to play an audio CD but the same problem.

    The drive icon appears in Windows Explorer, but does not display any info (or open the CD / DVD) when I have a CD or a DVD in there.

    So it seems to be a problem with the DVD-> grateful not any CD / DVD

    If someone can advise?

    PS. I searched the driver DVD (so I could Reinstall driver) but the HP Web site does not contain the driver for 2010sa (DVD software only)

    Thanks in advance

    Gary

    Problem solved.

    Uninstall the device dvd player:

    -Device Manager > do a right-click post dvd/cd player > uninstall the device

    Restart the laptop and OS will reinstall the driver and the DVD/CD drive should start working again (well this is what has happened to me)

  • Problems with the propertie recognized in WCS

    Hello

    I have a problem with the ACK propertie in the WCS. I check a logg entry in the logg with the receipt, within a few seconds/minutes/hours this alarm disappear, and then if this alarm appears again, this message show marked ACK.

    Should not the message again without significant acknowledgement? What is the problem?

    Thanks in advance

    Hello

    According to also which is indicated in the official guides, this seems to be the expected behavior:

    '' You acknowledge receipt of the alarm to prevent it from appearing in the alarm summary page. The alarm remains in WCS and you can search all the alarms that are paid using the alarm search. »

    http://www.Cisco.com/en/us/docs/wireless/WCS/7.0/Configuration/Guide/7_0event.html#wp1229996

    So, you can accuse reception that specific alarm once do not show on the alarm page, only for this event. If however the alarm goes off again, the new instance will appear and let you know that you already recognize a similar instance.

    Hope that clarifies the behavior,

    Fede

    --

    If this answers your question please mark the question as "answered" and write it down, so other users can easily find it.

  • I have a problem with the background update

    I pushed on Adobe Acrobat Reader DC via MSI for all my workstations that are Windows 7 machines.  The installation went without any problems, but I didn't know that the program updates automatically and it is in the diary of the events of these errors.  Product: Adobe Acrobat Reader DC - update '{AC76BA86-7AD7-0000-2550-AC0F084E7200}' could not be installed. Error code 1625. Windows Installer can create logs to help solve the problems with the installation of software packages.  Is there a way I can either A) disable these automatic updates or B) force these updates to cross even without administrator privileges?

    Hi orangejake1990,

    Disable you updates in Acrobat Reader ms, please refer to this link Windows updates.

    Otherwise, you can manually download the updates Adobe - Adobe Reader: for Windows & push.

    Kind regards

    Nicos

Maybe you are looking for