How do I set up an indicator to display for only 1 second?

How do I set up an indicator to display for only 1 second?
I am reading keys from a serial device and I turn on an indicator that corresponds to the key pressed
on the serial device but how do I set this up so that it only stays lit (enabled) for a second or two?
The indicator is inside of a case statement and turns on OK but I do not want it to stay on for more than
a second or two. How do I modify this to display for only a second or two?
 (P.S. I am running an old version 8.2 and can only see vis that are 8.2 or older.)
thanks

Simplest way to turn the indicator off (false value) after a set time is to use a Sequence structure (flat or stacked).
Frame 1, set to true,
Frame 2, Wait ms (wire millisecond value to wait)
Frame 3, set to false.
This method, however, prevents the code outside the case structure from running during that wait time.  
Something more elaborate will allow the external code to run.  What comes to mind is a shift register that holds the indicator name and the time stamp (in milliseconds) when it was turned on, in an array of clusters.  Each iteration of your loop will check this register to see if a certain time has passed (current time stamp minus turn on time).  If so, use a case structure to turn the indicator off and remove the elements from the shift register array (so you don't keep setting the indicator to false).  The array will let you control multiple indicators independently.
A problem with this option could arise from multiple readings.  Lets say you want to turn it off after 2 seconds, but you read the value again after 1 second (this means the indicator should be on for a total of 3).  The code would still turn it off after the 2 second mark.  Of course this really depends on the time intervals involved with your code.

Similar Messages

  • Some of the album artwork on my iPod is wrong. I've tried to change it many times but it doesn't change. I've decided that the easiest thing to do now would be to NOT display album artwork on my iPod. How do I set my iPod to NOT display album art?

    Some of the album artwork on my iPod is wrong. I've tried to change it many times but it doesn't change. I've decided that the easiest thing to do now would be to NOT display album artwork on my iPod. How do I set my iPod to NOT display album art? I've checked the User manual and that doesn't help.

    Why don't you, instead of taking time to do that, just backup, and then restore your iPod?
    Just a suggestion..

  • How do I set up a different email address for HPePrint

    how do I set up a different email address for HPePrint

    @poloacuna
    At this time you cannot reassign printer email addresses.  Also, keep in mind If you delete a printer email address then you will not be able to use that same email address again for six months.  

  • I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?

    I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?  Also, how do I add co-workers to my work time capsule and wife to my home time capsule?  Thank you!

    You cannot have two different TC setups.. at least until Mountain Lion.. it did introduce some changes but I am not sure if you can setup two different configurations for TM.. you can use two different devices to back up to. I doubt this will help you.
    You might be better using a real backup software.. superduper, CCC, chronosync etc.
    The TC by default is available to any Mac in the network to do backups. TM will sort itself out and put each computer on a different backup. These are kept in separate sparsebundles.. so that is all fine.

  • I have justed upgraded CS2 to CS5. How do I set artboard crop or trim marks for printing?

    I have justed upgraded CS2 to CS5. How do I set artboard crop or trim marks for printing?  It was under the "OBJECTS" menu in CS2, but I can't find it in CS5.

    it actually works the same way but better you don't see it that way but with perhaps more experience you might catch on and say "oh now I see that' all I have to do.
    Multiple artboards, which you did not have in CS 2 , changes the equation.
    When you open a new document you can set up a gangup in the new document dialog then say for a business card then do one business card in the first one.
    Then copy the art and text of that first one and in one command paste that art in all of the artboards with one command, you can then make another artboard that encompasses all the artboards and you now have a gang up say six up you can now print all a once as a gang up or print a range of the artboards or specific artboards.
    As a matter of fact now that you can paste on all artboards with one command AI CS 5 actually has a step and repeat feature that works verticaly and horizontally at the same time. And an improved version is easily had.
    Also since you probably know how many you need of this first artboard then you can simply make one rectangle for for the first artboard and give it a crop area effect and when you do your copy include the rectangle and then paste on all artboards and there you are
    look at the video, see how cool. less complicated not more complicated. And as other users explore this function I bet they come up with even better ideas.
    http://mysite.verizon.net/wzphoto/Artboards.mov
    I am going to make one adjustment here instead of doing a command c to copy the first artboard it would be better to do a command x to cut the first one since the command paste on all artboard does exactly that. So if you do a command c and a command option shift v then you have two rectangles and art and crop marks pasted on top of each other. Probably won't do any harm but might be confusing in the layers panel.

  • How I can set the spelling language in Pages for iPad?

    how I can set the spelling language in Pages for iPad? may for german...

    how I can set the spelling check to other language in Papers/iPad?
    The only choices you have in the iPad itself are to change the keyboard or change the user interface language. If that doesn't do what you want, probably best ask the people who make Papers.

  • I just got InDesign CS6 and am running it on an iMac and I know the license is good for two computers which will come in very handy for me.  How do I set it up to access it from my second iMac?

    I just got InDesign CS6 and am running it on an iMac and I know the license is good for two computers which will come in very handy for me.  How do I set it up to access it from my second iMac?

    I just had an afterthought, Peter, if I could bother you further; if the downstairs iMac that I want to access it from is in my wife's name and not mine (even though I'll be the one using it on her computer) does that affect anything or can I simply load the software straight into her computer without any complications?

  • How do I set up a new apple id for my sister while still keeping all my music on her ipod touch?

    How do I set up a new apple id for my sister while still keeping all my music on her ipod touch?

    Just create and new ID
    Frequently Asked Questions About Apple ID
    To use that ID on the iPod go to Settings>Store and sign our and sign back in.

  • How can I set the maximum number of restarts for my PDF files?

    I want sent my PDF to a friend,but I just allow him see it only twice.
    How can I set the maximum number of restarts for my PDF files?
    My software edition is Acrobat X

    In the old days when PDFs were only opened on desktops and only in Acrobat or Reader, scripting could fake security features and people were generally convinced. As there are so many ways to open a PDF without scripts ever being run (from mobile devices to in-browser display, or simply opening the file in Illustrator), none of that works anymore.

  • How do I set the shortcut to space bar for the hand tool in illustrator cc?

    How do I set the shortcut to space bar for the hand tool in illustrator cc?

    Thanks Larry, Mavericks OS. I managed to fix it by quitting Illustrator and reopening it. I have no idea why there was a problem in the first place, it just stopped working with the space bar shortcut and replaced it with a random alphabet.

  • How can I set the number of batch process for DTP globally?

    Hi guys,
    How can I set the number of batch process for DTP in system globally?
    For eg. set the number to 1
    Any hint is appriciated!
    Regards,
    Liying

    Hi,
    In DTP screen also you can view batch settings. Check the Settings menu, you will find Batch.
    Reg
    Pra

  • HT201209 I am ebook retailer. How do I set up a redemption/discount code for my ebook?

    I am ebook retailer. How do I set up a redemption/discount code for my ebook?
    I would like offer limited discounts on limited quantities.

    Unless it's a textbook or other book eligible for Apple's Volume Purchase Program for educational institutions, I don't believe you can, but you can contact Apple and ask.
    [email protected]
    Regards.

  • HT4053 how to I set my clock's alarm to vibrate only when ringing?

    How do I set my clock's alarm to vibrate only?

    Scroll down and set the Sound to None.

  • How can I set up an email user as "send-only" (no mailbox for receiving)?

    Can anyone tell me how I can set up an email account that can send emails but not receive emails.
    Our Web application has been using a generic email address "[email protected]" in all of our PHP Web applications as the sending email account. I have this user set up in WORKGROUP ADMIN as a proper account. However the account gets tons of SPAM emails and is constantly filling up.
    Also, all of the email accounts require SMTP authentication to send emails.
    Is there any way to identify an account as a send only account so we can generate emails from our Web applications that cannot be replied to?
    Thanks for the help
    -- Jon

    Doing so will cause issues. If you send out mail which to an outside server appears to be non existent, mail may be rejected and you may even be blacklisted.
    You can remove the account from WGM and add a role account as an alias send to /dev/null. This will look to the outside world like an existing address, but simply be discarded on your system. You should however include a working address in your mailings for people to be able to respond.
    Assuming you use local domains, edit /etc/postfix/aliases and add:
    noreply: /dev/null
    (you can change noreply with the sender used in your PHP apps, but I'd probably change the PHP apps to use noreply as this signals to people receiving your mails that this address is unattended).
    When done, issue:
    sudo postalias /etc/postfix/aliases
    sudo newaliases
    sudo postfix reload
    HTH,
    Alex

  • How do I set up individual or minor accounts for game center under iOS 7.0.4?

    I have three ipad minis (one for each kid).  They are all set up through my apple account with my apple ID.  How do I set up game center so that they aren't sharing game stuff.  They each want their own game center?

    I see dropdown menus for SMTP SSL and IMAP/POP SSL. I have them both set as "Require"
    Do not to this if your server is handling incoming mail from outside your network.
    Few remote mail servers will use SSL, so if your server requires SSL then you will not be able to receive mail from outside your domain.
    'Use', on the other hand, advertises the fact your server supports SSL, so clients and remote servers can use if if they like, but this still allows other mail in.
    What should "Authentication" be - "Login" or "Plain"
    Do not use Plain unless you absolutely trust all your clients (i.e. they're all on a LAN or all using SSL). Plain sends an unencrypted password over the wire, which is susceptible to sniffing.
    what will the client be using?
    Whatever you set it to.
    The client complains about a correct root certificate not being installed).
    Are you using a self-signed certificate? if so, you're going to get that unless you do a lot of extra work. Getting a real certificate from a trusted authority should resolve this.
    As for the slow connections, the use of SSL shouldn't significantly impact connection or delivery/transfer times, so something else is amiss.

Maybe you are looking for

  • Using dynamic properties in an Instance property

    Is there a way to take the output of a dynamic properties variable (from PROP_LIST) and use that variable in an InstanceProperty tag so that the InstanceProperty is pre-filled out on the display? The idea would be to have a dynamic properties variabl

  • Reg: XML Gateway Error while posting invoice (PROCESS_INVOICE_002 )

    I'm trying to post the PROCESS_INVOICE_002 to Oracle 11i XML gateway which is supposed to route to the mentioned trading partner. When I observed the status through Workflow Admin web App - > Transaction Monitor the message has reached the INBOUND Qu

  • StarCraft II: Wings of Liberty Live Chat Session - Transcript

    Transcript for "StarCraft II: Wings of Liberty Developer Chat", Thurs July 15 2010 (Part I) Aaron-GS: Good evening and welcome to our StarCraft II: Wings of Liberty developer chat! Aaron-GS: Chris Sigaty from Blizzard Entertainment is currently onlin

  • How to enable the SAVE LAYOUT button?

    When using CALL METHOD G_ALVGRID_HDR->SET_TABLE_FOR_FIRST_DISPLAY, how do I enable the SAVE LAYOUT push button? It shows the Change layout button but does not allow me to save the layout as the SAVE LAYOUT button is not available. I am using the foll

  • Why does my bridge photo downloader keep crashing

    Hello, I'm running Adobe CS5 on a Mac OS X 10.6. For some reason my bridge photo downloader keeps crashing in the middle of trying to import pictures from my iphone camera. Is this something to do with iphoto preferences maybe? I believe I've set my