Impossible to click on the buttons for the timed loop.

Hello!

I have a loop that is timed with a pace set by the user. And when the loop is running, I can't push any button of my GUI to stop it...

I have to wait until a mistake or I stop the race.

I can't put the diagram is too big and I think I don't have the right, but you have ideas?

Ask me for more details.

Thank you

bejard wrote: timed loop is just in a structure of the event and I put 10 ms or 100ms.

The program runs correctly (with this loop delay of 10ms/100 ms) like in the beginning, but I can't push any button or even change the tabs during the loop.

You shouldn't have long extensions inside the event.  Which is supposed to stop your timed loop?

I think that you have the option "Lock the front until the end of the occurrence" lit.  It will not press anything, until the end of everything for this case (including the timed loop).

According to my experience, using a loop timed in a Windows system is a complete waste and often adds more overhead and questions.  Instead, I really think you need to use a State Machine.  When the button is pressed, you tell your state machine to move to the State the code inside your timed loop tracks.  You can use the State with the structure of the event to time your loop.  If you can go behind your state of event to your processing loop structure.  Just set the timeout on the structure of the event at any rate of loop you really want to.

Tags: NI Software

Similar Questions

  • Sequence structure flat inside the timed loop and execution order

    I have some problems trying to implement a flat sequence structure when you use a loop timed on a target of cRio VI

    I tried with or without the while loop around the structure of sequence flat, and I also tried to replace the 'Non-deterministic loop' with a timed loop

    The problem is that the program seems to run only once, then get stuck somewhere

    I am writing a program that performs the following operations as soon as possible:
    1. read the Pos_MC of entry on the FPGA
    2 send the value of Pos_MC to the VI target (on cRio CPU)
    3. calculate a value of output based on Pos_MC with a PID block ("exit PID')
    4. send 'PID output' to the FPGA
    5 write "PID output" analog output "MOOG".

    In addition, I want the program to return the measured value "Pos_MC" to a host VI for the recording of data

    So that the output of PID is calculated and sent to the FPGA as quickly as possible, I placed a flat sequence structure to ensure that it happens before you send the output to the nondeterministic loop for recording data

    Also, I want the digital input 'Stop' to be able to stop the loop deterministic (the timed loop)

    I read much more entries than that and the help of several PID and exit, but I rewrote the code for a single entry and exit to make it easier to illustrate

    Screenshot of the code is shown in 'target code.png' and 'fpga code.png.

    The VI themselves are attached in the next post (cannot attach files of more than 3)

    Question 1:
    Any advice on how to get this race? Thank you!

    Question 2:
    Is also my correct understanding in that, using this structure, each 0.9ms (fpga loop time) comes the following:
    1. the input ("Pos_MOOG") is read on the fpga
    2. the production of PID is calculated on the cRio with some delay to computation (for example 0.1ms)
    3. the output of PID is then written for analog output "MOOG" in all about 0, 1 - 0.2ms
    4. the FPGA program then waits until 0.9ms spent and repeat the process

    As opposed to the next pass whenever performing a loop is started on the FPGA:

    1. the FPGA reads the input and written on the output (the output of the execution of the previous loop PID)

    2. then the entry is sent the cRio, PID output is calculated and sent to the FPGA

    3. the new release of PID is maintained until the next time through the loop

    Thank you!

    PHG wrote:

    Thanks for the input guys, any advice as to how I could get the feature in scenario 1?

    I still say that the best route is just putting all the logic of the control in the FPGA.

    Other alternatives include 1) the use of DMA FIFO sedn data back or 2) use interruptions so that the FPGA code can not read the output level until the RT.

    DMA FIFOs are usually very limited, and I would not use them in this situation since I belive said it this code to do for the many outputs.

  • While why broken arrow will not appear for a timed loop

    Hi all

    I need a little clarification relative to normal while loop and timed looping in labview.

    In labview, if I keep a while loop on a block diagram, broken arrow will appear in the upper left corner of the window indicating the error. It displays error because I have not wired conditional terminal of the while loop.

    But same is not the case for a timed loop. Can someone tell me what is the reason behind this...

    If I release the conditional terminal of the timed while loop, it runs in infinfite time like a normal while loop. Then y labview behaves differently for these two types of loops in the scenario above.

    FYI... I'm using labview 2009.

    Waiting for response.

    Thank you

    Herald

    Ruben,

    the reason is quite simple: call loops are mostly real-time and FPGA targets. Since most of the applications on these targets work continuously (at least this is more often the task), it is possible to create a loop that does not end. So the timed loop by default assumes that there is no need of a stop button.

    The 'normal' while loop needs code for termination (conditional terminal) because normal applications on Windows/Linux/Mac are used to be fair...

    hope this helps,

    Norbert

  • Impossible to click with the right button on the main Page - Adobe Muse CC

    How access Properties Page update of metadata when right-click on the Master Page does not work in Adobe Muse CC?

    It should work, but you can also go to the menu bar and click on 'Properties of the Page/Page' a GUI box will come to the top, click on the link to metadata at the top.

  • Impossible to click on the icons on a Web site

    Hi when I am on the site Ozsale, I am unable to click on the icons to point of sale. I hover over with the mouse, but when I click nothing happens it used to open. It was working OK, the other day, but now I have this problem. Would there be a problem with firefox, or may have changed middle. Could you please help, regards, Chris

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • Impossible to click on the desktop icons

    I recently problems with windows 7 64 bit. When I start the pc all works fine but after surfing the internet for a while I find can not click on the icons on the desktop but the start menu still works fine. I have run a virus check using an updated to AVG 9 but it show nothing. If anyone has had this problem or know another solution to reboot the pc? I tried to repeat things to work out what is the cause or when it begins but as the yet not sure.

    Hi thanks for the reply. I think I found the problem now someone in a surgested chat channel using a program called Malwarebytes to scan the pc and he picked up a virus registory of embezzlement:

    Infected registry data items:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoActiveDesktopChanges (Hijack.DisplayProperties)-> Bad: (1) Good: (0)-> quarantined and deleted successfully.

    I don't know how it has infected the computer, but at least I can wipe again if I get it again. I hope this is help to anyone else having the same problem to.

  • Updated Garageband for Mac - impossible to find all the Apple Loops loops

    Hi, a few days I've updated Garageband for Mac. Assume that coming up with 2600 apple loops and allows for live lines to use.

    After the update, Apple Loops the loop browser said I don't have that approximately 1900 ++ loops. Where are the loops? Not sure I missed all the steps.

    Please notify. Thank you

    See this discussion: Re: New loops for 10.1.1 even as new loops of Logic?

    Have you downloaded the new loops and sounds using the command from the menu bar main GarageBand ' GarageBand > SoundLibrary > download all sounds available?

  • Impossible to click on the links in some websites (no hand w / finger appears)

    It seems that I can't click on the links that appear at the top of a Web site, while the lower links on the page are not a problem.

    The extension of the Yahoo! toolbar and the extension of Babylon have been reported because of this problem. Disable or uninstall the modules.

       * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    
  • Why the STOP button stops not timed loop.

    Hello world

    I had a rather complicated code launched against me. I had to change program action unique (and many other things) when ACQUIRING a button has been clicked making timed measurements. I was able to add the time... but I want the loop to stop once you click on the STOP button.

    I have attached a very simplified version of my code.

    So if you start and press the ACQUIRE the program generates random numbers (to simulate the measure) and records them with a device ID. The program stops once the total is for instance in the default settings after 20 sec.

    But it does not stop when you press the STOP button. MY QUESTION: why not?

    FOR INFO:

    In my actual code, there are 10 events instead of only 1.

    It doesn't have to stop immediately, inbetween iterations (because I already tried to include the timed stop Structure VI and it did not work either).

    I also used the execution to highlight, but it did not help me.

    Thank you for any help or suggestion!

    Lisa

    Lisa,

    First of all, thank you for explaining clearly what your problem and to present a simplified program.

    The problem with your program is very simple. The loop inside the structure of the event begins when the acquisition: Mouse Down event occurs, which seems to be what you wanted. The default condition for the case of the event is "front Lock (defer the treatment of the actions of the user) until the end of the occurrence of the event." This is controlled by a checkbox at the bottom of the evetn installation dialog box. What this means is that the stop button is not recognized until AFTER the event is complete.  BUT the case of the event cannot complete until the while loop stops.

    The Solution: Move the loop outside the case of the event.  Generally speaking, event must not contain any code that could take more than a few milliseconds to run and certainly should not depend on the user's other actions to complete.

    Look at the design of producer/consumer models (events) for advice.  Also learn how to use queues to pass data between loops rather than local variables.

    Lynn

  • Execution time of the timed loop

    When I run a timed loop, even a dummy, I have 100% CPU usage with "RT get CPU loads. The Profiler 'Performance and memory' and "execution trace toolkit" also indicate a maximum time of VI. Is this normal?

    What target RT do you use? If it's a FP, you will always have 100% of the CPU load due to the optimizatio performance.

    Best regards

    Fabio

  • Impossible to click with the right button on expandable storage

    Only when I attempt anything right click on a flash drive or a cd explore it crashes, it crashes if I right click on a local file. It's really as much as I know about the problem. Do you know how I can fix this?

    I have just updated to windows 8.1 and that fixed, thank you very much.

  • Impossible to click on the links link URL can be changed by typing the new name of the site

    Do not click on any link at all. Except to close or go to another site with the new URL

    URL of affected sites

    http://www.box.com

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use 'Disable all add-ons' on the start safe mode window.
    You will need to close and restart Firefox after each change through "file > exit" (on Mac: "Firefox > Quit")

  • Impossible to click on the icons on the taskbar as they appear to hang

    Original title: MOUSE PROBLEM

    On my laptop when I move my arrow of the mouse on the taskbar it shows that something it loads when it is not the case and I can't access anything in the taskbar. Someone knows why?

    Hello

    Did you change on your computer before the show?

    Follow the steps mentioned below:

    Step 1: Perform safe mode

    Safe mode, start Windows in a limited State, where only the essential is started. If a problem does reappear when you start in safe mode, you can eliminate the default settings and basic device drivers and services as causes possible

    Start your computer in safe mode with networking

    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    Step 2: Perform the clean boot

    A clean boot helps eliminate software conflicts. The article below describes how to solve problems in Windows 7 by performing a clean boot. This article also describes how to start the Windows Installer service and how to reset the computer so that it starts as usual. To configure your computer to clean boot see the following link.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: When you are finished troubleshooting, follow step 7 in the article to start on normal startup.

    For reference:

    Difficulty of Windows system performance slow computer problems

    http://support.Microsoft.com/mats/slow_windows_performance/en-us

    Optimize Windows 7 for better performance

    http://Windows.Microsoft.com/en-us/Windows7/optimize-Windows-7-for-better-performance

  • Impossible to click on the links on the installer of creative cloud

    When I opened my Installer, links to download are present, but when I click on them it does not activate the download, it does nothing.  I'm on a 2009 Macbook Pro with the current operating system.

    Any help would be appreciated!

    Check your hosts file.

    to get help and more, Solutions to connection errors, activation and connection with Creative Suite and creative Cloud applications.

  • Can not enter URL in Safari (impossible to click in the URL field)

    Hello

    Super weird, but I can't enter any URL in my Safari browser.

    Look at the screenshot of what happens...

    Please help me with this,

    Thank you

    Leave the Google Reader. Also, remove it from the users & groups-> LoginItems.

    Google has serious problems with the servers.

