How can I stop an event structure detecting keydown events until the vi has initialised?

My application has a sequence structure with 3 frames. First one initialises some front pane objects and controls, the second communicates with an external device via a serial port to a start condition and waits for this to complete by polling the device. The third contains the event structure which reads the device when the spacebar is pressed. The problem is that any pressing of the spacebar when the application is in the first 2 frames of the secquence structure is stored and executed as soon as the third frame becomes active. I have tried using dynamic Event registration but to no avail. Am I doing something wrong? can the keyboard be disabled until the second frame complete
s?

I usually avoid sequence structures in favor of driving execution order through data dependency (error clusters are great for that). However, since you've already got one, you coul try to add another frame right before your event structure. In that frame, place another event structure that can trap that stray keyboard event. Put a tiny timeout value on it so it doesn't appear to "pause" your VI's response. That event structure will catch any bogus key presses that happen during initialization.
Having said all that, I still think the behavior is not proper. The event should not be handled if it happened before your VI gets to the event structure. For now, you can try that workaround.
Daniel L. Press
PrimeTest Corp.
www.primetest.com

Similar Messages

  • I have an Iphone 4S, when I am on the phone and I get a new message my phone vibrates and rings. How can I stop this from happening when I am on the phone

    I have an Iphone $S, when I am on the phone and I get a new message my phone vibrates and rings, How can I stop this from happneing when I am on the phone

    Flip the Ring/Silent switch. Make sure Vibrate when silent is off in Settings>Sound.

  • Question when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • How can i turn my iphone 4s into an ipod touch, the phone has been deactivated and has been recovered, i also do not have a sim card for the phone... can anyone help me.

    How can i turn my iphone 4s into an ipod touch, the phone has been deactivated and has been recovered, i also do not have a sim card for the phone... can anyone help me.

    http://support.apple.com/kb/ht3406
    Apple recommended process

  • How can I stop my computer from logging off automatically when the computer is dormant for a few minutes?

    I must have changed a setting by mistake.
    Now, after a period of dormancy, my computer shuts down all apps and logs off.
    How can I stop it from doing that?
    I've tried to retrace any recent steps in the Preferences, but to no avail.
    Steve

    Niel, thanks for putting me on the right track.  I had to go to the "advanced" section of the Security & Privacy pane of System Preferences to find that option.  I had almost given up searching the 4 tabs on the main page in vain.
    But I found it and it's turned off
    Thanks again
    Steve

  • How can I stop coalescing of mouse move/drag events in jdk1.6 ?

    Hello all,
    My application uses a [pen-based tablet|http://en.wikipedia.org/wiki/Graphics_tablet] to draw lines/curves. But the problem is: when I run my application, due to java’s default behavior of discarding the mouse events which occurs during the repaint call, the curves results in the set of joined straight lines.
    To overcome this problem, when searched over net, came across below link:
    [http://forums.sun.com/thread.jspa?messageID=10811388]
    I tried the option provided at the above URL i.e. overriding the below method of Component.java file:
    protected AWTEvent coalesceEvents(AWTEvent existingEvent,AWTEvent newEvent);
    But later found that, overriding this method worked fine for me for jdk1.5 but this solution did not work in case of jdk1.6. When reviewed the source of Component.java and EventQueue.java files in jdk1.6, found that this method is not having any implementation and simply returns “null” and the complete handling of coalescing of events occurs within EventQueue.java file’s local method which is mentioned below:
    private boolean coalesceEvent(AWTEvent e, int priority);
    As this method is part of EventQueue.java and also it is a private method, I am not finding any way to stop the coalescing of mouse move/drag events in jdk1.6.
    The main problem is that my application is purely based on jdk1.6 only.
    Can anybody help me out to solve this problem by providing any option of preventing the coalescing of mouse move/drag events in case of jdk1.6.
    Thank you.

    Look at the link I posted, you aren't double buffering correctly.
    I saw the other post you mistakenly made before you edited it. Not really a big deal, I was just wondering why you did that.

  • How can I stop my SSD from detecting my applications on my HDD?

    I just installed a SSD as my primary drive, and removed my optical bay and moved my HDD to that slot. I installed Yosemite on my SSD and everything is working fine, except that the Mac App store detects the applications on my HDD and keeps opening them from my HDD instead of letting me install them to my SSD. Yes, my SSD is set-up as the boot disk. If it helps, I just want to use my SSD for applications and my HDD for storing files.

    Disabling Spotlight causes it to be reindexed when you reboot to that OS (or kills searching in the other OS).
    Eject the second HD. You can setup an automator action or Applescript to do this on login.
    If you rarely need to use the second HD it is better to setup /etc/fstab to never mount the second HD on boot. You can still mount the disk manually via Disk Utility. Ask if you think this is something you want help to setup.

  • How can I STOP ical from deleting all my events after a month or so

    No matter how I set the preferences/settings it always keeps deleting all events after 30 to 40 days.
    I have gone into preferences and checked off the
    "DELETE EVENTS AFTER...
    and put 99 or 999 days and it doens make a difference
    If Ileave the box unchecked - it STILL doesn't make difference
    Anyone has a suggestion?
    as I keep loosing all the important info/phone numbers I enter.
    Thanks
    Bruno

    Bruno,
    Welcome to Apple Discussions.
    Are you using any sync software?
    The easiest thing to try is to refresh the the com.apple.iCal.plist file. You will find the com.apple.iCal.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder. Quit iCal, drag the com.apple.iCal.plist file to your Desktop, log out/in or restart, and make sure the deletion preference is not checked.
    ;~)

  • How can I stop my lock-in results from oscillating. The low pass filter is creating artificial noise

    I am using the lock in amplifier kit and sort of sending some of the parameters manually. I choose manually the low pass filter.
    Now I find strange behavior depending on the filter I choose. 
    The lock in results oscillates in time, the higher the dB roll off the longer it seems to take to stabilize. Also the frequency of the oscillations becomes lower. This I don't find too weird, the problem is that it just won't stop. 
    If I use a small time constant and there is no real change in my signal I can easily follow the shape of the the oscillations. 
    If I use a larte time constant it seems there is an average over the oscillation and then it looks as if it was noise. 
    All the time my signal has not changed one bit. 
    This is very anoying since it produces about 20-300microV of noise. (peak to peak amplitude of the oscillations) 
    So far I've gotten the best results with the IIR (5dig) with 40dB roll off and order 1
    Does anyone have an idea of what to do?

    Hi BlankaFlux,
    could you maybe provide us with a more specific example? What kinds of filters have you tried?
    For information on advanced digital filter use, please see the following pages:
    - Working with LabVIEW Filtering VIs and the LabVIEW Digital Filter Design Toolkit VIs
    - Digital Filter
    Maybe you could look into trying the NI LabVIEW Digital Filter Design Toolkit
    Happy holidays!
    Peter
    Peter A.
    Field Sales Engineer, NI Germany

  • How can I stop something printing if I don't know the source?

    MNy grandson set up my printer by mistake to print comics and puzzles 2x a day, and I need to know how to stop it, and don't know what site it's coming from.,

    Hi,
    Please use the following link (under "Manage Print Apps" to cancel/remove it:
      http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c02940901&cc=us&dlc=en&lc=en&product=5058336&tmp​...
    You may also get this:
    My Print Apps
    To view and manage print apps for your printer, use the display on the printer itself. This website cannot manage print apps for your printer. In this case, you have to cancel from your printer.
    Please also try this (if the above mothod did not help):
      http://h10025.www1.hp.com/ewfrf/wc/clc?tmp_showAll​=false&destPage=document&cc=us&dlc=en&docname=c031​...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Firefox seems to be my only browser that puts ads on my Facebook page. How can I stop this? I love Firefox but hate the ads and will use another browser until it's solved.

    Whenever I open Facebook through Firefox I get pop up ads and such. I do not seem to get this when using other browsers like Safari or IE. It's sooo annoying!!! I will use another browser until it's solved.

    Since you have encountered the problem at other sites, not just Firefox, I'd bet that it is an Internet Explorer problem, not the web sites. Actually, I am sure it is an IE problem.
    Try running Windows Update, perhaps there are some updates for Internet Explorer that might resolve the problem. If you don't know how to run Windows Update, use the Help on your system to look for information on Windows Update.
    If that does not help, use Google to search for information on IE9 locking up when downloading.
    Stan

  • How can I stop my iPhone 5 deleting e-mails from the server?

    I know this question has been asked before, and has been answered in respect of iPhone 4 models, but I don't seem to be able to find any answers for this problem with the iPhone 5.
    When I delete an e-mail from my iPhone, it means I can't access it from my laptop. It never appears on my laptop because it has been deleted altogether. That's not what I want! It means I have to keep e-mails I would otherwise delete from my iPhone simply because I want to read and/or retain them on my laptop.
    I only want to keep e-mails on my iPhone that I want on my iPhone and want to delete the rest, not altogether, but just from my iPhone. I often want to deal with an e-mail on my laptop even if I have deleted it from my iPhone. Hope that makes sense!
    Thanks for any help!

    That behavior is a function of the type of email service you are using which in your case must be IMAP. There is no way of changing that behavior on the iPhone. Perhaps you should investigate switching to a POP-type email service.
    There would be no difference between the iPone 4 and iPhone 5 in this respect.

  • How can I stop itunes from starting when I turn on the computer?

    I'm sure I've done it before but I've just reinstalled itunes and it starts evey time I turn on the computer. I have searched all the menus and haven't found an option to turn this off.
    Can anyone help please?

    Go to Start>All Programs and look in Startup. iF iTunes appears there, remove it.
    If iTunes is not in startup, do you have any iTunes widgets? If you don't know what they are you probably don't have any.
    Some iTunes Widgets can be configured to start when you start your computer and that could cause iTunes to appear.

  • How can I stop firefox from checking add-ons and displaying the What's new page each time I launch it

    Since upgrading to the latest version, I have viewed read and interacted with everything on the What's new page. I have done this a number of times but the page is still opened each time I launch Firefox. In addition it shows my homepage in a second tab.
    Prior to opening Firefox it checks for add-ons.

    hello Michells, this will likely be caused by the user.js file in your profile folder.
    go to the firefox ''menu ≡ > help ? > troubleshooting information'', click on ''profile folder/show folder'' and close all firefox windows afterwards. a windows explorer window should open up - in there delete the file named '''user.js''' and restart the browser afterwards.
    [[How to fix preferences that won't save]]

Maybe you are looking for

  • Deployment to Azure Web App from TFS not updating

    Hi all, I'm having a problem with deployments to my azure web app. I'm committing my code to Visual Studio Online and then running a build to get VSO to deploy the code to Azure. The deployment seems to work fine (there are no errors that I can see)

  • Changing Mailserver Name Issues?

    I have an older server doing both email and web and I plan to split the services across a couple of boxes and limit this box to just doing email. So far it has used the same domain name like foo.bar.com for both the address of the email and webserver

  • Content delivery in portal based on user roles ?

    Portal Server new bee... Please can anyone point me to guides/url where i can look to enable content delivery in a portal based on user roles and how to establish SSO. I have installed Portal Server6.0 and iplanet Directory Server Management Edition

  • Emails with no folder and missing message

    This is a problem that has stumped tech support at the product specialist level for several months. I have many emails that I can find when I do a search BUT they are no longer assigned to the inbox or folder and have lost their content. In the searc

  • Spry with Dreamweaver download problem

    but I can not find the application... The folders in the Spry_P1_3_08_11 folders are: the folders are articles data demos includes samples widgets... where is the application? Betsy Wallace