Help please : on/off switch

Hi eveybody, 
I have problem with my programm.. 
I would like that my case "scenario_en_cours" be turned on or off and if it's "off" to change on different tabbed. 
Can someone help me please ? 
Cordially
Solved!
Go to Solution.
Attachments:
Mode_Auto_Final(1).vi ‏216 KB

The terminal for the tab control (Commande onglets) is in the outer loop. The only time that is read is when all the code in the current case has completed.  That only happens when Stop_scenario has been pressed and the bottom while loop in "scenario_en_cours" has received the  "Ecriture_gradient"  command via the queue. Tha only appears to occur in the "rampe" case of the for loop.
I cannot tell what cases occur when, so it is difficult to see what is happening. It is possible that pressing Stop_scenario will cause the upper two loops to stop with the lower loop in some other case. That could leave the event structure with the Stop_scenario Value change event queued up but not executing because the case structure is in a different case.
This whole progam should probably be re-configured to to use a Producer/Consumer Architecture. Use only one event structure for the program - in the Producer loop. The Consumer loop would implement a state machine. Most likely this would eliminate the need for the nested loops, the local variables, and the Value property nodes. The number and distribution of the Wait functions seems awkward and likely to make the timing different from what you really want.
Lynn

Similar Messages

  • Java script on off switch issue in IE, Please help

    Hello;
    I wrote this little script that is an on / off switch for a background sound on my web page. I have it working in all browsers accept all versions of IE. I have been pulling my hair out for weeks trying to get this script to work in IE and have only met failure. There has to be a way to get this thing to fire properly and I just can't figure out what I am missing.You can take this script, add your own sound and see how it works. It is very simple.
    code:
    <head>
    <script type="text/javascript">
    function stopSound(){
    document.getElementById('PacSound').src='../video/silence.wav';}
    function playSound() {
    document.getElementById('PacSound').src='../video/RollerPop.wav'; }
    </script>
    </head>
    <body>
    <embed src="../video/RollerPop.wav" id="PacSound" autostart=true loop=true volume=100  hidden=true>
    <noembed><bgsound src="../video/RollerPop.wav" loop="-1" volume="100" delay="0" id="PacSound" hidden="true"/></noembed>
    <!--- the links --->
    <a href="javascript:stopSound();" >Stop Sound</a><br />
    <br />
    <br />
    <a href="javascript:playSound();" >play sound</a>
    </body>
    I am so frustrated with this. I have tried a number of different approaches to this code and I always meet failure. I am trying to make it work so the page does not re-load it's self, just turns it on and or off.
    Can anyone please help me figure this out?
    Thank You

    I suggest a search on the Internet for Microsoft and Javascript. Be as specific as you can and you might turn up a page or resource that shows what Microsoft supports.
    Beth

  • My phone although fully charged has just switched itself off and won't turn back on again! I'm just coming to the end of a 2 year contract and never had any problems with it. Help please!

    My iPhone 4 although fully charges has just switched itself off and won't turn back on again. I've tried taking the sim card out but nothing happens. I'm just coming to the end of a 2 year contract and never had any problems with it before. Help please.

    Start here
    http://support.apple.com/kb/HT1430

  • Apple iPAD 2.  Needs password to unlock iPAD; however there is a permanent keyboard displayed on the screen that does not respond to touch. iPAD switches on with button but does not turn off using it at moment.  Can you help please?

    Apple iPAD 2.  Needs password to unlock iPAD; however there is a permanent keyboard displayed on the screen that does not respond to touch. iPAD switches on with button but does not turn off using it at moment.  Can you help please?

    Try a reboot by holding both the power and home buttons until the apple logo appears, ignore the red slider if that appears.  See if that clears the glitch.

  • Hi. I have downloaded the new iOS 6.0 software update but now I can't switch off the shuffle function when playing music. Help please. Stuart

    Hi. I have downloaded the new iOS 6.0 software update but now I can't switch off the shuffle function when playing music. Help please. Stuart

    I have the same problem and haven't been able to figure it out either

  • I have macbook pro running on 10.9.2 every time i download music files and transfare the it duplicates the file is there any way off switching it off please help

    i have macbook pro running on 10.9.2 every time i download music files and transfare the it duplicates the file is there any way off switching it off please help

    Open Automator
    Choose Folder Action for type of document
    At the top, for Folder action receives files and folders added to, select Other...
    in the window that opens, select your Downloads folder, and then Choose
    from the Actions on the left, drag Filter Finder Items over to the column on the right
    Where it says Any Content, select Kind
    Where it says Any, select music
    Drag Move Finder Items over to the rightfor To: select other, and navigate to your user folder > Music > iTunes > iTunes Media > Automatically Add to iTunes
    it should look like this:
    close the window and give the folder action a name.

  • HT201263 I did the above, my iphone lost all my apps, it is switching screens going to voice control automatically won't shut off....this is becoming very frustrating! HELP PLEASE!

    I woke up to my iPhone with a plug in picture to ITunes.  I did a back up and restore according to the instructions on ITunes. I now lost all my apps, my voice control goes on automatically and my screens are switching by themselves even during texting....HELP Please! What is the next step before I throw this thing through the window?

    Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.

  • IPod touch 2G. Not syncing, not restoring, not switching on. iTunes 10.4.1. Help Please!

    iPod touch 2G. Not syncing, not restoring, not switching on. iTunes 10.4.1. Help Please!

    - What happens when you try to sync and restore?
    - If iTunes is not seing the iPod see if restting the iPod will either fix the problem or allow you to see it in iTunes so you can restore the iPod
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Next place the iPod in recovery mode and then try to restore the iPod.  For recovery mode see:
    iPhone and iPod touch: Unable to update or restore

  • Switch method need help please ;-(

    Hello, I am having trouble with this switch method. I have yet ot construct the AirplaneList object "plane". For I have yet to be taught about it properly
    Can someone at least help me with the switch incident. I have learnt how to make a menu for the user to input the letters A-F in uppercase and lower case. However I am unsure on how to associate "case a" to the method
    //add Airplane
    public static void option1 (AirplaneList plane)
    ? I can get it to print out "case a" continueosly, but how to I associate it to the method. I am aware that the AirplaneList will be a class I have to define earlier, and that "plane" is an object I will need to intiate. If anyone will be willing to help me construct this part of the code I can award them Duke dollars.
    as far as I can tell the constructor method would start off like
    AirplaneList plane = new AirplaneList;
    ok? then what do I do?
    do I define its methods then?
    plane.add()
    Ok well this is the majority of the code I have already.
    import javax.swing.JOptionPane; //indicates that the compiler should load class JOptionPane for use in this application.
    public class AirplaneListT
         public static void main (String[] args)
    throws java.io.IOException
              char choice; //Words choice and size are the names of variables
         //     int size; //This declaration specifies that the variable are of data type char and int
         //     size = EasyIn.getInt(); // Converts size from int to something?
         //Char - a variable that may only hold a single lowercase letter, a single uppercase letter, a single digit or a special character
    //(such as x, $, 7 and *)
         // The code below creates a dialog box for the user to input a choice
         String inputcode;
         inputcode = JOptionPane.showInputDialog("A: add an airplane from the list\n" +
                                  "B: remove an airplane from the list\n" +
                                  "C: check if the list is empty\n" +
                                  "D: check if the list is full\n" +
                                  "E: display the list\n" +
                                  "F: quit\n" );
         JOptionPane.showMessageDialog(null, "You have chosen choice " + inputcode);
    //The null first argument indicates that the message dialog will appear in the center of the screen. The 2nd is the message to display
    do
         // get choice from user
         choice = inputcode.toUpperCase().charAt(0);
              System.out.println();
              //process menu options
              switch(choice)
                   case 'A':
                   case 'a':
                        JOptionPane.showMessageDialog(null, "Case " + inputcode);
                        break;     //done processing case
                   case 'B':
                   case 'b':
                        JOptionPane.showMessageDialog(null, "Case " + inputcode);
                        break;     //done processing case
                   case 'C':
                   case 'c':
                        JOptionPane.showMessageDialog(null, "Case " + inputcode);
                        break;     //done processing case
                   case 'D':
                   case 'd':
                        JOptionPane.showMessageDialog(null, "Case " + inputcode);
                        break;     //done processing case
                   case 'E':
                   case 'e':
                        JOptionPane.showMessageDialog(null, "Case " + inputcode);
                        break;     //done processing case
                   case 'F':
                   case 'f':
                        JOptionPane.showMessageDialog(null, "Case " + inputcode);
                        break;     //done processing case
                   default:
                        JOptionPane.showMessageDialog(null, "Invalid entry!");
                        break;     //done processing case
         }while (choice!= 'F' || //end AirplaneList tester
         choice!= 'f' );
    //add Airplane
         public static void option1 (AirplaneList plane)
              String flight;
              flight = JOptionPane.showInputDialog("Please enter airplane filght number" );
              //create an Airplane object to add to list
              Airplane flight = new Airplane();
              //add string to list if the list is not full
              //access the 'add(Airplane)' method from the AirplaneList class;
              //if the list is full, return a statement to the user indicating that no more plane can be added onto the list
         //remove airplane
         public static void option2 ()
              //get position of item
         string enterpos;
         enterpos = JOptionPane.showInputDialog("Please enter position to remove" );
              System.out.print(":")
              int plane = Easyln.getint();
              // delete item if it exists
              //access the 'remove(Airplane)' method from the AirplaneList class;
              //if the user enter an invalid number for the position, returen a statement
              //indicating that there is no such posititon.
         //check if empty
         public static void option3 (AirplaneList plane)
              if (plane.isEmpty())
                   JOptionPane.showInputDialog("list is empty" );
              else
                   JOptionPane.showInputDialog("list is not empty" );
         //check if full
         public static void option4 (AirplaneList plane)
              if (plane.isFull())
                   JOptionPane.showInputDialog("list is full" );
              else
                   JOptionPane.showInputDialog("list is not full" );
         //display list
         public static void option5 (AirplaneList plane)
              if (plane.isEmpty())     //no need to display if list is empty
                   JOptionPane.showInputDialog("list is empty" );
              else
                   JOptionPane.showInputDialog("Airplanes in list are" );
                   //loop through list
         System.exit(0); //Terminates the program

    case 'A':
    case 'a':
    JOptionPane.showMessageDialog(null, "Case " + " + inputcode);
    break;     //done processing case
    ok are u saying if i invoke a method i go something
    like this?
    case 'A':
    case 'a':
    JOptionPane.showMessageDialog(null, "Case " + " + inputcode);
    AirplaneList.option1(); //Tell Airplanelist to add                    
    break;     //done processing caseIn both cases, you're calling methods. In the latter case, you're calling two methods.
    What's the problem exactly? What part are you having trouble with?
    ... so that then when case a is activated it should go
    onto option1 method?That's one thing you can do, yes. I don't know if you should do it. It depends on what your program needs to do.
    //add Airplane
         public static void option1 (AirplaneList plane)
              String flight;
    flight = JOptionPane.showInputDialog("Please enter
    r airplane filght number" );
              //create an Airplane object to add to list
              Airplane flight = new Airplane();
              //add string to list if the list is not full
    //access the 'add(Airplane)' method from the
    e AirplaneList class;
    //if the list is full, return a statement to the
    e user indicating that no more plane can be added onto
    the list
         }OK, this looks odd. Is this what you're having trouble with?
    BTW, I'd strongly suggest making a stronger separation of application code from GUI code.

  • Hi. My iphone 4s switch of without any reason. Help please

    Help please.
    My iphone 4s switch off often without a reason. what can I do?

    Have you tried either a reset or restore?  If not, do so.

  • I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it

    I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work

    Hi Timia,
    If you are using Safari as a web browser :-
    Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
    If you are using Google Chrome as the web browser :-
      Open Google Chrome.
      In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
      In the "Search" section, select Google from the drop-down menu.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute then turn on wifi on iMac before it can reconnect. Need some help please.

    Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
    Already gone through troubleshooting guide a zillion times. Thanks.

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • HT1349 hi guys i have 2 ? 1 my daughters iphone is trying to update on my mac cant get it off help please ,,, 2 i have an old apple id and when i try to up date it keeps looking for the password how do i delete this old apple id help

    hi guys i have 2 ? 1 my daughters iphone is trying to update on my mac cant get it off help please ,,, 2 i have an old apple id and when i try to up date it keeps looking for the password how do i delete this old apple id help

    Hi.
    I had a similar problem myself. This is what helped me.
    I went to the App store app, scrolled to the bottom, logged out of the account, re logged in with my Apple ID.  Then went back to app updates. Once I put in my ID password all was fine.

  • My phone doesn't want to turn off or on, it gives me the apple logo and doesn't turn on at all, help please??

    my phone doesn't want to turn off or on, it gives me the apple logo and doesn't turn on at all, help please??

    Do a reset by holding the power and home button until the apple logo appears ignoring the slide to power off (no data loss).

  • I have an Ipod touch and cannot take it off headphone mode, Can anyone help please.

    I have an Ipod touch and cannot take it off headphone mode, Can anyone help please.
    Thankyou

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

Maybe you are looking for

  • Ipad won't automatically download iphone apps

    I have an iphone and an ipad.  Both sync with the same computer (an Imac).  I usually use my iphone to download apps while the ipad is powered off.  I want tthe iphone apps to automatically download to the ipad when the ipad is connected to my home w

  • When my iTunes ask if I want to download iTunes 10.6.3, I click "Download iTunes" and it still doesn't dowload. What do I do?

    When my iTunes offers to download the 10.6.3 software, I click "Download iTunes" and it still doesn't download. What do I do?

  • Consumption value updated for zero value materials

    Hi Masters I have maintained value of a material in material master as zero.Although it is maintained zero, When the material is issued using 261 accounting document got generated and showin the following entries   Inventory a/c Consumption a/c(+) Ho

  • Locking Screen Resolution with KVM

    I have a MacBook Pro 15" running 10.4.8. I have a Iogear DVI KVM attached to the DVI port. The monitor attached to the KVM is a Gateway FPD2485W 24" LCD with optimal resolution of 1920x1200. The Mac performs wonderfully at this resolution. The proble

  • Dynamic web pages and Access

    I am starting to work on some dynamic web pages to upload information to an Access 2003 database using ASP. What I would like to do is to give the user a chance to review their information before it actually gets sent to the database. That is to say,