How do I switch a relay then one second later switch it back?

I am currently doing an experiment where I need to send a digital output signal to a relay, the relay switches, then one second later switches back. I have connected the relay to the CB68-LP board and I can get it to manually switch when I click, but I need this to be an automatic response.
I just need to click a switch so the relay changes and 1s later changes back again. Any ideas?

So you already did most of the job !
I suppose that you built some kind of a VI, where you can switch the relay upon switching a boolean control. Let's call it "Relay.vi".
One very simple solution :
Build a new VI, with a sequence structure with 4 frames :
in the first frame, put a waiting loop, which will wait until a switch button is pressed;
in the second frame, wire a True boolean constant to your Relay.vi
in the third, place a wait node, and wire a 1000 ms constant to the input
in the forth, place another instance of your Relay.vi, this time connected to a False constant.
It's bot very elegant, but that's the simplest thing that you can achieve.
May that could do to start with ?
More help ?
Chilly Charly    (aka CC)
         E-List Master - Kudos glutton - Press the yellow button on the left...        
Attachments:
relay.tif ‏11 KB

Similar Messages

  • How can I talk with more then one person at a time?

    How can I talk with more then one person at a time? With Faxe time? Is thier software needed to do this or can it be done with the basic package?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • I have a white iPhone 4S. For some reason I cannot MMS only one of my contacts. I'll send a picture or video and it will go through, say delivered underneath the picture, then 30 seconds later it will say not delivered and I have to send it as a text.why!

    I have a white iPhone 4S. For some reason I cannot send media (picture,video,etc.) with one of my contacts. I'll send a picture or video and it will go through, say delivered underneath the picture, then 30 seconds later it will say not delivered and I have to send it as a text message. Why is this happening!? It happens connected to wifi and not connected to wifi.
    I appreciate the help, thank you!

    If it says "Delivered" under it to begin with, then you're not sending it as an MMS, you're sending it as an iMessage. It's entirely possible the problem is on the receiving end.

  • Display color array then 1 second later display same array with color change

    Hi there, I'm new to LabVIEW and this is my first post. I'm using LabVIEW 9.0.1
    Please have a look at this simple program attached below; when I've worked out this part of the program, it will be the starting up sequence of a game
    the lights need to be set to white before running the program.. When the program runs the hexadecimal 'array 2' is projected as colors on 'array'. Then 1 second later, a green light is added to the centre and displayed in 'array 4'...
    I am attempting to have the green light go on on the same array after 1 second. As opposed to on array 4...
    When I've figured out how to do this I'll add many more time iterations, whereby a color is changed on each one. Thus making a nice startup sequence.
    any help is appreciated, thanks in advance for your help!
    p.s. add 00FF0000 to the last box in 'array 2' before you hit play.
    Attachments:
    attempt 1.vi ‏10 KB

    I think you should learn about shift registers.
    Your larger program will probably work better and be easier to modify and maintain if you use a state machine in place of the sequence structure.
    Lynn

  • Hi All.  My iPad 4 just started having issues with the volume.  On either Bluetooth or the iPad Speaker, anything I'm watching or listening to drops the sound to just barely hearing it and then, about 2 seconds later, it comes back.

    Hi All,
    I tried to search through the community, but with the sheer volume of posts, I didn't find anything that seemed like the same issue.
    My iPad 4 just started having issues with the volume.  On either Bluetooth or the iPad Speaker, anything I'm watching or listening to drops the sound to just barely hearing it and then, about 2 seconds later, it comes back.
    I haven't tried wired ear phones, but I am sure they'll be the same way.
    It's very random, but consistent enough to happen several times per day.
    Thanks for any help that anyone can provide.
    I have restarted it and also did a Hard Reboot and it didn't help.
    Thanks Again,
    Scott P.

    Well there you go, when you advertise it just be sure to say that you can't even see the scratches at half brightness and see how it goes.
    Of course you are saying you want $500 for one with many scratches on the screen, has been dropped, but the scratches aren't visible at half brightness, and has no warranty. Or I can buy a refurbished iPad 4 WiFi 32 GB directly from Apple with no scratches and a one year warranty for $499. http://store.apple.com/us/product/FD514LL/A/refurbished-ipad-with-retina-display -wi-fi-32gb-white-4th-generation
    Why would I buy yours?
    I wouldn't pay more than $300 for a used model with your specs in perfect condition. But yours is far from perfect. I think your high point is $250 which is why I said 50%.

  • HT4991 When I try to import word files from email it says importing then few seconds later shuts pages app

    When I try to import word files from email it says importing then few seconds later shuts pages app

    Peggy, thanks for the try. I think you are on to something about the multitude of sections in the sample document.
    I think the many many sections are a result of the formating to make the word document look just like the legal case book (multiple columns of text, special sections, graphical headnotes summaries etc). The doc opens just fine in Word for windows 2000, XP and 2003. Maybe I can request a NON columnar flowing word doc that will be possible to open with Pages 3.
    In the meantime, the other good options for these legal document downloads, PDF and HTML are not good options for processing the files with Pages. I sure hope the interoperability of Pages 3 is enhanced soon. I would rather not buy the Office 2008 for the Mac if I could stick with Apple's products.
    By the way, do you know...... is there a business, marketing, or technical reason (maybe all 3)) why Text Editor seems to have greater capabilities than Pages 3 (like HTML and similar functions)?
    Thanks, Brian

  • My 3 week old printer is printing the page and then 10 seconds later spitting out a blank page.

    My 3 week old printer is printing the page and then 10 seconds later spitting out a blank page.  I have tried printing current page, current selection.  It does this on envelopes.  I have HP paper.....taken paper out....moved the guides.  Cannot print a test page from the panel....I have press the x it just cancels the selection. 

    Sorry forgot the link http://support.apple.com/kb/ht1341

  • How to use 'BAPI_GOODSMVT_CREATE'  for more then one row selected ???

    Hi,
    I am using bapi , BAPI_GOODSMVT_CREATE  ,  my requirement is that first perform ALV display with check boxes & then user can selsct any number of rows  & then on clicking execute button  this bapi is triggered , now my ques is that  if i am selecting rows one by one & executing , then am able to post data successfully, but if am selecting  more then one row at a time then its giving me error
    " exactly one serial no must be selected  (instead of more then two / three ) ."
    plz help me .
    this is how i am filling data in BAPi & bapi call
    FORM FILL_BAPIDATA .
      wa_GOODSMVT_HEADER-PSTNG_DATE = sy-datum.
      wa_GOODSMVT_HEADER-doc_DATE = sy-datum.
      wa_goodsmvt_code-gm_code = c_gmcode.
      LOOP AT it_final INTO wa_final.
        wa_GOODSMVT_ITEM-MOVE_TYPE = c_movtype.                 " '313'.
        wa_GOODSMVT_ITEM-material =  WA_final-MATNR.
        wa_GOODSMVT_ITEM-ENTRY_QNT = wa_final-verme.
        wa_GOODSMVT_ITEM-plant =  WA_final-WERKS.               "'DB10'.
        wa_GOODSMVT_ITEM-STGE_LOC =  WA_final-LGORT.
        wa_GOODSMVT_ITEM-BATCH = WA_final-CHARG.
    wa_GOODSMVT_ITEM-BATCH = l_charg.
        append wa_GOODSMVT_ITEM to IT_GOODSMVT_ITEM.
        clear: wa_GOODSMVT_ITEM.
      ENDLOOP.
      LOOP AT it_final INTO wa_final.
        wa_serialnumber-SERIALNO = wa_final-sernr.
        APPEND wa_serialnumber to it_serialnumber.
        CLEAR wa_serialnumber.
      ENDLOOP.
      LOOP AT it_position2 INTO wa_position2.
        wa_serialnumber-MATDOC_ITM = wa_position2-wepos .
        MODIFY it_serialnumber INDEX sy-tabix from wa_serialnumber TRANSPORTING MATDOC_ITM .
      ENDLOOP.,
    data: begin of mthead.
            include structure bapi2017_gm_head_ret.
    data: end of mthead.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          GOODSMVT_HEADER               = wa_GOODSMVT_HEADER
          GOODSMVT_CODE                 = wa_GOODSMVT_CODE
       IMPORTING
          GOODSMVT_HEADRET              = mthead
        MATERIALDOCUMENT              = w_MATERIALDOCUMENT
        MATDOCUMENTYEAR               = w_MATDOCUMENTYEAR
        TABLES
          GOODSMVT_ITEM                 = IT_GOODSMVT_ITEM
          GOODSMVT_SERIALNUMBER         = IT_SERIALNUMBER
          RETURN                        = IT_RETURN
      GOODSMVT_SERV_PART_DATA       =
      EXTENSIONIN                   =
    APPEND w_MATERIALDOCUMENT to it_GOODSMVT1 .
    IF sy-subrc = 0 .
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *MESSAGE text-016 TYPE 'I'.
    PERFORM msg_log  .
    ENDIF.

    Hi,
    Did u check the serial numbers table before calling the BAPI. Might be the case tht same serial number is assigned for all items, in this case the goods movement may be possible with same serial number for all items.
    Reagrds,
    Aditya
    Edited by: aditya on Aug 11, 2009 11:46 AM

  • How to make changes in more then one file

    Hi All,
    M new and dont have deep idea about dreamwheaver.Actually i want to make changes in more then one file at the same time, how to do this. Is there any option available there. ?

    If you you build your new site with SSIs (server-side includes), changes to include files will populate to all pages on the remote server.  This is a huge time saver for maintaining common page elements on large sites.
    Example code might look like this:
    <body>
    header goes here
    <!--#include virtual="header.html"-->
    <p>some text</p>
    menu goes here
    <!--#include virtual="menu.html"-->
    <p>some text</p>
    footer goes here
    <!--#include virtual="footer.html"-->
    </body>
    </html>
    Pages with includes on them need to be saved as .shtm or .shtml.  If you use server-side scripts on your site, save as .asp or .php to match your script type.
    http://www.smartwebby.com/web_site_design/server_side_includes.asp
    Nancy O.

  • Today, when using the full screen mode, when I switch out of it, its automatically returning to full screen mode one second later.  And ideas?

    Lightroom is acting up today.   If I enter the fullscreen mode to view images, when I try to exit out of it back to the library or develop mode, after one second its returning back to the full screen mode.  The only way to exit is to command Q.  Any ideas?

    Found this on another thread.  Havent tried it yet, but am about to.
    4. Re: lightroom 5.4 gets stuck in full screen preview?
    mohammedabidally Jun 1, 2014 10:53 PM (in response to freophotos)
    Hi ye I followed the procedure given here https://forums.adobe.com/inbox?objectType=2&objectID=6355272 and it worked for me.
    You need to do it with the cursor.....
    "restarted Lightroom then using the menu with cursor only (NOT THE F KEY) I went to window …. Screen mode….. and tried the various modes.. Screen Mode with Menu…..Full Screen…. then the Full Screen Preview (this is was my issue)    Once in Full Screen Preview I got out of it using the escape key which worked…. Then I hit the F-Key which again took it into Full Screen Preview then I tried the F-key to get out and it worked!!…..   "

  • As soon as I send my messages they say unable to deliver but then 2 seconds later it delivers. Idk what to do

    wwhen i send a message to someone it says that it was unable to deliver but then 2 seconds latee it delivers. It's really bothering me and I don't know what to do about it . Help......

    Hey there gentiana1,
    It sounds like your phone is not sending messages until a couple of seconds after you tap Send. Since they are going through it seems like your network and (for iMessage) Apple ID information is correct. I would start by quitting the Messages app:
    iOS: Force an app to close
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the device and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • How to send mail to more then one recipient in work flow

    Hi
    on material creation a workflow will triggered and a mail should send to 2 users . my question is on one mail step i can assign one user for example WF_1 . tell me how can i assign the other user at that step . so mail should deliver to WF_1 and WF_2 .
    Regards
    Ammad

    Hi Ammad,
    If you want to send mail to a hard coded set of 2 users then you can simply add the two users comma separated in the recipient list.
    Else, you can use a multi-line container to pass dynamic userIDs to the mail step. You need not loop at the multiline container but simply use the userID in the recipient field. You can fill the approval list in a step before the send mail step (create a new Activity step to get the approver list or use rules). The multiline container should be of type similar to the WFINITIATOR type but only multiline.
    Hope this helps!
    Regards,
    Saumya

  • How do I plug in more then one device at on

    I was just wondering how to plug in headphones and speakers at the same time, I can only get one or the other to play at a time, is there any way to do this? Is there anyway to assign what each plug does?

    I take it you don't have a mike/headphone jack on the front of your pc.
    Dell XPS 600 Intel Pent D 830 3.0ghz
    Chipset- Nvidia nForce4 SLI Intel Edition
    WD 60gb HD
    2gb Ram
    DVD-ROM
    DVD-RW (Plextor 760A)
    Creative XF-I Extreme Music
    Logitech X-540 speakers
    EVGA 7950GT
    Dell 2007WFP (I-SPS panel)
    Win XP SP2
    BIOS A

  • TS1398 I am logged on to the wifi at home, and every now and again my ipad says that there is no wifi connection, even though it is in the same spot it was when I had wifi connection & then 5 seconds later it picks the connection up again. Is this due to

    I am also having numerous other problems with my ipad, apps just close randomly (they worked perfectly fine before) as well as my hipstamatic doesn't want to save photos to the photos.  Is there a way to go back to IOS 5?

    Hey Saanasaana, Have you tried going into Settings>General>Reset and tapping Reset All Settings. If still no joy... Reset Network Settings and rebooting the router. If that doesn't do it, try Settings then tap the offending Wi-Fi Network, then tap Forget this Network and re-load it, as if it was a new network.
    Your next options are to Restore. Connect to your iPod with your computer with the cable, and make new backups / copies of all your stuff to your computer first, then Restore from Backup. If that does not solve, Restore to New, a full restore. Note restore to new will wipe you iPod put it back to factory specs, that's why your need to make backups of everything on your iPod before you do it so you can reload your stuff back to your iPod. If the full restore does not solve you may have a hardware issue, contact your Apple store or Apple Genius Bar and set up an appointment to have your iPod evaluated. Good luck. Cheers.

  • Starts up, Sleep Light Comes On, then Shuts Down After ONE Second

    I was using the Macbook Pro in Target Disk Mode using a external monitor, and when I was done I had to open the case to shut it down. I then pressed the power button to start it up regularly and shut the case again. The computer acted like it went to sleep, so I figured I needed to keep the case open when starting.
    As soon as I hit the power button again, the sleep light came on and the optical drive made a little noise, and after one second the light went off and everything shut down again. If I HOLD the power button down then the sleep light stays on for five seconds, flashes rapidly for two seconds, goes off for one second, then back on for a second before finally shutting completely down again. Repeatable.
    I do have a Snow Leopard DVD in the drive, but that shouldn't make any difference. I can't eject it either by holding down the eject button while powering up.
    I've tried removing battery and power and holding down the power button for a long time. No help.
    Any ideas on how to get it alive again?

    No start-up chime.
    The only noise that can be heard is the hard disk and the optical drive powering up, the power LED lights up, then ONE second after hitting the power button it shuts itself off.
    The best way I could think to duplicate getting it in this state is to press the power-on button and immediately shut the display lid. I would assume the timing of closing the lid has to be right at an inopportune time in the startup sequence.

