How do you keep a VI running while waiting for user input?

I have a VI that:
1.  The user enters set points.
2.  The user starts the VI and the VI sends the set points to an external process via a serial interface.
3.  The VI  stops running.
4   The user waits for the external process to complete.
5.  Repeat sequence. Go to Step 1.
This works well except for one small problem.  Starting the VI in step 2 causes an external micro controller to reset.  During the reset it will ignore set point commands.  To get around this problem a delay has been added between when the VI opens the serial port and when the VI sends the set points to the external process   Is it possible to keep a VI running continuously in this type of application, thereby eliminating the start up and shut down of the serial interface?
If yes, how do you keep a VI running while waiting for user input?
Howard

The ones for the event structure specifically. I'm posting from my phone. Look at the basic ones for user input. even a simple while loop with a boolean and a case statement would work.

Similar Messages

  • HT4489 this is ridiculous! how do you keep the size of the picture for a contact that small? it is usually a piece of  a lager picture... any way to make the size of the pictures the 224 KB they want? I always thought the application cropped the picture t

    this is ridiculous! how do you keep the size of the picture for a contact in the address book that small? it is usually a piece of  a lager picture... any way to make the size of the pictures the 224 KB they want? I always thought the application cropped the picture to fit their requirements...
    Help
    Leo

    Gem
    Events are organised strictly on date and time, as read by iPhoto from the Exif data in the Photo. You cannot manually sort.
    Create Albums. You can do much more organising with Albums, use Photos from different events, place them as you will. Best of all, Albums use no disk space at all. They simply reference the file on the Hard Disk. So a pic can be 1, 10 or 100 Albums with no wasted disk space whatever.
    Regards
    TD

  • How to make Flash to wait for user input

    Hi,
    I found this PHP script, then I made some changes to make it
    FEED the Flash user interface with online user input.
    The main concept of this script is WAITING for user input, so
    it shows the messages and then go to next line and so on.
    The user input go to directly to TEXT file which writes in
    lines, each line has a unique id = (mag_id).
    There "get_msge.php" which works as the middleware between
    FLASH and messages text file.
    The problem, its doesn’t show any data while there are
    data in the text file.
    Help here please, best regards.
    This is the link of
    problem illustartion
    AS is:
    // create an object to store the variables
    varReceiver = new LoadVars();
    // load the variables from the text file
    varReceiver.load("get_msg.php?file_id=1&msg_id=1",
    "POST");
    // trigger something - when the variables finish loading
    varReceiver.onLoad = function(){
    //the variables have finished loading
    if (this.msg_id == 1) {
    _root.xmsg1_swf.text = this.msg;
    _root.xmsg1_ch.text = this.msg;
    gotoAndPlay("line2");
    } else {WAIT }
    PHP is:
    <?php
    //get these values from the FLASH
    $file_id_swf = $_POST ['file_id'];
    $file_name = "messages/messages".$file_id_swf.".txt";
    $msg_id_swf = $_POST ['msg_id'];
    // [0] ."||".[1] ."||".[2] ."||". [3] ."||".[4]."||". [5].
    //$msg_id."||".date."||".time."||".$from."||".$to."||".$msg.
    $fp = fopen ($file_name, 'rb');
    while (!feof ($fp))
    $msg_txt = fgets ($fp, 1024);
    $line = explode ("||", $msg_txt);
    $msg_id = $line[0];
    $from = $line[3];
    $to = $line[4];
    $msg = utf8_encode ($line[5]);
    if ($msg_id == $msg_id_swf)
    echo
    "msg_id=".$msg_id."&from=".$from."&to=".$to."&msg=".$msg;
    }//while
    fclose ($fp);
    ?>

    Well, given the things that you've written, I don't think it
    could. There technically isn't any code in flash that lets it
    "wait." In order to "wait," you must run the script over again
    until some condition is met.
    However, your code does look accurate. Why do you need to
    wait? The onLoad function will be invoked WHEN something is loaded.
    So, I don't see the reason for the "waiting."
    In addition to that, I would like to say that using text
    files isn't that great with flash. I have done this before and
    noticed several problems with using text files. The biggest problem
    is that the text files are cached after being loaded. Every time
    you re-load it again, you will get what you got the first time
    until you reset your cache (ie. close your browser). I suggest
    using MySQL. (Just my thought.)

  • How to overcome thisORA-00060: deadlock detected while waiting for resource

    Hi ,
    I have table name problems(prom_number,prom_relation,prom_impact,prom_prom_number)
    Now from oracle form raltion can be set.
    parent and chil relation can be set from the form
    for ex
    first suppose row=1 prom_number=1 is set as parent.
    so the tabl is updated as prom_+relation='PARENT'
    so after first updation values are
    prom_number=1,prom_impact='xxx',prom_relation='PARENT' prom_prom_number=null
    now in form level the 2 row which is set as child is update as follow
    prom_number=2,prom_impact='yyy',prom_relation='CHILD' prom_prom_number=1
    Now my requirment is after the 2nd row is updated the prom_impact of 2 row should be pusehd to row=1 which has the pirom_relation as ='PARENT.
    the problem is i dont have the fmb of form so i cant do any changes in the form.
    So i have written a trigger which fires when row2 is updated it picks the prom_impact value and trys to push it in row=1 with prom_number=1
    however since in form level the table has not been committed it displays the following error
    ORA-00060: deadlock detected while waiting for resource
    So how can we overcome this error.
    the trigger i have written is given below.
    So how can we resolve thsis issue.
    CREATE OR REPLACE TRIGGER Parent_Child_Impact_Trg
    AFTER UPDATE OF prom_relation,prom_prom_number
    ON PROBLEMS
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    Version History:9.2.8.1
    (format: version, date, developer, description)
    1.0, 19-Dec-2008, Tanmoy Kr Moulik The "Impact" of Paren fault ticket
    will be changed upon manual creation of Parent Child relation
    Rules:
    1.0     Upon manual creation of new Parent-Child fault relation, the 'Fault Impact' of
    Child fault will be auto updated in the parent fault, if the parent fault impact matches
    with the attached list(Non Serve Affeect or Threat) or the impact of Parent Fault is blank (null).
    2.0     In case, the parent fault have fault impact matches with the attached list
    (service affect), then its impact is not changed while making the relationship.
    DECLARE
    PRAGMA autonomous_transaction;
    ecode NUMBER;
    emesg VARCHAR2(200);
    --BEGIN
    -- NULL;
    CURSOR c1--(v_prom_num NUMBER)
    IS
    SELECT PROM_IMPACT,prom_number FROM PROBLEMS WHERE prom_number=:NEW.prom_prom_number;
    v_prom_imp VARCHAR2(30) DEFAULT NULL;
    v_prom_imp_p1 NUMBER DEFAULT 0;
    v_prom_imp_p2 NUMBER DEFAULT 0;
    v_prom_num NUMBER;
    BEGIN
    IF :NEW.PROM_RELATION='CHILD' AND :NEW.PROM_PROM_NUMBER IS NOT NULL THEN
    --dbms_output.put_line(1);
    --INSERT INTO TEMP_PROM VALUES(:NEW.prom_number,:NEW.prom_prom_number,:NEW.prom_impact,:NEW.prom_relation);
    --COMMIT;
    OPEN c1;--(:NEW.prom_prom_number);
    FETCH c1 INTO v_prom_imp,v_prom_num;
    --INSERT INTO TEMP_PROM(PROM_NUM,PROM_IMPACT) VALUES(v_prom_num,v_prom_imp);
    --COMMIT;
    IF c1%NOTFOUND THEN
    v_prom_imp:=NULL;
    v_prom_num:=NULL;
    END IF;
    CLOSE c1;
    v_prom_imp:=UPPER(v_prom_imp);
    v_prom_imp_p1:=INSTR(v_prom_imp,'NON');
    v_prom_imp_p2:=INSTR(v_prom_imp,'THREAT');
    --INSERT INTO TEMP_PROM(PROM_NUM) VALUES(v_prom_imp_p1);
    --INSERT INTO TEMP_PROM(PROM_NUM) VALUES(v_prom_imp_p2);
    --COMMIT;
    IF v_prom_imp_p1>0 OR v_prom_imp_p2>0 THEN
    IF :NEW.prom_impact IS NOT NULL THEN
    /*BEGIN
    INSERT INTO TEMP_PROM(PROM_NUM,PROM_PROM_NUMBER,prom_impact,PROM_RELATION) VALUES(:NEW.prom_number,:NEW.prom_prom_number,:NEW.prom_impact,:NEW.prom_relation);
    COMMIT;
    EXCEPTION WHEN OTHERS THEN
    INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed1'||ecode,emesg);
    COMMIT;
    END;
    BEGIN
    COMMIT;
    --INSERT INTO PROBLEMS(prom_number,PROM_REPORTED,PROM_REPORTEDBY,PROM_PRIORITY,PROM_DESCRIPTION,PROM_EMPE_ID,PROM_WORG_NAME,PROM_CREATED,PROM_CWORG_NAME)
    -- VALUES(50000000,SYSDATE,'TAN',1,'DASD','CLARITY','CLARITY',SYSDATE,'CLARITY');
    UPDATE PROBLEMS SET PROM_IMPACT=:NEW.PROM_IMPACT WHERE prom_number=:NEW.prom_prom_number;
    COMMIT;
    EXCEPTION WHEN OTHERS THEN
         ecode := SQLCODE;
    emesg := SQLERRM;
    COMMIT;
    BEGIN
         UPDATE PROBLEMS SET PROM_IMPACT=:NEW.PROM_IMPACT WHERE prom_number=:NEW.prom_prom_number;
         EXCEPTION WHEN OTHERS THEN
         INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed'||ecode,emesg);
         END;
    --INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed'||ecode,emesg);
    COMMIT;
    -- EXCEPTION WHEN OTHERS THEN*/
         NULL;
         END;
         --END;
    --END;     
    END IF;     
         /*BEGIN
         INSERT INTO TEMP_PROM(PROM_NUM,PROM_IMPACT) VALUES(:NEW.prom_prom_number,:NEW.prom_impact);
         COMMIT;
    EXCEPTION WHEN OTHERS THEN
         INSERT INTO TEMP_PROM(prom_impact) VALUES('failed1');
         NULL;
         END;
    --NULL;
    -- END;
    --COMMIT;
    --END;
    /* BEGIN
    INSERT INTO TEMP_PROM(PROM_NUM,PROM_IMPACT) VALUES(:NEW.prom_prom_number,:NEW.prom_impact);
    EXCEPTION WHEN OTHERS THEN
    --INSERT INTO TEMP_PROM(prom_impact) VALUES('failed');
    NULL;
    END;
    COMMIT;
    --COMMIT;
    /* ELSIF v_prom_imp_p2>0 THEN
    -- v_prom_imp_p2
    IF :NEW.prom_impact IS NOT NULL THEN
    BEGIN
    UPDATE PROBLEMS SET PROM_IMPACT=:NEW.PROM_IMPACT WHERE prom_number=:NEW.prom_prom_number;
    EXCEPTION WHEN OTHERS THEN
    BEGIN
         ecode := SQLCODE;
    emesg := SQLERRM;
    --BEGIN
    INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed'||ecode,emesg);
    COMMIT;
    --EXCEPTION WHEN OTHERS THEN
         NULL;
         END;
    NULL;
    END;
    COMMIT;
    BEGIN
    INSERT INTO TEMP_PROM(PROM_NUM,PROM_IMPACT) VALUES(:NEW.prom_prom_number,:NEW.prom_impact);
    EXCEPTION WHEN OTHERS THEN
    NULL;
    END;
    COMMIT;*/
    --UPDATE PROBLEMS SET PROM_IMPACT=:NEW.PROM_IMPACT WHERE prom_number=:NEW.prom_prom_number;
    -- COMMIT;
    -- END IF;
    END IF;
    END IF;
    EXCEPTION WHEN OTHERS THEN
    INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed2'||ecode,emesg);
    COMMIT;
    NULL;
    END;
    /

    Please do not take this the wrong way, my intention is not to be insulting, but from reading what you've posted I have no idea what you are doing or in what version of what product(s).
    What I can tell you, though, is that your explicit cursor declarations with explicit OPEN and FETCH have no business in your code. Neither do incremental commits belong in any code. Nor does the following:
    EXCEPTION WHEN OTHERS THEN
    INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed2'||ecode,emesg);
    COMMIT;
    NULL;belong in any code. What is NULL doing there? And why are there any commits in your trigger? Your use of PRAGMA AUTONOMOUS TRANSACTION to allow these commits is similarly unexplainable. It is no wonder you are getting deadlocks.
    You need to push away from the keyboard and take SQL and PL/SQL courses and learn the basics. While looking for a good course in your area get a copy of any of Tom Kyte's books and start reading it and practicing with the examples.

  • How do you keep macbook pro running quickly

    I always thought that using a MAC would eliminate the need to re-image a machine like you have to do with Windows. However, my recently purchased MacBook Pro 13" retina display with 8Gb RAM, 3Ghz i7 processor is already beginning to slow down - just like a Windows laptop. I have used MacKeeper in the past, and that has improved the performance of previous MacBook Air's that I had. However, I have been warned off MacKeeper (anyone have any evidence that this is a real, solid, non-invasive application that is safe to run?).
    Just need some help in how to keep this great machine humming - it's only 2 months old!
    Thanks

    azb956 wrote:
    ... I have used MacKeeper in the past,...
    Read here  >  https://discussions.apple.com/docs/DOC-3036
    More Info here  >  http://www.reedcorner.net/mmg/
    azb956 wrote:
    ... my recently purchased MacBook Pro 13" retina display with 8Gb RAM, 3Ghz i7 processor is already beginning to slow down -...
    Basically... Make sure you have enough Free Hard Drive space for your Mac to Perform as expected...
    This is what Apple has to say.
    http://support.apple.com/kb/PH10798
    Also see Here  >  http://www.reedcorner.net/mpg/
    More Info here...
    http://www.thexlab.com/faqs/maintainingmacosx.html
    Mac OS X: About background maintenance tasks

  • Keep getting cut off while waiting for sales!!!!!!...

    This is so annoying. Twice now I have contacted live chat  re getting a youview box and they have connected me to sales where I have waited 8 mins and 5 mins before being cut off.
    do bt not want any business?? somebody please at bt sort yourselves out

    Hi liannempx, 
    Thanks for your post.
    Did you get through to sales yet? If not please send me in your details using the "Contact The Mods" link found in my profile and I will be in touch to help. 
    Cheers,
    OlgaC 
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • How do i make program wait for user input in some dialog box?

    basicly function public UserData getUserData()
    displays window and returns a value when somebody has pressed OK in JFrame. How?

    Extend from JDialog instead of JFrame and it'll give you the waiting that you need.
    To use a JFrame is a little more involved.
    I had to the other day also. I wanted to have a dialog that would be both a dialog and a JFrame. Reason: when the app started up, I wanted to get some data from it (and have it appear in the task bar for normal application selection), and also wanted the app to call the same window when running but as a dialog (ie: no extra task bar icon). However only the JDialog stopped the calling thread for the dialog.
    To get the JFrame to do the same, I invoked a thread and piled all of the logic into that, and when the user did all that I wanted them to, closed the Frame and released the thread with all of the statefull stuff that I wanted.
    Worked a treat.

  • How do you keep iPhone charged while connected to carplay

    How do you keep iPhone charged in the car while it is connected to the cable for CARPLAY?

    The next time you connect your iPad to your laptop, click on your iPad under Devices and then click on the Apps tab on top. Once it opens and lists all your apps in iTunes on the left (both iPad and iPhone ), simply uncheck the boxes next to the iPhone apps you wish to leave off from future syncs. They will still be in iTunes and available for your iPhone, but won't be synced to your iPad. Click on Apply.

  • How do you keep your VPN clients up to date?

    Hi, how do you keep your Cisco VPN clients up to date? Our users connect to a Cisco 3015 Concentrator. It needs to be as automatic as possible.
    Thanks

    Check this link,
    http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_cli
    ent46/administration/guide/vcAch3.html
    Example:
    Steps to perform an automatic update for VPN client :
    ===================================================
    1. Download update-4.8.00.0440-major-K9 file on your PC from the link below and unzip it.
    http://www.cisco.com/cgi-bin/tablebuild.pl/vpnclient-3des
    It will have the following files::
    - binary_config.ini
    - sig.dat
    - vpnclient-win-is-8.00.0440-k9.exe
    - vpnclient-win-msi-8.00.0440-k9.exe
    2. Create a webserver with a folder and move all the above files to this folder on webserver.
    3. Now on your vpn client create a new profile. This profile file will appear in the profiles folder of the vpn client. Copy this file to your desktop and zip it. Name the
    zipped file as profiles.zip. Delete the profile from the client.
    4. Make a copy of your binary_config.ini on your desktop. Rename it to new_update_config.ini. This is just to make sure its not saved as a txt file.
    Open the above file and write the following on it:
    [Autoupdate]
    Required=1
    5. Now move the new_update_config.ini and profiles.zip to the webserver. Once we browse to the webserver it should look like --
    http://webserver/~razshah/vpn_profile_update462/
    Index of /~razshah/vpn_profile_update462
    Name Last modified Size Description
    Parent Directory 09-Mar-2005 13:24 -
    binary_config.ini 09-Mar-2005 13:26 1k
    new_update_config.ini 11-Mar-2005 11:35 1k
    profiles.zip 09-Mar-2005 13:26 1k
    sig.dat 09-Mar-2005 13:26 2k
    vpnclient-win-is-4.6..> 09-Mar-2005 13:26 7.6M
    vpnclient-win-msi-4...> 09-Mar-2005 13:26 10.3M
    6. The concentrator is configured as follows:
    Client Type is Windows
    URL http://webserver/~razshah/vpn_profile_update462
    Revisions 4.6
    7. On your PC go to the VPN Client > updates folder. Delete the update_config file if its already there. This folder should have only autoinstall (this file will be added if update works) autoupdate header files.
    The update does take about 5 mins. To see the new file we have to close and reopen the client. Once connected make sure you are able to browse to the webserver and see all the files.
    1- Auto update runs only on Windows 2000 and Windows XP, all other client types update manually. Windows NT users get notified and can get an update manually from the update server.
    2- Remote users must have the VPN Client for Windows 4.6 or greater installed on their PCs to use the automatic update feature.
    Regards,
    ~JG

  • How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app?  When I leave the car and return to continue hearing a book, it has switched to iTunes.

    How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app?  When I leave the car and return to continue hearing a book, it has switched to iTunes.

    The first time an iPhone is connected to iTunes that is used to sync with another iPhone or iOS device, you are prompted to transfer the backup for the other iPhone or iOS device or to set up the iPhone as a new iPhone.
    The former does as provided - it transfers the backup for the other iPhone or iOS device to the iPhone replacing all data on the iPhone that is included with the backup being transferred. The latter does nothing allowing you to make your various selections for the iPhone sync preferences with iTunes.
    This is designed to be done right away with a new iPhone.
    If you don't have a backup for the iPhone with iTunes on your computer and don't have an iCloud backup that hasn't been updated since choosing to transfer the backup for your iPod Touch to the iPhone, the data that was on the iPhone is gone.

  • How do you keep your message from appearring on a locked screen

    how do you keep your message from appearring on a locked screen

    Go to SETTINGS --> NOTIFICATIONS --> MESSAGES
    Change "View in lock screen" to OFF
    That should sort it for you.

  • How do you keep your purchased apps if you are forced to change your Apple ID?

    How do you keep your purchased apps if you are forced to change your Apple ID? A good example is if you are forced to change your email, which you use as your Apple ID.  what if it is a security app and you lose a lot of data if you lose the app? Why are the apps tied to the Apple ID rather than the user? Why is it impossible to globally change the Apple I D?

    All content is tied to the account, but you can change the primary email address on an account e.g. you can log into your account via the Store > View Account on your computer's iTunes and there should be an Edit button to the right of your account id on your account's page, or similarly on your iPad try tapping on your id in Settings > iTunes & App Store and view your account. Or you can update it by logging into it via this page http://appleid.apple.com . You shouldn't lose any content on the account if you update it.
    After updating the account you may need to log out of your iPad by tapping on your id in Settings > iTunes & App Store and then log back in with the updated version for it to be 'refreshed' on it

  • How do you tell if your running leopard or lion?

    How can you tell if your running snow Leopard or Lion?

    go to the "apple logo" at the top left
    click on "about this mac"
    if it says "10.6.8" your running snow leopard
    if it says "10.7" your running LION

  • HT4236 How do you keep photos in the same sequence on the iPhone that they are on the PC folder?

    How do you keep photos in the same sequence in the iPhone as they are in the folder on the PC??

    When I sync my photos they are listed alphabetically (by folder) and within the folders, listed alphabetically again by the name assigned to the photo. The only way I can think of to keep the order that you have in your computer would be to assign a letter as a prefix to each photo. If you have more than 26 photos in a folder, you can double the letters, etc. I think that will keep the photos in the order you want.

  • When burning a playlist to disc, how do you keep the songs in original order?

    When burning a playlist to disc, how do you keep the songs in original order?

    If you are burning an audio CD, they will burn in sequential order as in your playlist.
    If you are burning an MP3 CD or a data CD, they will burn as individual files, and can be sorted any way you like when you view the CD.  For an MP3 CD, the files will be prepended with a sequence number, so if you sort by filename, they will be in the original order.

