delay on the program

When she gets the value I want, the program stops, but the robot continues to go for a second, then stops completely, how to get rid of this delay?

Hello

The image you set does not provide much to go off of, but it seems you could use LabVIEW for Lego Mindstorms.  If this is the case, I recommend posting on specific Mindstorms forum here:

LabVIEW for LEGO MINDSTORMS and LabVIEW for education

http://forums.NI.com/T5/LabVIEW-for-LEGO-MINDSTORMS-and/BD-p/460

Providing the VI you use rather than a picture of the block diagram will allow people to offer the best advice.  It seems that your VI is built to stop when the sonar function returns exactly '40', but there is no way to discern what your program will do when this happens since the screenshot you provided because the sous-schema hidden within the structure of the case.  Try to post the code you have written as well as a clear description of what is the current behavior of your robot and you want it to do.

Kind regards

Tags: NI Software

Similar Questions

  • WHY? C program = No delays, Labview delays = > > Intermittent delays in the loop of RS232 serial subroutine 115200 baud. Windows 7 LV 2012

    In 30 years of developing LabVIEW I saw such a strange problem.    Maybe someone can help out me.

    Here's the problem:

    Ms 1 000 large delays occur intermittently in two instances of an executable of LabVIEW with exact system.  (SEE ATTACHED time STAMP of SCREEN CAPTURE FOR 11 and 14 COM COM where there was a > 1000 ms delay)

    • Subrotine RS232 communication loop were brought in the course of a program of 'C' that has held rock solid and did not have this same problem.
    • No record on the hard drive is in this subroutine, communication comes standard.
    • The executables are running on the same high performance server DELL 7910 communicating with satellites in Earth orbit, 24 x 7.   (RS232 115 200 Baud, Windows 7, 6 son of processor).
    • An executable uses COM 11 and the other uses COM 14.
    • The executable has the critical loop "subroutine" that injects data REVIEWS, if there is more than a 100ms delay.
    • The subroutine is not reentrant, because it is the only case used throughout the program.
    • I placed the time markers in the loop of the subroutine which tell me exactly where in the code the delay occurred.  In most but not all cases, that the delay occurs at the 'WAIT MS' or 'WAIT until the NEXT MS MULTIPLE', I tried them both, and they both have the same intermittent problem.
    • What gets me, is that the executables that are run independently of each other are logging the delay at EXACTLY the same moment.    This leads me to believe that it is a question of operating system.  Or a problem that the two executables have when competing for time to critical system resources.
    • This problem of intermittent delay occurs on other computers and on windows XP
    • The large delay occurs even when there is only one executable file running.
    • This problem is particularly bad , when the user resizes or drag the window to the executable.
    • If the system is left alone, the problem of > 1000 ms delay can happen only once or twice a day.
    • I have not yet attempted to set the priority or affinity processor running in the Task Manager
    • The executable runs as well some other non-critical time loops that perform SQL database entries, you connect the hard drive, then state machine management.

    Would like to hear from someone about it.

    Thank you

    Brad Whaley

    @ Boeing electrical engineer


  • USB-6289 DAQmx delay early in the program

    Hello! Anyone help me with this problem.
    I have a new data acquisition is USB-6289.
    I'm only looking for I multiply by a decimal factor, after putting this result on AUG.
    for example
    AO0 ai0 * x =
    I want to do in continuous mode and in real time, with minimum delay. When I start the program, I have a time delay which varies.
    How can I measure this delay time?
    Anyone have an example of program to do (a simple multiplication in real time) and check where I have my mistakes.

    Thank you very much.
    Jonathan

    I put my program and a few cards of my oscilloscope (ai0-signal ao0 drop signal)

    Hi Jonathan.

    The code that you downloaded was not in parallel. Flat sequence structure forces the process to the AO HAVE to wait for the update panel. You can use the "Acquisition and recording of data" model to Create... Project for a reference on how to separate the update of the user interface of the real transformation.

    However, you must keep in mind that it is not possible to "simply to acquire a signal, multiply it and transmit" with DAQ hardware. This is because you must proceed as follows to get a signal and send it through the AO:

    1 acquire the signal in the DAQ card.

    2 send the signal to the computer via USB.

    3. ask the OS and LabVIEW process the signal to multiply.

    4. send the signal via USB in data acquisition.

    5. the output signal.

    This means that, while you can probably reduce the delay, you will always have this delay in the order of milliseconds. If you really need a shorter delay, you have a few options:

    (1) I noticed that the signal you're reading seems to be periodic. If it is a periodic signal, you can enable the regeneration in the AO and drastically reduce the delay, like the acquisition of data will just get the waveform periodical and cycle it. However, if the waveform changes, you will have some glitching.

    (2) use a multiplier circuit separated instead of data acquisition.

    (3) use a FPGA or RIO device instead of data acquisition.

    I hope this helps.

  • Why Windows 8 have a long delay before the launch of startup programs

    In Windows 8 there is a long enough period for the launch of the programs in the startup folder or in the register as startup items. Why is this? And how can I remove or reduce the delay? Please note that this is not a problem with too many programs trying to launch. There is that one program listed on startup with a new installation of Windows 8 and the system is running on an SSD. It's so clear and deliberate, time not only a slow system.

    Reading this thread, I just want to point that Microsoft quality replies here, it's horrible, beyond and Microsoft should be embarrassed to make them like that in public. I recommend delete them all and by publishing an adequate solution.

    Reminder: The OP says that he is a clean install. They moved just a program in the startup folder and they're asking why - this delay, indicating precisely is not a slow computer. The advice they get is:

    -Run the diagnostic system

    -Start in Safe Mode

    Hello? This is a clean install! Of course, none of this assistance.

    What actually happened is that there is, as the OP stated, before advisement in Windows 8 delay as all the start-up programs are executed.

    It can be flown in the key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize\Startupdelayinmsec in the registry (including the set to 0, then the programs are executed immediately).

    It is the response that should come from Microsoft. Everything else is a rubbish - model answers that everyone make Microsoft look green, as if they a) don't know their own product and b) don't care even clients who need assistance.

    The Bing team should also be ashamed of this site as their best result. Google does not work.

  • The Adobe Desktop installation program will not load the app screen tab, all I see is the loading icon and runs continuously without ever loading. All the other tabs seem to load without any delay, only the app tab does not load. I tried to uninstall and

    The Adobe Desktop installation program will not load the app screen tab, all I see is the loading icon and runs continuously without ever loading. All the other tabs seem to load without any delay, only the app tab does not load. I tried to uninstall and reinstall the software, rebooted a couple of times and tried to activate the download of the Premier Pro via the website, but it still doesn't load in the desktop application.

    This solved the problem for me:

    Use the CC cleaning tool to resolve installation problems. CC, CS3 - CS6

  • Hello. I would like to activate my educational program CS3 (version 2007) on my new computer. Unfortunately, it does not accept my serial number. What can I do? I delayed the program on my old computer, but it does not accept the activation on the new l

    Hello. I would like to activate my educational program CS3 (version 2007) on my new computer. Unfortunately, it does not accept my serial number. What can I do? I delayed the program on my old computer, but it does not accept the activation on the new laptop.

    Make sure you use the correct serial number.  Quickly find your serial number

    If you do not disable the original installation, then it is possible that your two activations permits were used, and you need to reset your counter to activate.  For this you must contact the Adobe Support via chat and ask them to reset your activations.  If you ask for more than that they will tell you that they cannot offer you any support.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...

    Serial number and activation support (non - CC) chat
    http://helpx.Adobe.com/x-productkb/global/Service1.html ( http://adobe.ly/1aYjbSC )

  • FF8.01 how can I avoid checking the add-on which appears every time I start the program?

    In Firefox 8.01, whenever I start Firefox, a box appears indicating that the program checks to see if my addons are compatible. There are currently 3 who are not, and this box simply delays the start of the program to tell me the same thing whenever I start Firefox. Most annoying. Is there any way I can prevent the display of this box, or reduce it to once a week or once a month?

    Can you check this number 9 of Firefox?

  • Possible to set up buffer - delay in the implementation of large number of buffers - IMAQ trigger problem

    Hi all

    I thought that I could transfer it here because it might be a more appropriate forum. I have a bit of time pressure, so I hope someone can help me. I'm having a problem with a program that I wrote to acquire and store images from a camera to linear scan.

    My camera (SUI Goodrich, 1024 pixels) is connected to a card framegrabber (PCIe-1427), which is connected via a RTSI cable to a PCI-6731 card attached to a SCC-68 (series) connector M.  My goal is to drive a mirror galvanometer scanning and acquire images from the camera continuously on each scan. As the galvo scan will be the frame of an image (1024 pixels x 1024 lines).

    I managed to do it (I think), as my direct purchase program works exactly as I expected. However, when I try to save the images, I noticed that for a larger number of images, the starting point of the image is shifted the same amount for each image. I'm not really sure what's going on, it seems to me that there is a delay in the use of the VI "IMAQ set up buffer" when a larger number of buffers is used, (or even 100). Is it possible that my hardware trigger does not wait for all buffers to be configured before you start to run?

    I would really appreciate any idea or ideas that anyone could have on this issue.

    Sincere greetings,

    Gill

    I fixed the problem by doing that I don't use actually 1000 stamps to save 1000 frames. Program works if the number of buffers is lowered.

  • Inexplicable delay between the evolution of the tab control pages

    Hello dear OR Forum.

    I have a strange problem.

    In my program, I use a tab control.

    On a change in the pages of pc immediately once the user clicks on the other page, but on another pc it is delayed (approx. 1 second) until the new page is displayed. The rest of the program works with the same "speed".

    You have an idea why this happens?

    The main program includes a while loop with a delay of 25ms. In the loop, there is a case structure, cases are different pages of the tab control.

    (it's the same exe file)

    Thank you.

    Alex

    Tabs changing pages require a screen refresh if at least the graphics adapters could make all the difference.

    More memory in the faster machine...

    The slow mahcine there a virus check or other processes that use CPU?

    Ben

  • delay in the launch of exe

    I created exe and installer in labview 11. I installed it in pc win 7, and the software works very well... But in the beginning when I run the program, exe takes some delay to launch... It takes around 90 seconds...

    Sounds like a firewall problem, unplug the time network and compare.

    /Y

  • Stopwatch without pausing of the program

    I was wondering how to make a stopwatch that saves time, but doesn't actually stop the program. The wait function really wants in this part of the program and my idea was to take the time stamp at the beginning and then the timestamp at the end and see the difference, but I had ms, I need formatting timestamps to ashow me hurt. Are there any other VI who does?

    I enclose a stopwatch VI I just did. It has the function of "Tower" in it as well.

    You can put the main enforcement code in the execution of the 'while' loop In this way, there is no pause or delay in the stopwatch or your main program. You can even control the execution of the main program by passing a loop timer control setting to the main loop.

    I hope this helps.

    See you soon!

  • applying the delay in the formula node in labview

    Hi all

    If you have not yet done so, please go through the tutorials free online on LabVIEW.

    Rarely is the node form the best way to write code in LV native LV constructions can be a little awkward at first for someone with programming experience text.  Once you learn how to use the stream and recognize functions by their icons, you can see that the graphical programming can be powerful and easy to read.

    For delays using the function Wait (ms) in the palette of Timing.  If you need a delay in the middle of a calculation (which seems unlikely), you may need to separate the calculation into two parts and put forward (ms) between the parties.  See the image below for a way to do this without no nodes formulas.

    Lynn

  • delay in the introduction of serial port to main loop

    I have a main program which consists of a period of time cards each loop iteration that is NI DAQ data acquisition.

    I want to have a serial port call that is executed only when a new value is entered.

    I can use a shift register and compare the present value the value spent, and then run the serial port when the value is changed.

    But when I do this, the program takes about 6-7 seconds until all the data is read on the ground after clicking the run button.

    I found that, even if the serial port does nothing, that the delay is still there.

    For example, I initialize the port series outside the while loop...

    I'm dragging the sons mistake and resouce for the serial port through the while loop, then make the visa close outside the while loop.

    NOR should not yet be it making any type of calculations on the serial port, whereas only the presence of wire delays the appearance of the program by a total of 6 seconds.

    As soon as the wire is removed, the program is in normal operation.

    What is going on?


  • How can I create a loop with delays in the series?

    Hi all

    So I wrote a Labview program to control both machines. Very simply, one is a source of tension, and the other is a Lock-In amplifier. What I want to do is change the applied voltage, wait a few seconds for the response of GARLIC to settle, then take a number of measures of GARLIC, then those on average and save to file.

    Here is a flowchart of what I mean:

    I did it for the most part, but I'm having a little trouble with the delay. VI file is huge, so I tried to make a simplified architecture that shows the basics of what I do:

    (The string and the constant matrix constants aren't actually what I use, it's just to illustrate, because I don't know how to make a quick easy space reserved for diagrams... is there an easy way?)

    So my assumption here (and it seems that it is happening) is that, for each iteration more outside of the loop, the first thing it does is start the countdown and start the change applied voltage/etc. at the same TIME, right?

    And then he only goes in the loop of measure LIA once she completed both of these tasks, right? (Please correct me if I'm wrong!)

    Then, how would make a delay after the loop of measure LIA? If what I've said so far is correct, then if I put a 'waiting' in the main loop, I don't think that it works (or at least not be very specific) because he would begin as soon as the iteration, would therefore be cash while GARLIC measured, and so do not wait the right amount of time after the loop LIA was finished (if I even put that it is long enough that it was still underway after This loop was completed).

    Am I correct in what I said?

    What is the smart way to do this?

    Thank you!

    You're right about the order data flow, which is usually the fall of most starting LabVIEW developers.

    To add a wait behind the inside loop, ask a node pending within a structure (the simplest being a structure flat sequence) and add some sort of data flow from the output of this loop to the structure of waiting. This will force this structure will not work until the loop ends.

    That being said, there is a better way to do this. Look in the Simple State Machine with LabVIEW 2012 and more recent architecture model.

    Edit: NIquist beat me to it.

  • Why the output signal is pulled up to stop the program in RT

    I use 9401 output a PWM signal. When I run the program FPGA and the stop, it does nothing statement. BUT when I run the program through RT using the compiled bitfile and stop, there will be a high level of 110ms.

    Here's my diagrams FPGA and RT of a simple signal output.

    I wonder why this could happen? Should I observe all specific during the programming of the RT?

    Thanks in advance

    You can add logic to ensure that the output goes low when the judgment is TRUE within your unique Timed Cycle loop.  My guess is that you just see a delay between when the FPGA is ordered to stop and when the file bit is actually closed and the FPGA is reset.

Maybe you are looking for

  • Satellite A200 - display driver stopped responding

    Periodically, I see this warning: [http://s001.radikal.ru/i193/1002/2b/ee6a610aa864.jpg]It appears after a short blackout by any reason. What is it? Satellite A200-1CR / Windows 7 Professional

  • Rich project shared with IO Library?

    I have an application that needs to share resources/instruments with TestStand steps.  Requirements require the application to communicate with these resources/instruments with or without leaving the engine of TestStand. I understand that the suggest

  • DateField

    How to configure your datefield so that it would show am/pm field? like 10:25?

  • Display on 8900 blackBerry Smartphones

    I just got my 8900 and find that the white color on my device is yellowish... when I compare with my "BOLD" both white color fonts and also white background (for example in the options), the "BOLD" display is much whiter. If someone has encountered t

  • Problems activating windows 7

    OK, so my laptop Lenovo is about 2 years old. All the rubbish on it he was slowing down and I didn't put any bloat ware on it, so I decided to go with a new copy of windows 7 instead of lenovos recovery and install all necessary drivers myself. If ev