Always leads when I stop my loop

Dear all,

Now, I used OR-6008, when I used case structure of program via the digital output. You can turn on and off. But when I tried to turn it on, then stop button while loop. The light that I connect to is always when I stop my program. How can I turn off which led when I stop my program?

Thank you

1. your outter loop is not necessary at all.

2. you have a lot of duplicate logic.  If you're not over your threshold, of course you will be inferior to her.  If you can do a lot to reduce your logic.

3 things will make a lot more sense if you convert your DAQ meter data immediately after the DAQ Assistant.

4. move your writing digital output outside the structure of the case.  Also allow the timer to influence the case which is called.  In this way, you can tell the exit to go simply false when your stop the loop condition is met.

5. as you collect only 1 analog value at a time, change your chart to a graph.  A graph has a history built into it, which I'm sure you would like to have.

Tags: NI Hardware

Similar Questions

  • YouTube audio plays double in a tab and we always play when I stop the video

    I play Youtube videos, play audio even twice with slightly delayed in the meantime. If I stop the video play continues. I don't know about this problem.

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • Under Windows, you can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac, you can open Firefox 4.0 + in Safe Mode holding the key option key when starting Firefox.
    • Under Linux, you can open Firefox 4.0 + with leaving Firefox then go to your Terminal and running Safe Mode: firefox-safe-mode (you may need to specify the installation path of Firefox for example/usr/lib/firefox)
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you.

  • goes into infinity "tabs" loop when I type any email 'Contact us' button how can I stop the loop?

    goes into infinity "tabs" loop when I type any email 'Contact us' button how can I stop the loop?

    You use a Mac, or you're on another platform?

    Any other use of platforms:

    • Mac: Firefox > Preferences
    • Linux: Edit > Preferences
    • Windows: Firefox > Options

    Press F10, if the menu bar is hidden under Windows and Linux, or use "> Firefox Options/preferences.

  • How if the stop message loop when I put looped at a specific time.

    I don't know how while loop stop at a specific time. Generally. While the loop stops when we enter into stop button or mistakes have been made. now I want to while loop stop at a specific time, 40ms, 20ms and so on. How can I achieve that. Thank you!

    Use the number of cycles. Get the current number of cycles when you run this loop.  Add your time (20 ms) to the starting value, creating a 'downtime '. At each iteration number of cycles review and compare the current value of the value 'stop time '.  If it is higher, then stop, otherwise continue.

    Note that on an operating system, you will see some jitter in trying to use loop as small as 20 ms times.  You may need to go to a real-time, or something hardware system timed for any accuracy or stability to these time scales.

    Lynn

  • Stop fieldChange loops

    I use a FieldChangeListener on two fields, and when one of the two fields are changed by the user, the other field is updated by the program.

    For example, I want a change of user to the first field to update the second field and stop.

    A change of user for the second field should update the first field and stop.

    How can I keep it from looping automatically from one to the other?

    Is there a way to determine if the second field is get updated because:

    (1) the first field has been changed by the user or

    (2) the second field has been changed by the user?

    I tried to check if (FieldChangeListener.PROGRAMMATIC), but it is always true.

    Thank you...

    Thanks for the interest.  I found a solution.

    I had two fields (think payment and amount).  Given that the price of the order of the day is fixed, I could change the amount I pay (payment) and the amount I would receive would update.  Or I could change the amount I want to buy and update the payment.

    The problem I had was that because these two areas were controlled by the listener of domain change, as soon as it would automatically update the other, an infinite loop would begin.

    I solved it by creating a new Boolean variable that I set to false by default.

    I check this variable in the fieldChanged method and if it is true, I put it to false and back.

    When the field is changed, I immediately put the new variable to false to stop the loop.

    Here is an excerpt:

    boolean changeLoop = false;        
    
    public void fieldChanged(Field field, int context) {
    
        if (changeLoop) {
            changeLoop = false;
            return;
        }
        if (field instanceof BitmapField) {
            changeLoop = true;
            payment = pricField.getDouble() * quantity.getDouble();
            paymentField.setText(toString(payment);
        }
        if (field instanceof BasicEditField) {
            changeLoop = true;
            payment = Double.parseDouble(paymentField.getText());
            quantity = payment / pricField.getDouble();
            quantityField.setDouble(quantity);
        }
    }
    
  • HP ENVY - 14 t Windows 7 Prof: NVIDIA incompatible with windows 7 64 bit and always crush when you watch videos using any Explorer

    Hi all

    I had several times a day with my computer and all can make crashes is forced to stop by the power button on my laptop. Whenever my computer started, NVIDIA appears a windows says:

    "C:\Users\AppDATA\Local\NVIDIA\NvBackend\ApplicationOntology\NvOAWrapperCache.exe cannot start or run due to incompatibility with 64-bit Windows versions."

    So I was wondering if this is the reason to crush and my laptop always down when I use Chrome for Youtbute frequently.

    My hardward is NVIDIA GeForce 940 M.

    Thanks for any answers or help in advance.

    Hello piggyiszzz,

    Here I paste the link for the driver that should solve your problem

    http://www.GeForce.com/drivers/results/107562

    This driver is up to date.

    Can you try to install and let me know.

    Concerning

  • lets stop the loop parralle notification

    Hello

    Everyone

    I created several loops producer/connsumer.

    A loop producer is business event that hold value control change of FP and then send queue consumer loop (solenoid)

    The other separate producer loop is to NEITHER 9213 display Temp data, I use another loop of consumer to acquire the data of NI9213

    I don't know if I can use notification to stop the two pairs of earrings.

    I hope that when I click on stop the whole process in PF button, then, the True value is sent to the notification. The NI 9213 producer loop then get this message to stop the loop. Now, stop process only control solenoid buttonhole since this button is in the structure of the event.

    I tried the notification. When I put wait notification NI 9213 looping, this loopkeep wait any notification and doesnot monitor temporary data

    Thank you


  • How to stop a loop "for".

    Hello

    Do you know how I can stop a loop for? because when I click on the stop switch on my front, the VI didn't stop and continue to perform the loop.

    If you have a newer version of LabVIEW, you can right click on your loop For and show the terminal stop.  This will allow you to stop the execution of the loop For the earlier that you would otherwise based on the N or the number of items in an array of automatic indexation.

  • stop the loop inside while loop

    Hi all

    Is there a way to stop a loop within a while loop? Error-free program will stop running when you press the stop button, but I want to while loop continues to run in and only for the loop stops when the condition is met.

    Thank you!

    Hi TayAus 1.

    If you want to run the execution once? Maybe something like below? The code inside the structure of events can only run when the event source is triggered. For example, the code in the digital works only when it detects a change in the numerical value (just an example).

    When the button is selected, it should raise the event to stop as shown below:

    If you want to create the event source, create the structure of the event > right-click on the frame and select edit events dealing with this... > This should open Edit events.

    The example below is that I put the event source for the change in the value of x and x 2.

    So when x or x 2 value is changed, executes the code in the sous-schema event shown below.

    Warm greetings,

    Lennard.C

  • Why the Date is always shown when I move my mouse over the clock in the taskbar? Most of the time, it works very well!

    Why does the Date not always appear when I hover my mouse by the clock in the taskbar on my Tablet? It displays immediately if I click somewhere near where on the clock.

    Often it doesn't appear when I go through the clock. Sometimes, it does. I don't know why he sometimes reacts different.

    And didn't someone jump in and start accusing malware etc. Just read my profile. That is not the issue and I don't want to be around anyone who wants just the head in this direction from the outset or even at all! Sorry on my intolerance but I think there are far too many people on the forums who dive on the issue of malware when someone asked a Question on how to change their settings to stop something that happens. I'm sick of this lazy malware junk.

    This is a bug. All XP do. Clicking the taskbar if it "development works most of the time.

  • When I stopped Windows XP I lose all my settings

    -Favorites, shortcuts and audio settings.

    He just started to happen a few days ago. I don't know if I clicked the wrong thing in tools, Internet Options

    How can I get windows to save my settings when I stopped?

    Thank you.

    This looks like a corrupted user profile.  To confirm this, log on as a different user.  If the other user does not have this problem, then it's a problem of user profile.

    When Windows detects a corrupted user profile, it will continue to connect by using a temporary user profile that is deleted when you close the session.  That's why your settings seem to disappear.  Recovery of a corrupted profile is not very difficult.  Sometimes simply perform a system restore will correct the condition.  The procedure is described here:

    "Windows XP problems if your profile is corrupted"
      <>http://support.Microsoft.com/kb/326688 >

    Another approach is to manually restore your damaged profile.  To do this, use one of the following procedures:

    "How to recover damaged Windows XP user profile"
      <>http://support.Microsoft.com/kb/555473 >
    "How to copy data from a corrupted to a new profile in Windows XP user profile"
      <>http://support.Microsoft.com/kb/811151 >

    Corrupt profiles are almost always accompanied by areas of damaged hard drive.  After recovering, a full check disk (chkdsk) with the ' / F ' or ' / R ' option is highly recommended.  This procedure will be done at the next reboot and can easily take more than 2 hours to complete depending on the size of the hard drive and the amount of corruption, and can not be interrupted.  The procedure to do this is described here:

    "How to perform disk error in Windows XP check"
      <>http://support.Microsoft.com/kb/315265 >

    HTH,
    JW

  • I want to stop the loop button shape 10g

    I want to stop a loop in the forms of pushbutton 10g it's like (SwingWorker() in java) (DoEvent() in .net)
    The problem in forms 10g that when you start a loop shape freezes and you are unable to broadcast any button on the form, I found the solution for this in form 6i by package d2kwutil * WIN_API_UTILITY. InterruptCheck (hButton) *.
    But in 10g I can't find a solution, Please help > > > > >


    declare
    hButton PLS_INTEGER;
    Start
    : interruptcheck.counter: = 0;
    hButton: = get_item_property('INTERRUPTCHECK.) PB_OFF', WINDOW_HANDLE);
    go_item ('interruptcheck.loopcount');
    set_item_property('INTERRUPTCHECK.) PB_OFF', ENABLED, PROPERTY_TRUE);
    set_item_property('INTERRUPTCHECK.) PB', ENABLED, PROPERTY_FALSE);
    set_application_property (CURSOR_STYLE, 'HELP');
    set_application_property (CURSOR_STYLE, 'WAIT < d2kwut60 >');
    I'm in 1.:interruptcheck.loopcount LOOP
    If WIN_API_UTILITY. InterruptCheck (hButton) then
    "exit";
    end if;
    : interruptcheck.counter: = i;
    synchronize;
    end loop;
    set_item_property('INTERRUPTCHECK.) PB_OFF', ENABLED, PROPERTY_FALSE);
    set_item_property('INTERRUPTCHECK.) PB', ENABLED, PROPERTY_TRUE);

    set_application_property (CURSOR_STYLE, 'DEFAULT');
    end;

    Published by: wael amar on May 1st, 2010 23:03

    OK, here's a unit test to work.

    The idea is taken from an article in oracle magazine (I don't have at hand, she, so I tried to restore it and "memory".) I remember the original was German doag-magazine and was written by Gerd Volberg).

    How to make the loop:

    PROCEDURE PR_DO_THE_LOOP IS
      nNumberInOneStep NUMBER:=2;
      tm               TIMER;
    BEGIN
         DEFAULT_VALUE(0, 'GLOBAL.INDEX');
      IF :GLOBAL.INDEX=0 THEN
           -- Didn't run yet, determine the max count
           :GLOBAL.MAX:=10000;
      END IF;
      LOOP
           -- Do the looping stuff
    
           -- Decrease counter
           nNumberInOneStep:=nNumberInOneStep-1;
           -- Increase globale counter
           :GLOBAL.INDEX:=:GLOBAL.INDEX+1;
           -- Exit conditions
           EXIT WHEN nNumberInOneStep=0;
           EXIT WHEN TO_NUMBER(:GLOBAL.INDEX)>=TO_NUMBER(:GLOBAL.MAX);
      END LOOP;
    
      -- reset index at end
      IF TO_NUMBER(:GLOBAL.INDEX)>=TO_NUMBER(:GLOBAL.MAX) THEN
           :GLOBAL.INDEX:=0;
      ELSE
           -- start timer for next iteration
           tm:=CREATE_TIMER('TM', 10, NO_REPEAT);
      END IF;
    END;
    

    The WHEN-TIMER-EXPIRED-trigger

    IF :GLOBAL.INTERRUPTED='Y' THEN
         MESSAGE('Interrupted at index ' || :GLOBAL.INDEX);
    ELSE
         PR_DO_THE_LOOP;
    END IF;
    

    The WHEN-button-PRESS-trigger the button stop

    :GLOBAL.INTERRUPTED:='Y';
    

    The WHEN-button-PRESS-trigger on 'start' - button

    :GLOBAL.INTERRUPTED:='N';
    PR_DO_THE_LOOP;
    
  • Can I configure Thunderbird to close all tabs when I stopped it for the next session starts fresh.

    I'd rather have a working platform clearly every time I start Thunderbird and only see relevant tabs at this session. If the program can be assigned to close all tabs automatically when I stopped, which would solve my problem.
    Thank you
    Keith Marshall.

    I guess your best bet is to click the left tab-"Close other tabs" before closing in Thunderbird.

  • I use 4 windows with multiple tabs, but I 'don't know why one of them (window) always close when I restar computer

    I use 4 windows with multiple tabs, but I 'don't know why one of them (window) always close when I restar computer

    Hello, by default the firefox session restore feature only allows you to save last 3 windows open. to change this, type on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.sessionstore.max_windows_undo. Double-click it and change its value to 4 (or more).

    http://KB.mozillazine.org/browser.sessionstore.max_windows_undo

  • Why my passwords are always deleted when I delete my cookies even when I leave the clear saved passwords box unchecked?

    Why my passwords are always deleted when I clear my cookies and history even when I leave the clear saved passwords box unchecked?

    It happens whenever I have erase my cookies etc.

    May be your unsaved preferences.

Maybe you are looking for