Maybe you are looking for

  • Problems with new fields added for tc MASS for material master data.

    Hello to all. We created new fields in MARA table and added to the process of the tc MASS. We made the following steps and it almost works correctly: 1-Add new fields to the object ZBUS1001, copy of bus BUS1001. 2-Add new fields to table T130F 3-Add

  • I Can't create and add en entry in Ldap using Java

    Hello there, I'm pretty new to LDAP programming, and I have been trying to create and add an entry to a directory using the code sample provided in the JNDI tutorial, but for some reasons, I didn't manage. the configuration file is well set up becaus

  • CRMD_SRV_REFOBJ

    Hi Friends, Could someone give some information about this please? In what cases does it get updated? what is the significance of it? to be precise, what does the field IB_COMP_VALID signify and where does it get updated from? Thanks, Zid.

  • DNS Fails for NFS Server Shares

    When I boot, I get a message that DNS has failed for the NFS server mounts, and the shares do not mount. The message says, "mount.nfs: DNS resolution failed for server: name or service unknown." I have to mount the shares myself. Then when rebooting,

  • Xerox Phaser 4500 : "remote host did not accept file (32)"

    Am trying to print to our networked Xerox Phaser 4500DT at work. Set it up as an LPR printer as I did with Tiger (setting it up as IPP gives a permission denied error when you try to print), and printed a test page. Worked fine. Try to print any sort