Structure of the event does not clear the queue after his release from the Subvi

OK I'm not sure if this is a stupid question or not...

I was trying just a few tips and stumbeled on this problem...

So I created a sample (not exactly)

In qqq_Main.vi just press PressMe

(it opens a Subvi qqq.vi)

There are two buttons to stop "Alt1" and "pylone2".

To close the Sub - VI press either on "pylone2".

or press "Alt1", then "pylone2".

with the latter method of the value of closing change pylone2 is registered outside the while loop and after the closure of the Subvi should not it be erased? (Or should manually clear us it?)

For this reason not clear, the second time I press 'PressMe' change the value of pylone2 even goes off before you press anything

I can't look at your code at the moment, but according to your description, it seems that the system works as expected. I guess you do a completely static record of events (open the event configuration dialog box and select the controls and event).

The first thing to clarify is your use of the term "registered". In this case, it's a problem, because the registration in the context of the protests means asking to receive the event when it happens.

Now that you know it's important to understand where the recording is happening, because that's what determines which events are stored in the queue. When you use this type of static record, registration happens from the VI the event structure is in run mode (Note: this does not mean that the VI is actually running, but just that it's the of running or reserved for the race) and the cancellation of registration only happens when the VI mode of execution. Who is right for which you get the events in the queue of the previous run of the VI - the VI is still in run mode, then the event is added to the queue and still waiting in the queue until the structure of the event to run again.

You can work around something like that by switching to dynamic registration of events, where you can unsubscribe to empty the queue at the end of the VI, but requires more code. Also, in 2013 LV there are a few features added to events that could allow to do this statically (I don't study all the additions, so I don't know if this is possible for static recording).

There is a good presentation on the events of NIWeek 2013 by Jack Dunaway. You can find details of how to download the video here - http://lavag.org/topic/16091-ni-week-2012-videos/

Tags: NI Software

Similar Questions

  • Computer does not have a password after waking up from his sleep.

    To start, I have a laptop Windows 8. I have my laptop set whenever I close the lid, it is supposed to go to mode "Eve" and require a password when I lift up. It does not require a password when I lift the lid and I know for a fact that I have a password set for the characters, fingerprints and photograph, and none of them appear. Simply open up like nothing ever happened. Maybe it's because he's going to do nothing when I close the lid, even if I put it in sleep mode. I don't know if I have accidentally deleted a file or changed a setting, or if I have a virus, but it continues to be.

    It's okay, I discovered that it was a virus or something, but now it is deleted.

  • Does not clear the print queue of the printer

    I use Peachtree Accounting to generate cheques to pay for my clients and my Versacheck print the checks on blank check stock. From the windows of the last update of the queue of the Versacheck printer does not clear after that the checks are printed. Therefore, I can't print checks for another company without having to restart my PC to delete the printer. This becomes a huge problem and I was not able to get any assistance on site. I'd appreciate any help.

    Q: did you just install IE9?
    A: no I have not.

    Unless you can answer the question from my colleague TaurArian, you will find appropriate in this forum-online http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware support

  • Cancel the registration of events does not not to change value

    Cancel the registration of events does not seem to prevent the change in value of firing event.

    I've attached an example of change that disables the mouse enter and exit events to include the value Change event.

    Document ID 4ATCBP1U

    http://digital.NI.com/public.nsf/allkb/E3E5E1B3021D8EFA8625730A0062F52D

    You use the standard event, not the dynamic one (note that the Boolean value does not have the <> ).

  • APEX 5. Dynamic action on the CHANGE event does not work after applying the filter on IR.

    APEX 5.

    Dynamic action for the CHANGE event does not work after applying the filter on IR.

    Event: Change, selection Type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry

    Real action

    Selection type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry, Action: run the Javascript Code

    Is TI WHEREAS behavior?

    I know, I can work around this problem by using the Refresh event and javascript, but I prefer DA and if possible Change event.

    Concerning

    mdyla

    mdyla wrote:

    It is, how to force them reallocate dynamic Action in the event of CHANGE of the input elements after refresh of IR region.

    Set the dynamic scope of the event action to Dynamics.

  • iTunes does not recognize my devices after the last update

    iTunes does not recognize my devices after the last update. Has crossed all suggestions from the support page (uninstalling/reinstalling driver USB, remove Lockdown folder and so on) but still no joy. iPhone continues to ask if I want to trust to the connected computer, responding 'Yes' has no effect.

    Help, please

    Thank you

    Cyana

    Found this solution here:

    Re: Does not recognize devices in iTunes on PC

    works very well

  • Firefox 4 does not save form data after sending form and pressing the previous button

    Firefox 4 does not save form data after sending form and pressing the back button... It's very annoying that it erases all data. It worked fine on FF3.

    See:

    • Firefox or tools > Options > privacy > History: "don't forget to search and form history."
  • I spilled coffee on my Macbook Air and does not illuminate.  How to transfer files from the external hard drive to backup my new Macbook Air?

    I spilled coffee on my Macbook Air and does not illuminate.  How to transfer files from the external hard drive to backup my new Macbook Air?

    If you had a Time Machine backup, you can use the Migration Wizard and connect your new Mac on the external drive which has the Time Machine backup: move your content to a new Mac - Apple Support

  • buy an iphone 5s by amazon and I came with iCloud blocked an account... {I called the seller and does not that I do that I'm from Venezuela please need your help}

    buy an iphone 5s by amazon and I came with iCloud blocked an account... I called the seller and does not that I do that I'm from Venezuela please need your help

    No one here can help you. The device is locked activation. Since you have made the purchase by Amazon, you can check with them to see if they will stand behind it. No one on the forum, or Apple can help you remove the lock. Only the previous owner can do this. I suggest that you demand a refund, so let's start a claim with Amazon about this dealer.

  • Windows XP does not start. Can I boot Windows from a disk so that I can recover the data?

    Windows XP does not start. Can I boot Windows from a disk so that I can recover the data? This should be a CD because it doesn't have a floppy disk on my laptop drive. It is maybe that my hard drive has begun to fail and therefore cannot locate XP startup files. I can not start using one of the other methods of starting for example. Safe mode. If I can recover the data, I can then reload Windows and check the surface of the disc etc etc. Thank you all for your comments. Steve

    Lately, I'm leaning toward the Hiren's BootCD you can download here:

    http://www.hirensbootcd.NET/

    On the left, click on download, scroll down, choose the most recent version

    The download link is a little hard to see.  It is at the bottom of the page, above the drop for older versions and looks like this (click this component to download the ZIP file):

    Direct HTTP mirror + Torrent, Torrent Magnet

    Click the "Live HTTP Mirror" link to start the download and save the ZIP file on your desktop of somewhere that you can remember.

    The ZIP file is large, so the download will take probably some time to complete.  Then unzip the download to extract theHirens.BootCD.ISO file that will be used to create your new bootable CD.

    Create a bootable CD. ISO file is not the same as simply copying the. File ISO onto a blank CD.  You must use software that includes how to burn a. ISO to a CD to create a bootable CD.

    File ZIP the Hiren is the file BurnToCD.cmd that you can double-click to launch it.  The BurnToCD.cmd will use the file BurnCDCC.exe to burn the. ISO file onto a blank CD using your existing CD burner.  You can also use your own burning software as long as your software is able to create a bootable CD. ISO file.  More modern burning programs can create a bootable CD. ISO image.  Create a CD from an ISO image bootable is not the same as just the file on a CD burning.

    If you need a simple and CD burning, this is a free software popular software:

    http://www.ImgBurn.com/

    Here are some instructions for ImgBurn:

    http://Forum.ImgBurn.com/index.php?showtopic=61

    It would be a good idea to test your new bootable CD on a computer running.

    You may need to adjust the computer BIOS settings to use the CD-ROM drive as the first device to boot instead of the hard drive.
    These adjustments are made before Windows tries to load.  If you miss it, you will need to restart the system again.

    When starting on the Hiren's CD, you will see a menu of options.  Choose Mini XP.

    It will appear while Windows is loading and you will be presented with a desktop computer that has the look and feel of the interface of Windows Explorer, you are already accustomed to using.  You will feel at home.

    Using the Mini XP, you can access the Internet, maneuver around your system, copy files, replace the files, run the scans for malware, etc.  There are dozens of free and useful tools included in the CD that can be used to repair your system, or copy files to another device such as a USB device or an external drive if drop in trying to repair your system.

    If you want to see if you can fix your system, describe what is happening when you try to start and to answer these questions:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    Describe your current antivirus and software anti malware situation: McAfee, Norton, Spybot, AVG, Avira!, Defender, ZoneAlarm, PC Tools, MSE, Comodo, etc..

    You have a true bootable XP installation CD (it is not the same as any recovery CD provided with your system)?

  • When I start most of the programs that is lock and on the taskbar it says program does not. How can I stop this from happening?

    When I start most of the programs that is lock and on the taskbar it says program does not.  How can I stop this from happening?

    Original title: Windows Explorer

    It is a good number with a boot drive (C:\ drive) that is cruelly of free space.

    A healthy walk NEEDS 20% free space at least to work properly and prevent your suspension system.

    Several causes are possible, but check your free space. Upgrade your hard drive if necessary.

    More RAM might help too.

    Check these before you attempt to update or install anything more.

  • The editor Lite Cinema 4 d does not open of in After Effects.

    The editor Lite Cinema 4 d does not open of in After Effects. I am able to create new files of MAXON Cinema 4 d from the file > new menu and comes from the file > export menu. I am able to use cinema 4 d effect on a layer to display a file 'c4d' next to a composition. But when I click on Edition > edit the Original option of a '.cd4' drop my mouse icon changes to "pending" for a second, as if he's going to open something, but then nothing happens.

    I'll double check the path of the cinema 4 d application Lite.
    I temporarily increased for 'control' permissions on the following folders

    • Program files (x 86) \Adobe
    • \Users\[user]\AppData\Roaming\Adobe
    • \Users\[user]\Documents\Adobe

    I am running:
    After Effects CC 13.7.1.6.
    Windows 10 PC
    Processor is Intel i7 - 4770 k @ 3.50 GHz
    16 GB OF RAM
    GeForce GTX 970

    I found a solution for anyone to live something similar: launch After Effects in as long as administrator and then C4D Lite will launch AE Edit--> Edit Original

  • I'm unable to install Adobe software licenses after the connection. It is said that it does not recognize my username after login.

    I'm unable to install Adobe software licenses after the connection. It is said that it does not recognize my username after login.

    Yes.  and?

  • My Photoshop CC 2015 does not work correctly. After I edited some photos and I want to meet one of them, the program Terminates? After reboot, the program charges all files again...

    My Photoshop CC 2015 does not work correctly. After I edited some photos and I want to meet one of them, the program Terminates? After reboot, the program charges all files again...

    Hello

    Make sure that Photoshop is closed.

    1 - go to this place C:\Users\user name\AppData\Roaming\Adobe\Adobe 2015\AutoRecover CC in Photoshop

    You will be able to see all the. PSD file that opens automatically when Photoshop is open, delete or move all the files in this folder.

    2 - restart Photoshop and go to edit > preferences > performance UN check the gpu processor use and restart Photoshop.

    It should be working fine now.

    Thank you

  • value chain control event does not trigger change

    Hello

    I am trying to scan a barcode with a barcode usb HID scanner. I use a structure of the event to detect the change in the value of a control of the chain. When I scan the barcode, the chain control updates on the front panel, but the event does not fire until I left on my mouse on the front panel. can someone help? See attached vi

    Your barcodes are probably fixed length. When you get an event, check the length. If it corresponds to the length of the barcode, then process the data, otherwise wait for more characters.  This can be treated very quickly in the case of the event.

    Lynn

Maybe you are looking for

  • failure ID MC2MBX-66879-x-MFKt01-60SA03

    In my view, it is a hard drive problem, but I'm not positive. I turn on the computer and it starts and Windows attempts even to start, but after a few minutes, a blue screen appears, but not long enough for me to read what is on it, and then the comp

  • How to read the larger than messages of 8 bytes from a NMEA 2000 using XNET bus?

    I currently read data from the GPS19x NMEA 2000 Garmin with CAN connection using a NI 9862 in 9178 NI cDAQ chassis.  I have the dbc file and have generated a session with some messages of interest groups.  However, only with not more than 8 bytes (DL

  • Audio beats cannot find the .startup file

    Whenever I try to use the Panel Audio Beats on my Pavillion DV6-6102AX it comes up with the error "cannot find the .startup file! I use Windows 7 64 bit and I also tried to reinstall the audio driver IDT, but that did not solve my problem.

  • on hp deskjet 3512

    Ive tried to scan from my deskjet 3512 to my computer Ive tried to connect the printer deskjet 3512 to my WYFY but it dosnt work so the only way I can print is by using the UBS cling but it wont scan it says it my sidd on my wyfy is wrong & even tho

  • iOS App rejection - In - App Purchase restore presentation

    I recently submitted my application to Apple for approval and that it was rejected, this time because the binary allows a feature restore "already purchased In - App Purchase products"; However, in iTunes Connect I have something setup in the In - Ap