Maybe you are looking for

  • How can I transfer my bookmark from a hard drive?

    My notebook recently damaged, I cannot access what now, the only way to access it, is to format and install new windows. For now I am with my new laptop, all my bookmarks Mozilla Firefox & data recorded since the old notebook disappeared. But I still

  • two versions of Skype

    "On my lab top PC are installed two kinds of Skype:" Skype Click-to-Call "-Publisher Microsoft Corporation installed on 27/05/2015, size 17.5 MB, Version 7.4.0.9058 and" 7.6 "-Skype Skype Technologies S.A.installed07/05/2015,Size 121 MB Version Edito

  • Major issues Satellite L300

    What was initially a freeze randomly to up while wi - fi has turned deadly. Its made my month old l300 (PSLB0C-07N08C) completely usless. Initially it would stop doing whatever it is, you can move the mouse all day long, but you couldn't click on any

  • Where can I find the class in accordance with IVI - C header files

    I installed the IVI of the IVI Foundation Web site files, but the installation includes all files for IVI - COM Not IVI - C. I'm looking for consistent header of class files, IVIdmm.h, IVIscope.h, IVIspecana.h etc. are those in the include directory

  • When you try to install windows 7 64 bit, he asked me to remove the disc and start over, but it does not help. Help, please.

    So I have a 32-bit windows system 7 and I'm trying to upgrade to a windows 7 64-bit system. I have an installation disc, and my pc should be able to handle 64-bit. However, when I insert the disc (yes my drive is started first in the BIOS) The instal