Maybe you are looking for

  • Multiple problems with ITunes 7.0.1 on XP machine... please assist

    I've read most of the threads on this topic, done most of what has been recommended here and in the support section of the apple site, and I am still at a dead end. Needless to say, I just find it incredible that Apple is not issuing a comprehensive

  • How to create index on xmltype column

    I have a table having only one column xmlcontent (xmltype). This table stores xml data of about 10GB size. I'm using extract value to move the data to staging tables. How can I create index on xmltype column? Create index indexname on table (column)

  • Exception when running transactions across 2 servers

              I have the following scenario, all happening within one transaction:           - Session Bean is instantiated           - Session Bean gets initial context and creates entity bean home interface and           creates bean           - Sessio

  • What's that extra SDRAM gonna give me?

    Bit of a hardware question, but specifically relating to FCP... I have been editing SD footage on a PowerBook G4 (1.25) and it's been OK...slow but OK! I am now about to upgrade, (finally!) to one of the new MacBook Pro's. I tried the 2.5GHz in my lo

  • Where is documentation about Adobe Reader web-browser plugin API?

    When Adobe Reader is chosen as plugin to open PDF's inside a web-browser it reacts to some javascript commands in the web page that hosts the <object> tag like "goToPage" or similar. I would like to know which other javascript commands (and events: s