While loop, wait for the function and the stop button!

Hello

I have a while loop and a stop button. Inside my While loop - I have a 'Wait (x ms)' function. If I press the stop button, it does not block the program immediately, he expects ms x then stops the program. How can I get rid of this?

Thanks in advance for the help!


Tags: NI Software

Similar Questions

  • new SSD HP Pavilion HPE win 7 home Premium Error: Driver_Power_State_Failure Bluescreen from 30 to 45 minutes waiting for the stop down.

    Hello all, there

    I recently installed a new SSD in a HP Pavilion HPE with windows 7 Home premium. After this event I get bluescreen Driver_Power_State_Failure after about 30-45 minutes waiting for the computer to stop. I have a minidump file if this will be useful and I would be very grateful if someone could help me solve this problem :D

    Minidump: http://www.mediafire.com/?hy7so6n9af5f73v

    I hope this helps and all support is most appreciated!

    The tihub3.sys seems to be in question:

    BUCKET_ID: X64_0x9F_3_POWER_DOWN_IMAGE_tihub3.sys

    The tihub3.sys, which is dated January 14, 2011, is a Texas Instruments USB 3.0 driver so try to update this driver by installing the next update:

    http://h10025.www1.HP.com/ewfrf/WC/softwareDownloadIndex?softwareitem=CP-108667-1&CC=UK&DLC=en&LC=en&os=4063&Product=5144370&sw_lang=

  • Delete record behavior does not wait for the "submit" button

    I have master / detail pages as a whole.  Of all the detail, there are links to delete or update a record.  When I click the link to delete the folder, it goes to the confirmation page with the correct record.  Now, when I add the behavior delete record server and a button "submit", it is what is happening.  As soon as I click on the link to access the Delete Confirm page, deletes the record and the page redirects to the page that I put in the server behavior.  It does not display the confirmation page and does not wait for me to hit the button confirm.  The page runs and removes the page from the database.

    How can I get to wait until I hit the submit button?

    You must surround your request deletion with an "If" statement seeking a confirmation variable, then when the user clicks the confirmation link, you can pass the necessary variable and the ID of the record that the delete request is pregnant.

    As an alternative, you can use a JS alert fuction to ask if they are sure they want to delete the folder, and then delet allwo runs after confirmation to the user. To do this, you can use code like this...


    onclick = "return ('are you SURE you want to DELETE this record? confirm")">

    --
    Lawrence * Adobe Community Expert *.
    www.Cartweaver.com
    All Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • waiting for the task to be completed

    I inherited a program that tests a hardware device extensively.  A test turns or several times each channel of AI and bed the waveform of channel I.  I use a card PXI-6229 DAQ with c# .NET.  The program is suspended in the while loop, wait until the task is complete. This is the code:

    public bool TestThisChannel (object nullObject) {}
    Double coversionFactor;
    String name;
    String Description;
    _PXI6229_SLOT12.getChannelInfo ((int) nullObject, name, coversionFactor, to the Description);
    _PXI6229_SLOT12. StartAnalogInput6s (Name);
    for (int i = 0; i)< 5;="" i++)="" {="" 5="">
    _PXIChassis.SetPowerRelayOn (null);
    _PXIChassis.Wait500ms (null);
    _PXIChassis.SetPowerRelayOff (null);
    _PXIChassis.Wait500ms (null);
    }
               
    While {(_PXI6229_SLOT12.runningTask!=null)}
    } //Wait task is completed

    AnalogMultipleInputTask private task;
    runningTask of public work;
    private AsyncCallback analogCallback;
    Private AnalogMultiChannelReader analogInReader;
    public AnalogWaveformdata;

    Public Sub StartAnalogInput6s (string AIChannel)
    {
    Create a new task
    try {}
    AnalogMultipleInputTask = new Task();

    Create a virtual channel
    AnalogMultipleInputTask.AIChannels.CreateVoltageChannel (AIChannel, "",)
    (AITerminalConfiguration) (-1),-10, 10, AIVoltageUnits.Volts);

    Configure synchronization settings
                   
    AnalogMultipleInputTask.Timing.ConfigureSampleClock ("", 100000, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, 600000);
                   
    Check the task
    AnalogMultipleInputTask.Control (TaskAction.Verify);

    Prepare the table for the data
    runningTask = AnalogMultipleInputTask;
    analogInReader = new AnalogMultiChannelReader (AnalogMultipleInputTask.Stream);
    analogCallback = new AsyncCallback (EndAnalogInput);

    For .NET Framework 2.0 or a later version, use SynchronizeCallbacks to specify that the object
    Marshals the callbacks on the appropriate threads.
    analogInReader.SynchronizeCallbacks = true;
    analogInReader.BeginReadWaveform (600000, analogCallback, AnalogMultipleInputTask);
    } catch (Exception exception) {}
    MessageBox.Show (exception. (Message);
    runningTask = null;
    AnalogMultipleInputTask.Dispose ();
    }
    }

    public void EndAnalogInput (IAsyncResult ar)
    {
    Try
    {
    If (runningTask is ATR AsyncState)
    {
    Read the data of the channels
    data = analogInReader.EndReadWaveform (ar);
    }
    }
    catch (System.exception DaqException)
    {
    Display errors
    MessageBox.Show (exception. (Message);
    runningTask = null;

    AnalogMultipleInputTask.Dispose ();
    }
    }

    Any help will be appreciated.

    Thank you

    Howard

    Thanks Mason. You got me thinking on the right track.  I made a few changes based on an example I found of NOR.  I changed analogInReader.BeginReadWaveform (...) of data = analogInReader.ReadWaveform (600000) and I changed the while (_PXI6229_SLOT12.runningTask! = null) {} to _PXI6229_SLOT12.runningTask.WaitUntilDone () and it seems to work fine.

    Thanks for your help.

    Howard

  • Programming of a conditional FOR the timing of the STOP button on the loops

    I have a conditional FOR loop with a STOP button, however, the nature of LabVIEW data flow, the stop button is now being questioned at some point before the end of the loop. A control not having no entry, I can't connect to the last operation of a single iteration of the loop to trigger the vote on the STOP command, and I prefer not to use a flat sequence just for the power button if I can avoid it. I've considered using a structure of the event, but I don't want to force the loop to wait that the stop button to be pressed, I want just the loop to EXIT, * IF * the stop button is pressed... but I want the stop button to be questioned at the end of the loop, so if the user presses the button stop at any time in the loop , at the end of the iteration, the loop will end... that makes sense? At present, given that the stop button is called once at some arbitrary during the iteration of the loop time, if the user presses the stop button after he is questioned, the loop must run an extra iteration, and I don't want that to happen.

    ... in any case, I guess I'm looking for a more elegant way to implement that having to use a flat sequence just for the stop button.

    Sorry, but you'll have to use a sequence structure.  This is why they are there.  Sometimes they have their purposes.  Here is how I would handle it.

  • While trying to see Planner installation and operation, the test in local mode, the EXECUTION fails with message "Waiting for the number of virtual machines to register.

    While trying to see installation and operation Planner, the test in local mode with only 1 VM the EXECUTION fails with message "Waiting for the number of virtual machines to register.

    There may be a lot of problems in the desktop VM. Agent service see Planner is not running in VM Office. You can check in the event viewer to see what kind of error occurs. The most usual error missing file IP.txt c; drive or harness IP in the IP.txt produce if there is.

  • Looking for a Boolean function similar to or, but do not wait for the second entry in case he gets a 'real' a single entry

    my program works in 2 processes in parallel inside a while loop and should stop when one of them ends.

    How can I do? Uses the function 'Or' wire loop the stop condition will not do the job, waiting for the two processes to give their comments before running.

    What I really need is a function that waits until she gets a 'true' through one of its entry and then executes without waiting than the other.

    Y at - it such an option?

    If not, does anyone have an idea how to achieve what I have described here?

    Thanks in advance!

    What you need is a "not synchronous or", i.e. "do something if Item 1 becomes real GOLD point 2 becomes true.  One way that comes to mind to do is with a design of producer/consumer model (event), where the consumer is a State Machine with a shutdown state.  Get 1 point to trigger an event (perhaps using a user event or property Value Change (follow the signs)) when it turns out true, and have it send to the consumer the Stop State.  Download point 2, to do the same thing.  Now one of them becoming true will cause the shutdown state be registered (without taking care of doing the other element), in other words, that becomes a real, (consumer) loop stops.

    Bob Schor

  • A timeout occurred while waiting for the host controller EHCI interrupt on answer Async ahead Bell.

    Whenever I put my adapter wireless netgear n150 under heavy load (download of World of Warcraft for example), it will go down to connection and until I restart the computer the adapter usb port is useless.  I dug into the event viewer and found that a timeout occurred while waiting for the EHCI host controller interrupt on the asynchronous response advance doorbell, source usbehci.  This seems to have been a problem with windows 8 I found other threads referencing but I can say that they are pre-release and some actually work solutions have been validated.  I already assured that all drivers, firmware and chipsets are up-to-date and compatible.  ANYONE please help?

    Quick fix I found:

    -try falling back to WiFi G rather than use N
    In my case, it works... is no longer a fall. But not the same bandwidth...
  • wait for a function at the end

    Hello!

    I work with Flex and remote objects (Java Classes). The problem I have is: don't wait for the action for the return of a function script. I mean:


    value = loginRO.Login (idField.text, passwordField.text, message);

    If (value == 1) {}
    connectionState.text = "CONNECTED";
    messageState.text = message;
    }
    else {}
    connectionState.text = "NOT CONNECTED";
    mx.controls.Alert.show ("there was an error trying to connect","CONNECTION FAILED" ");
    messageState.text = message;
    }

    If the connection is successful you will get a '1' of the call and '0' in other cases. But the flex code still shows the "else" because it does not wait for the function "login" at the end of its execution. What should I do?

    Internet connections are always asychronous in Flex, so we can't have any other code expects a frequency.

    You should have the code or function that is executed/called in the your RemoteObject result handler.

    If this post answers your question or assistance, please mark it as such.

  • I bought adobe illustrator and waiting for the e-mail so I can download it but it does not appear

    I bought adobe illustrator and waiting for the e-mail so I can download it but it does not appear

    Hello

    I don't see no active membership/registration under the Adobe Id on the forums.

    Please confirm if there is any other Adobe Id in which you may have subscribed.

    Kind regards

    Sheena

  • I ordered a student member, discount prepaid option yesterday and in the status of the order, it is said that they are waiting for the documentation. How do I provide this?

    I ordered a student member, discount prepaid option yesterday and in the status of the order, it is said that they are waiting for the documentation. How do I provide this?

    For more information about the provisions of the student/teacher, you can refer to the following information page:

    http://helpx.Adobe.com/x-productkb/policy-pricing/Education-FAQ.html#main_submit_poe

    Another good resource for information is the student and teacher edition information forum:

    http://forums.Adobe.com/community/download_install_setup/student_and_teacher_edition_infor mation_? view = discussions

    Here are some links about the Adobe student discount:
    http://www.Adobe.com/education/students.edu.html?showEduReq=Yes

    http://www.Adobe.com/education/student-eligibility-Guide.edu.html

    http://www.Adobe.com/education/students/how-to-buy-eligibility.edu.html

  • The class I'm teaching starts Monday and I can't wait for the return of my serial number snail mail. M

    The class I'm teaching starts Monday and I can't wait for the return of my serial number snail mail. My product code is < removed by mod, kglad >. What help can you give me?

    Contact adobe support, http://helpx.adobe.com/contact.html?product=flash&topic=using-my-product-or-service

  • Error when parsing the file ' value of the 'src' attribute is not valid; must be a URI'.  ERROR (RSC-005) to "Hetgeheimfietsen.epub/OEBPS/toc.xhtml" (line 10, col 10): error while parsing the file ' "ol" element not allowed here; wait for the end-tag of t

    The members of the Forum kan help you

    Validation by using version 3.0.1 EPUB rules.

    ()https://github.com/IDPF/epubcheck( )

    December 9, 2015 15:27:33 THIS

    ---------------------------------------------------

    WARNING (OPF-007) to 'Hetgeheimfietsen.epub/OEBPS/content.opf' (line 2, column 227):

    Re-declaration of prefix reserved "rendition."

    ERROR (RSC-005) to "Hetgeheimfietsen.epub/OEBPS/toc.xhtml" (line 10, col 10):

    Error when parsing the file ' "ol" element not allowed here; waiting for the end-tag of the element or element "li" '.

    WARNING (CSS-007) to "Hetgeheimfietsen.epub/OEBPS/css/idGeneratedStyles_0.css" (line 60, col 2):

    Police made OEBPS/font/CambriaMath.ttc refers to fonts not standard type application/x-police-FTT.

    WARNING (PKG-012) to "Hetgeheimfietsen.epub/OEBPS/De_Alpe_d'Huez-1.xhtml":

    File name contains following non ascii characters: '. You want to change the name of the file.

    WARNING (PKG-012) to "Hetgeheimfietsen.epub/OEBPS/De_Alpe_d'Huez-2.xhtml":

    File name contains following non ascii characters: '. You want to change the name of the file.

    Check the finish with warnings or errors!

    In the file Toc delete the second "ol", as well as closing like Epubcheck duplicate codes

        the one after the other (delete the other)

    1. Please wait for the customer to political group - stop questions

      Hello

      I have problems with the closing of a machine. When the machine is connected to the corporate network, everything works fine. However, if the computer is connected to the VPN (1 hour or more) it is always suspended when it stops. First step in the shutdown process is:

      Please wait for the system event Notification service.

      This change after 3 minutes exactly. Next step:

      Please wait for Group Policy client windows 7

      is never exceeded (even after a few hours). Machine never off.

      Under newspapers there are always these 4 events when the machine stops in vain:

      1. 6005: the winlogon notification subscriber takes a long time to handle the notification event (Logoff).
      2. 4627: the event COM + a system expired attempt to fire the method of logging on the event {D5978650-5B9F-11D1-8DD2-00AA004ABD5E} class for the Publisher and the Subscriber.  The Subscriber has not responded within 180 seconds. The full name of the subscription is "ISensLogon2". The HRESULT is 80010002
      3. 6006: the winlogon notification subscriber took 180 second (s) to handle the notification event (Logoff).
      4. 6005: the winlogon notification subscriber takes a long time to handle the notification event (Logoff).

      Sense has expired after 3 minutes while there is no event 6006 for GPClient and machine is stuck there for centuries (Please wait for the customer to group policy). I noticed in the system logs that before the machine hangs during the shutdown process there are these errors and warnings:

      • 5783: the session configuration for the Windows NT or Windows 2000 Domain Controller \\server for the domain X is not admissible.  The current CPP of Netlogon call on \\machine to \\server was canceled.
      • 1014: name resolution for the name of the server has expired after none of the configured DNS servers answered.
      • 131: NtpClient could not set a domain peer to use as a source of time due to the DNS resolution error on ". NtpClient will try again in 3473457 minutes and double the reattempt interval thereafter. The error was: the requested name is valid, but no data of the requested type was found. (0x80072AFC).

      There is more than 1014 events for different servers and some 131. 5783 is always alone.

      I did a group policy log, because I thought that I will be able to see where the machine stuck. Below you can see the part of the newspaper GPSVC when the machine stops in vain:

      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0xe58
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: cancellation pending appeals
      GPSVC (2d4.1cfc) 21:31:24:327 Client_CompleteNotificationCall: failed with 0x71a
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: cancelled waiting for calls
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0
      GPSVC (438.1a04) 21:31:24:327 waiting for user group wire political end.
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0xe10
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: cancellation pending appeals
      GPSVC (218.C88) 21:31:24:327 Client_CompleteNotificationCall: failed with 0 x 525
      GPSVC (2d4.1cfc) 21:31:24:327 Client_CompleteNotificationCall: failed with 0x71a
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: cancelled waiting for calls
      GPSVC (2d4.9C8) 21:31:24:327 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0xdcc
      GPSVC (218.1054) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0x20cc
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
      GPSVC (2d4.9C8) 21:31:24:327 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0xd90
      GPSVC (218.1054) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
      GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
      GPSVC (2d4.1cfc) 21:31:24:342 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0
      GPSVC (218.D48) 21:31:24:342 Client_CompleteNotificationCall: failed with 0 x 525
      GPSVC (218.D48) 21:31:24:342 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
      GPSVC (218.1c04) 21:31:24:327 Client_CompleteNotificationCall: failed with 0 x 525
      GPSVC (218.1c04) 21:31:24:342 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
      GPSVC (218.1054) 21:31:24:342 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
      GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0
      GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: entering with the event 0 x 2100
      GPSVC (218.1054) 21:31:24:342 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
      GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0
      GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: entering with the event 0 x 1264
      GPSVC (218.1054) 21:31:24:342 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
      GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0

      I excluded 1 GP machine and left on the VPN for a few hours, several times. He always stopped correctly.

      However I tried with the VPN disconnection before turning off the machine, I even turned off WiFi but machine still hanging. If I tried to get GP results it takes ages before stopping the machine and he's stuck in the step "to get the user name. Gpupdate/force will never update policy (it stops at policy update...). I tired with the installation of different patches that has not solved the problem.

      I think that there is that DNS issues while the machine is on VPN which led the GP cannot be applied. When the machine tries to close it is always somehow connected. There is no problem with the connection, no GP application script when the user disconnects, not roaming profiles.

      Does anyone have the same problems? All machines are Dell with Juniper NC (VPN).

      Thank you

      Hello

      The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

      TechNet forum: For Windows 7 

      Hope this information helps.

    2. CREATE INDEXES online is waiting for the TX = 4 mode

      Hello

      I have a strange blocking problem where an INDEX CREATE LINE is waiting for a transaction that did only inserted a line in the parent table.

      Wait is mode TX = 4 (not TM locks) and I currently have it reproduced only on 11.2.0.3 and 11.2.0.4

      Easy to replicate the schema SCOTT:

      Session 1:

      SQL > set time on

      14:54:58 SQL > insert into SCOTT. Dept (DEPTNO, dname) values (50, 'test');

      1 line of creation.

      Session 2;

      14:55:24 SQL > create index test on SCOTT. EMP (ename) online;

      It's waiting ' enq: TX - line lock conflict ":"

      SQL > select sid, chain_signature from v$ wait_chains where blocker_is_valid = 'TRUE '.

      SID CHAIN_SIGNATURE

      ---------- ----------------------------------------------------------------------

      603 ' SQL * Net client message' < ='enq: TX - line lock conflict '

      While waiting to acquire the lock of transaction in mode 4:

      SQL > select * lock gv$ where sid = 603

      INST_ID SELECT ADDR KADDR SID TYPE ID1 ID2 LMODE CTIME BLOCK REQUEST

      ---------- ---------------- ---------------- ---------- ---- ---------- ---------- ---------- ---------- ---------- ----------

      1 00000006CDA05EB8 00000006CDA05F10 603 352577 0 4 0 348 2 AE

      1 00000006CDA06078 00000006CDA060D0 603 DL 779505 0 3 0 308 2

      1 00000006CD9FABE0 00000006CD9FAC38 603 DL 779505 0 3 0 308 2

      1 00007F28001F5028 00007F28001F5088 603 779505 0 2 0 308 2 TM

      1 00007F28001F5028 00007F28001F5088 603 779510 0 4 0 308 2 TM

      1 00000006CD9FA240 00000006CD9FA298 603 779505 0 4 0 308 2 OD

      1 00000006B4F26790 00000006B4F26808 589847 711499 6 0 308 2 TX 603

      1 00000006CDA0ED68 00000006CDA0EDC0 655377 996169 0 4 308 TX 603 0

      I've traced 10046 and 10704:

      broadcast message = obj 29231196672 #= 779514 tim = 1447251053634045

      ksqgtl * mode TX-000f001e-000ad97c = 4 flags = 0 x 10001 timeout = 21474836 *.

      ksqgtl: xcb = 0x6bb322528, ktcdix = 2147483647, topxcb = 0x6bb322528

      ktcipt (topxcb) = 0 x 0

      ksucti: init logon has of txn DID:

      ksqgtl:

      ksqlkdid: 0001-003F-0000AFC4

      ksudidTrace: ksqgtl

      ktcmydid(): 0001-003F-0000AFC4

      ksusesdi: 0001-003F-0000AFC3

      ksusetxn: 0001-003F-0000AFC4

      ksqcmi: TX, f001e, ad97c mode = 4 timeout = 21474836

      2015-11-11 15:11:36.566

      WAITING #140700792578680: nam ='enq: TX - line lock conflict ' ela 42932082 name = | mode = 1415053316 usn < < 16 | location = sequence 983070 = obj 711036 #= 779514 tim = 1447251096566283

      And there is nothing in V$ SESSION leader/block/line current. class obj # is EMP. current sql_id is the CREATE INDEX.

      If anyone has an idea on:

      -Why creating an index in line must wait for transactions that modified only parent table

      -How to continue the investigation

      -can or cannot reproduce in other versions

      Thanks in advance,

      Franck.

      I guess you have a constraint foreign key between emp and Dept.

      It's expected behaviours: since 11.1 any DML at one end of a referential integrity constraint translates into a mode lock 3 taken at the other end, and your phenomenon resembles a side effect of this.

      When you try to create the index online that your session must assume that the other session (holding mode 3 on the emp and dept) may have changed the emp and dept, so it must wait for the session to the commit or rollback.

      (I guess that in principle, he could walk the cancellation of the transaction see if EMP had in fact been changed - but maybe who was considered too complicated to be worth the risk to implement)

      Concerning

      Jonathan Lewis

      Updated - I just did a quick check to reproduce the effect on 11.1.0.7

      For reference - here are a few notes on modes of locking and how the application has changed over time: https://jonathanlewis.wordpress.com/2010/06/21/locks/

    Maybe you are looking for