Judgment of multiple while loop running at different rates to stop using the single Boolean stop button

Hello

I'm on the block diagram of 4 loops, do different tasks. They are independent of each other, but need to see the unique front panel - some of the wonders of labview!

Now, I want to have a unique stop button which will in fact be a back button to return to the main screen by stopping all four loops on the block diagram. I used the stop button (switch released) with local variable to stop the three other loops. He stops the vi but it is not a good stop vi to stop properly and the grid on the performance of the front panel. Now all loops run also at different rates, so it is not necessary that all loops are stopped immediately when one of the loop is stopped. Can't really think of a better way. All the ideas!

Kind regards

Austin

Variables local is ok in this case, but you will need to keep the control in switching mode (no lock).

A better solution would be to have all the loops as a structure of event all listening value stop change. Or have the Stop value change event generate a user defined output event or similar.

/Y

Tags: NI Software

Similar Questions

  • Sharing data between multiple while loops, competitor rates

    Hello

    I am trying to Exchange data between competitor while loops running at different speeds.  What is the recommended way to do this?    In practice, I have 12 indicators and 3 cards I would update (on screen) in the slower loop, although the data acquired and stored on disk in the fastest loop.  The image below is a simplified version of what really works my candidacy.

    I currently use local variables and shared to achieve this.  I heard however that local variables are evil because of their use of memory (data are copied instead of who passed by reference).

    Thanks for your suggestions,

    Adam

    Hi Adam,.

    Yes, here you go.

    Mike

  • How can we enter and update digital panel forward when a young while loop runs?

    Hi all

    In my code, I have a while loop making quick gripping (sampling)

    How can I update other digital controls in the front panel when the while loop runs?

    right now, once I have enter a number in this digital control, the computer seems to be no answer to the elbow. Looks like the computer focuses on the while loop.

    any ideas are appreciated.

    Thank you

    Jack


  • Stop the multiple while loops in the acquisition of Vision

    Hi, I want to close multiple while loops with a STOP. I use the software for the Acquisition of the Vision for the recording of multiple cameras and I would like to finish this record from all cameras simultaneously. I don't know how to do this since I am knew to LABView. I would add my VI here and maybe someone can help me.  Thank you!

    A local variable should be sufficient for your application. Read the following article:

    Parallel stop, while loops in LabVIEW with a stop switch

  • Producing a XY chart in a While loop that adds a new point XY to the curve from each while the loop iteration

    I would like to plot data by using the XY graph as a Visual display. I have a While loop that creates a new point X and Y during each iteration. I need the XY graph to be in the While loop, because once the order to stop has been pressed the sis loop finished and the final graph to be displayed. The problem is that after each iteration, the XY graph display clears and watch point, compared to add the new point to the previous by a line connecting the two points. It works perfectly if I move the XY graph out of the While loop, but it only shows the XY graph at the end of the While loop. I would like to visually see the XY graph updated during the execution of the While loop. Any help would be much appreciated.

    Thank you

    You can add a data both point to a chart to a chart, you must pass the entire data group.  I would use a couple of shift registers in your loop.

  • How to restore a database to a different server, do not use the catalogue

    Hello


    I have to restore a database to a different server, but without using the catalogue, i.e. I can use the control as a repository file.

    I have measures to restore on the same server. Are the steps even if I want to restore the backup to a different server.

    Please guide me.

    Waiting for the answer.



    Thank you and best regards,

    Deepak

    Please see this thread for creating a database from backups of the production test

  • HAVE multiple AO-synchronization-2 multiple while loops

    Hi all

    I want to characterize my RF circuit by using an additional narcotics control and map PXI-6229. I wrote a simple VI in Labview, which is almost similar to the example, multiple-HAVE-AO-synchronization, seen in LABVIEW. According to my VI, 4 analog outputs with different offsets dc, amplitudes and phase values must be generated to my RF circuit and 2 analog inputs must be acquired by this circuit simultaneously and continuously. But the problem with my VI is that I try to observe two diagrams at the same time to see the changes in signals generated and acquired. However, I don't see the two signals simultaneously. The second while loop, which belongs to the acquisition of analog signals, does not start while the first loop generates analog signals continuously. How can I synchronize these two while loops in order to observe the two parties in the diagrams?

    I have attached my VI.

    Thanks in advance.

    T. Eray

    Hi Eray,

    I will be brief and I'll keep it simple. If I understand correctly, you have trouble with the data stream in LabVIEW. When you work in LabVIEW, you must understand the order in which the blocks (functions/nodes/structers) are run in LabVIEW - stream. Each block can be executed just at the moment where there values on each entry. This means that if the 2 blocks are connected with a wire, the 2nd block waits until the first ends its execution.

    In your case, that means, this 2nd loop does not execute before the first loop (with the DAQ Assistant) ends its execution, because the son comes from the inside of the first loop, then they go to some DAQmx features and then DAQmx features they go to the 2nd loop.

    In principle, what you could do is to put the content of the first loop, where you prepare the signal generated in the 2nd loop. Good course without the DAQ Assistant. Instead, you can use DAQmx writing in the 2nd loop.

    Kind regards

    Martin

  • Synchronization of multiple While loops

    Hi all

    I work with 4 all in curls that are independent from each other that is, there is no data flow in one loop at the other.

    I noticed that every while loop takes different time to iterate.

    However, I want to while loops to begin and end at the same time after each iteration.

    How can I synchronize their?

    Thank you for your response.

    Concerning

    Aveo

    Hi Aveo,

    You can use a few 'occurrences', 'Notifier', or "Rendesvouz" to synchronize your loops.

    Or use timed while loops - they can work in harmony...

  • Stopping at two while loops, running with queuing

    Hi all

    I'm using labview 8.2.

    I have two while loops in my code (called the main loop and the other average loop - seen on the screenshot file).  I just want to stop both the while loop at the same time (it's ok it the average loop takes a bit longer).  I use global variables to stop (as I have tried the local one, but I don't think that LabView sees in the middle of the subroutine).

    Please give me some suggestions on this.

    Is attached a screenshot and my labview code

    Using a ' functional global' is almost identical with a "global" variable Indeed, before the existence of "global variables", a functional overall, it is how people have this feature.

    The usual way to stop a loop containing a "wait for queue ' is to destroy the queue and use the error on the terminal of the 'expectation of queue' directly in the terminal of the judgment. In this way, you don't have to queue up some kind of end the command to stop it.

    Add a queue to destroy after the stops 'main while loop. Delete the global variable and the error from the stop "waiting in the queue" in the loop "average" it is wire terminal.

    General advice, always try to avoid using local and global variables.

  • start stop multiple while loops

    I have a fairly large VI that works while several loops with the strutures case inside.

    I would like to be able to close and on all looped programmatically according to events. (complete cycle or cycle started)

    I need to store my data in a table, but whenever I turned off the while loop data I gathered is lost.

    It goes like this-measure analog voltage - put it in a digital indicator... now I want to put it in a table only once by my machine cycle.

    If the opeator push the reset button, the table is available for acquisition of report generation.

    Any help would be appreciated.

    Thank you

    It's here.

  • To count the number of while loops, you just attach a DBL indicator for the little that I framed in the while loop of the program?

    I followed just one example in a book as while loops and I want to just make sure that I haven't missed something simple. My program is attached

    Hi type'ssteel,

    I can't open your vi at the moment, but as you say, you can use the terminal i. For iterations, you must add 1 to it. I start with 0.

    Mike

  • Acquisition of data using the single cycle timed loop in labview fpga (7833R target)

    Hi all

    I want to acquire data of input analog of a generator using the loop of the timed cycle and DMA FIFO funtion. I want to use the acquired data to act as a process for my PID control variable. Can the attached code perform the goal? I'm skeptical about its features. Advice or suggestions please.

    Kind regards

    Opuk

    The SCTL does nothing for you here.  Just remove it and write directly from your analog read the DMA write.

    And on the side of the host, you must move the Run method for before the loop.

    You should also consider to the PID in the FPGA.  PIDs work best in a deterministic environment, and you get more deterministic than on an FPGA.

  • How do you get Lightroom CC on my new iMac? I currently use it on this iMac 1 and want to use it on the new. I am using a different email but address using the same wi - fi connection. Thank you.

    I just bought a new iMac, and after setting up, I need to find a way to access the Photoshop and Lightroom CC CC. I am using the same airport and wifi but a different e-mail address, if that matters. ?

    Hi Captainlenny

    You must first download Creative cloud Application Download Adobe Creative Cloud apps | CC free trial Adobe

    Then sign in with your Adobe Id (The same Id with which you bought the map) see connect and disconnect to activate Cloud Creative applications

    • You cannot use a different Email address to connect
    • If Creative cloud says "you are already you connect to maximum authorized devices" select " sign me out of all the other thing ' so that you can connect.

    Concerning

    ~Assani

  • Error trying to run load test on OATS by using the command line

    Get the trial below the error message when you attempt to run the command line to start the OATS.

    log4j: WARN no appenders could be found for logger (oracle.oats.server.jndi.JndiL
    ookup).
    log4j: WARN Please initialize log4j correctly system.
    log4j: WARN see http://logging.apache.org/log4j/1.2/faq.html#noconfig to learn more
    FO.
    Error of initialization of the connection of the controller of t3://rws21410019.us.oracle.com:8088/
    weblogic\n\n (message id = ctl.initError)
    oracle.oats.client.controller.ControllerException: initialization of the error controller
    connection to t3://rws21410019.us.oracle.com:8088/weblogic\n\n (message id = ctl.i
    nitError)
    to oracle.oats.app.controller.client.ControllerClient.initController (Con
    trollerClient.java:268)
    to oracle.oats.app.controller.client.ControllerSyncedClient. < init > (control
    ollerSyncedClient.java:137)
    to oracle.oats.app.controller.client.OltCommandLine. < init > (OltCommandLin
    e.Java:43)
    at oracle.oats.client.CommandLine.initController(CommandLine.java:748)
    at oracle.oats.client.CommandLine.run(CommandLine.java:179)
    at oracle.oats.client.CommandLine.main(CommandLine.java:61)
    Related: javax.naming.AuthenticationException [root exception is java.lang.Sec
    [urityException: user: weblogic, could not be authenticated.]
    to weblogic.jndi.internal.ExceptionTranslator.toNamingException (Exceptio
    nTranslator.java:42)
    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException (WLIni
    tialContextFactoryDelegate.java:788)
    at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject (WLInitialCo
    ntextFactoryDelegate.java:682)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext (WLInitialCon
    textFactoryDelegate.java:469)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext (WLIni
    tialContextFactoryDelegate.java:376)
    at weblogic.jndi.Environment.getContext(Environment.java:315)
    at weblogic.jndi.Environment.getContext(Environment.java:285)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext (WLInitialCont
    extFactory.java:117)
    at javax.naming.spi.NamingManager.getInitialContext (unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx (unknown Source)
    at javax.naming.InitialContext.init (unknown Source)
    to javax.naming.InitialContext. < init >(Unknown Source)
    at oracle.oats.server.jndi.JndiLookup.createInitialContextInternal (exercise
    WN Source)
    at oracle.oats.server.jndi.JndiLookup.createInitialContext (unknown source
    (e)
    at oracle.oats.server.jndi.JndiLookup.createInitialContext (unknown source
    (e)
    at oracle.oats.app.session.SessionClient.initSession(SessionClient.java:)
    104)
    to oracle.oats.app.controller.client.ControllerClient.initController (Con
    trollerClient.java:262)
    ... 5 more
    Caused by: java.lang.SecurityException: user: weblogic, couldn't be Authenticate
    Ed.
    at weblogic.common.internal.RMIBootServiceImpl.authenticate (RMIBootServi
    ceImpl.java:116)
    at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke (unknown Sou
    NCE)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)
    to weblogic.security.acl.internal.AuthenticatedSubject.doAs (Authenticate
    dSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:)
    146.)
    at weblogic.rmi.internal.BasicServerRef.handleRequest (BasicServerRef.jav
    one: 518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run (WLSExecuteRequest.jav
    one: 118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Please make sure that the BTA server is running!

    Thank you

    This problem has been resolved after changing the user name for "oats", this is the user name of the weblogic server and not the console of OATS.

  • How to run a web application in JDeveloper11g using the jdk 1.4.2_04

    Hello

    I'm trying to run a jsp/servlet web application in JDeveloper 11 g which was developed in JDeveloper 10.1.3. I migrated the application for JDeveloper 11 g and when I tried to build the project, it is throwing an exception as * "' error: project is not configured to use at least JDK 6. * after changing the version of jdk 1.4.2_04 for under project properties/libraries & Classpath/Java SE Version." There are other parameters to change? Can someone guide me on this.

    Hello

    JDeveloper 11 g is a JEE 5 environment (so according to JSE 5), including medicines generic and other features. It so there's no way that you will always be able to run using any environment 1.4.x.

    Kind regards

    ~ Simon

Maybe you are looking for

  • Power HP Pavilion Slimline s3000 supply problems

    Hey!  The power supply on my Hp Pavilion Slimline s3000 seems to be corrupted.  The green light in the back, but nothing moves or uo beyond that light sources.  I opened the computer and when I listen carefully when I press the power button a few noi

  • Setup has encountered an unexpected error installing this package. This may indicate the problem with this package. The error code is 2705.

    When I creat the project setup in Visual Studio 2005 with only cvirte.msm merge module installer finished the unstallation successfully, however, prompted Mesa. DLL. when the NImesa.msm is added to the installation package Setup fails witht the error

  • 1142N radio configs to support older clients

    I am new to Cisco dot11radio configurations. Can someone please share the commands that I would use to define 2.4 and 5 Ghz radio so that older laptops can see their SSID broadcasts and connect. Thanks in advance.

  • HP update reminder window

    HP Pavilion dv9920us laptop I have a partial, about 2/3, view HP update available that are permanently open. The part of the window with the 'X' is missing, then it cannot be closed. I can remove it by going in Manager tasks and ending the process of

  • Oracle 11g CMO

    Hi allam an Oracle 11 g RAC OCÉ, plan to write oracle 11g CMO, can anyone suggest how to proceed?How the review will be... is this objective or another criterion?How to buy the right? and how much cost in India?anytime I write or Oracle Corp. will de