VI is paused and while loop has highlighted

I'm in parallel while loops and for some reason when it should start to run loops, it pauses for the VI and highlights one loops. It was not last week when I ran it so I don't know what is the issue. I've included a screenshot of the beginning of the code, the loop that is highlighted is the down right. Also, what is the red dot on the wire in error right after the structure of sequence?

Thank you

lvuser333 wrote:

I'm in parallel while loops and for some reason when it should start to run loops, it pauses for the VI and highlights one loops. It was not last week when I ran it so I don't know what is the issue. I've included a screenshot of the beginning of the code, the loop that is highlighted is the down right. Also, what is the red dot on the wire in error right after the structure of sequence?

Thank you

Someone snuck into a breakpoint on you.  The red dot is the stopping point, and that's why your VI made a break.

Tags: NI Software

Similar Questions

  • event structure and while loop iteration

    Hello

    It took me time to identify the problem I have, but I think I've nailed it and need help to solve.

    I am right to say that a while loop that contains a structure of the event will travel only once and then wait for another event to occur before a loop again?

    The question I have is that I need mark to a timestamp of a data acquisition driver (DataTaker) value, and whenever he changes the Labview event structure would take care of the rest of the incoming data.

    So is there a way to make everything in continuous loop on questioning my value of timestamps from my Datataker driver so that I can create an event Value (Signaling) for the Structure of the event to take care of?

    Thank you

    Richard

    Two options.

    1 put the stuff event to query a regular base in its own while loop that runs in parallel to the loop containing the structure of the event.

    2 put the stuff that you need mark in the case of delay of the structure of the event and a thread time-out value in the upper left corner of the structure.  Now, if no event to occur in this time, the structure of the event will run the case of timeout and the loop will iterate again.  The only problem with this method is that the case of timeout to run irregularly, or never at all if it turns out that events come more frequently than the timeout value.

  • loop for and while loop with empty table entry

    Hello

    I have a question with loop and loop.

    When a constant empty array (zero element) is connected to the loop For with "allowing the index", there are no interactions performed in loop For. But, if the loop is replaced by any loop, no problem.

    LabVIEW 2010

    Hello

    It is ok. I have no problem at all.

    For the 'loop' For when you connect the table thanks to indexing, the number of iterations is set to the size of the array. The iteration number assigned to N (in your case 10) is ignored.

    For the 'While' loop the number of iteration is defined by the Boolean Condition and the size of the array is ignored.

    Paul

  • for and while loops

    Hello, im new to java, and now I have an assignment. I need to analyze a phone number like this-> (656) 345 6544 to 6563456544. I wrote the following code which works very well with a while loop. Now, I would like to know how can I make it work with a loop for.

    and the code is
    import java.io.*;
    public class Tema
    {
    
      public static String removeChar(String str, int i)
      {
        String first= str.substring(0,i);
        String last= str.substring(i+1,str.length());
        str=first+last;
        return str;
      }
      public static String cautaTrimite(String str)
      {
         /*for(int i=0; i<str.length(); i++)
        {
           if ((str.charAt(i)==' ')  ||(str.charAt(i)=='5')  ||(str.charAt(i)=='(')
              ||(str.charAt(i)==')') ||(str.charAt(i)=='-'))
              {
              str = removeChar(str,i);
              }*/
           int i=0;
            while(i<str.length())
             {
                 if(( str.charAt(i)== ' ' )||( str.charAt(i)== '8' )
                         ||(str.charAt(i)==')')||(str.charAt(i)=='('))
          {
            str = removeChar(str,i);
          }   
                
          else
          {
            i++;
          }
    
             }
        
      return str;}
      public static void main (String [] args)
      {
      try{
         BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
         System.out.println("Introduceti un numar de telefon oarecare: ");
         String str= in.readLine();
         
         str= cautaTrimite(str);
         System.out.println(str);
      
         }
      catch(IOException e){System.out.println("S-a produs o eroare de IO");}
      }
    }
    Published by: 1002443 on 30-Apr-2013 05:17

    In the while loop, you have full control on when you increment the i and when not, and what you're doing is correct.
    Do this with the because the loop always increments the i. To avoid this, you can discover that when you removeChar, you decrement the i, just to increment the loop right after.
    Everything in that this would mean by code more obscure all loop, so I wouldn't use it.

    Edit: Why you remove 8 in the while loop and 5 in the loop remains a great mystery.

    Published by: baftos on April 25, 2013 11:56

  • Serial port visa and while loop

    Hello

    I am trying to acquire data of a device through serial communication. This is an RS232 interface. I use a port of visa and I know open and close the port of visa again and again while the program is running is bad style. So, I trieed to use a while - excluding the Visa open loop and nearby (see the attachment of a second, program 2). Unfortunately this work of isn´t program and I can´t find the bug. However the first attachment (program 1) works properly (except that the speed is maybe more low). Sombody could me to get the second work programme.

    Thank you!

    Best regards

    Soffi

    What you need to do is to add a register to offset for the name of resource VISA and error. See attachment a screenshot.

    I couldn't find this anywhere in the examples of NEITHER. (This one is based on the basic series example write and read vi.) When I started with LV, I asked tech support how to do this, and they told me. I WISH THEY WOULD SHARE THIS TECHNIQUE WITH USERS IN THE UNITED STATES!

    I hope this helps. (I can reach the vi if you wish.)

    Ed

  • While loop and table

    I'm weak and I can't get up.
    I'm playing a series of clips in order, so movieClip2 does not play until the end of movieClip1 (label = 'end'). I started with a three separate movieClips, each with its own listening port. Because all three looked like, I thought me save time by using a table and while loops. I have a dozen of these total movieClips, then rather than cut and paste each individual listener and if statement, it seems that there is a better way. And you smart people are the people who know. The output I am receving is: TypeError: Error #1006: value is not a function.

    Thanks in advance for any direction.

    I tried to use another method successfully. In my previous attempt, I used too many while and loops enterFrame, which caused problems of circular logic. Using only a few statements seem to solve the problem, as below. Thank you all for taking a glance at the problem.

  • multiple inputs and nested loop problem

    Hello world

    I'm using Labview 2009.

    I want to change the value of a variable by using the wheel or keyboard.

    So I downloaded a button and the screws of the keyboard that suits my needs of multi-rotation forum.

    These two screws are running inside a WHILE loop. Because I would be constantly updating the variable I will run my main screw that houses these two screws also looped a WHILE.

    Problem is that while loop within a while loop I couldn't run my main VI because of this problem.

    I tried in 2ways

    1 including them as an auxiliary in my main VI but as the two screws screw contains a few other variables inside of the inside while loop that LabVIEW displays error as auxiliary screws will not work

    2. I also tried to copy paste the two screws as it is in my main screw but could end up only in a lot of errors.

    How to deal with this problem of nested while loops?

    Please guide me.

    Kind regards

    Maury

    You make a mistake of data flow. The outer loop can turn only if all of the code that he has completed. The structure of the event cannot complete because inside while loop has not finished, and if inside so that the loop ends, the loop cannot turn because the structure of the event stalls. You can only go to the next iteration after all both have completed, from the mess.

    All you need to do to incorporate ALL the code inside the structure of the event. Attached, it's a simple project (LV 9.0), modify as necessary.

    See if it makes sense for you. (there are a few minor bugs probably)

  • stop a while loop in slot - VI

    Hello

    I have a Subvi, which has a while loop and it is in my main vi in a sequence structure, I want to stop the loop inside the Subvi using a Boolean value in primary vi.

    I tried global variable, but it has not worked since the stop in my main vi botton is not updated when the program is running...

    could you please help me?

    I appreciate any ideas

    Thank you

    Darya

    As a general rule, avoid using Structures of the sequence.  The reason being that they are violating data streams.  If you can control the flow of data with threads, it is the most effective way to make your program work.  The idea to get rid of your sequence structures is therefore to make an another Subvi to your expectation that also has an error and output error.  Then, you can use the cluster of error to force execution.

    And while loops inside the subVIs is a common beginner problem.  If you do not order when the loop ends based on a front panel of the mainVI control, then the loop must be in the main VI.

    I hope it's a good summary of what was said.

  • How to reset a while loop based on a value change event?

    Hi all

    I work in a labview program that sends voltage to a laptop via USB 6008, tension is amplified by an op-amp, and then he comes back in the laptop. I created a program and a working circuit, but my current challenge is how to reset the average of the values of voltage coming into the laptop, after that the user changes the digital control (which controls the output voltage). In other words, I need to be able to reset the number of iteration and the sum to 0 each time this happens.

    I looked upward to reset the counters of iteration through shift registers, but I'm not sure it will work in this case, but I'm also not sure how to reset the sum of an array (if possible). I have spent a lot of time to read these forums and tutorials from various sites, so I think it can be done with the correct nesting of the case structures, structures of the event and while loops, but I don't know how. I am new to LV, just started to learn in mid-January, so any help is appreciated.

    Thanks in advance,

    Graeme

    You just need the structure of single event with the bargains.  Use the case of timeout to get your new values and find the average (100ms timeout value and get rid of the wait function (ms)).  Keep the amount and the number of items in the shift registers.  Wire these values through each case of the event.  In the event of changing the value: control, just set the values to 0.  Then add a Stop button value change event to stop your program.

  • How to pause and resume a while loop with a button

    Hi all!

    I'm back in LabVIEW, after only a few years and I cannot understand, what at first sight seems to be a simple problem!

    All I want to do is have a while loop in which, for the purposes of illustration, I have the 'random number from 0-1' function on the inside, and I want to be able to pause and resume this help from a button. There are a few other posts on the forum that are very similar and do use "event structures. The problem I encounter is that I can get the genarator random number to start the generation but the break will not stop this!

    I have the feeling that I made a stupid mistake - but I can't understand or google my way out the problem! I enclose my solution so far!

    See you soon!

    I did an example (you can drag and drop the image into a labview diagram > = 2014)

    hope this helps (I just did 2 excerpts, it's the same program)

  • Control and Simulation in a loop / while loop with TCP/IP reading / writing of synchronization

    Hello, I have a problem with reading TCP/IP and written in two loops. The problem is NOT to get the two loops to read and write to and from the other. This has been accomplished. My problem is when I run control and the loop simulation on my laptop and the while on a RTOS remote on the controller on-Board of LabVIEW in a remote PXI chassis, the while loop the remote system running on four 4 times faster than the loop control and simulation on my laptop. In other words, for each iteration of the loop control and simulation on my laptop, there are 4 four iterations of the while loop on the remote system. I need to know how to get a degree of kinship (1:1) with these iterations of the loop. When I run a longer simulation in real time, say 10 seconds, the control and Simulation loop begins to slow, i.e. the simulation time slows down until it is no longer in real time and the "Late Finish"? Parameter is set to true and the LED lights and continues to stay lit. At this point, the system destabilizes due to what I believe is being well sampling rate too discreet and I have to end the simulation. How can I get a ratio of one to one between the loops and also to avoid slowing the loops causing destabilization?

    To give an overview of my application, I implement a control system in a network, seen in "image2.png". This is achieved using my laptop as a subsystem 1. Reference signals are generated from the laptop and the error signal is produced. Control measures taken and the control signals are sent via TCP/IP to the remote system. Position feedback is returned, and the process repeats. My system has Core I7 Procs w / 3 GB of RAM, up to 1 GB/s speed via ethernet and LabVIEW 2011 installed with all necessary modules and networking tools. The attached VI Custom_Wireless_Controller works on my laptop. The remote system I'm working on that has the 7830 NI R Series with FPGA card. OTN runs on the PXI chassis with an enbedded controller that has networking capabilities of up to 100 MB/s via ethernet. I use the FPGA for the acquisition of data and apply control signals to my plant. The plant is the PCE twist connected to the FPGA through the cable of the ECP - RIO of NOR. Subsystem 2 is this side of the CNE. The FPGA collects position, he sends to the controller via the network, receives signals from the network drive and writes signals to the plant power amplifier that operates the plant. This process is repeated and the VI and is titled Custom_Wireless_Plant.

    I appreciate the help really and look forward for her and for any question!

    Well, the first step is to understand what you have set up right now. Your control and Simulation loop on the side of the controller is configured as 'Runga Kutta 4' and you have a loop timed on the other side. In addition, you have the primitives of TCP/IP on the control and the Simulation diagram and means he will perform (a message) on the size of each minor step, which in your case is 4.

    So, you have two options:

    1. replace the Solver side controller Runga Kutta 1 (this must synchronize loops)

    2. hold RK 4, but create a Subvi around two primitives of TCP/IP and configure from the VI to run than the major (continuous) step-size. If you do it right, you should see a 'C' on the upper right part of the VI you have created.

    Please let me know if what I said is not clear...

  • while loop: delay enforcement and continuous updated: VI back to fake out of time?

    Hi all

    I want to control the time of execution of a while loop. I want the user to have the ability to decide how long he wants to run the while loop. The while loop is used to update certain values, then it should run continuously, not only run once and wait (that I could easily using the synchronization functions).

    I used the time up VI as suggested in this post:

    http://forums.NI.com/T5/LabVIEW/how-to-create-a-time-control-for-while-loop/m-p/2530212/highlight/FA...

    and works well, but the while loops are integrated into another loop for and when Goes to the next iteration, the elapsed time Boolean result is set to true and it does not run at all (I think that's the problem).

    Can I return the Boolean result of the elapsed time VI to false, after reaching the target of time? That would solve my problem, I think that...

    I attach some of my VI, although I don't know that it could be useful for you...

    Thanks for your help

    Use the iteration for while loops count and an equal to zero? node.  Then the output of the comparison at the entrance to reset the elapsed time functions.  The idea is that reset you on the first iteration (when I = 0).

  • How to pause and resume the loop that should contineously loop runs?

    I have a request that a loop runs continuously and when I call this loop must stop iterating when I call this loop, it must return to the iteration. How I can implement?

    Can someone help me?

    You don't want to pause and resume the while loop.

    You want a part of your program to suspend and resume.

    You can make a machine to States in which break do not run your code and resume starts executing your code you are. Change of use part to hold your data.

    Another thing if you just want to implement the pause and resume you can use events with value-1 timeout and some time.

  • While/loop and reset the value i in time loop

    Hello!

    I have a question about the use of while/loop for.

    I read the data of 5 devices.

    Starting with the 0 position when I = 0, I read the data at position 0.

    And when I click on NextPosition, then I = 1 and stop when I = 5.

    But in the meantime, if I want to break the system of position 3 for now. I click on the BREAK.

    I chose the position back to 0, it will go to this post.

    But if I click on NextPosition, the value is always my 0 and not 1, which is the next position upward.

    In addition, whenever I click NextPosition, it will count up to i = 5 and to stop the program.

    Is there a way I can address the issue?

    Thanks for trying!

    I don't know what your needs are, so I guess you want to keep hitting the same device until you press the button of the next device and you want to be able to specify that one then.

    In the attached code, I changed your mechanical action of the pause button and renamed position Reset.

    I also changed the code suchthat conditionally, we increment the device number (only when the next button is hit).

    I have alos moved local so that us do not draft times and put it in the case of the rest the structure so it is written or read but not both.

    If this does not meet your needs;

    1) look in bulb mode and see where I went wrong

    (2) If you are unable to set up a truth table of all combinations buttn and doc what steps should occur for each condition.

    Always trying to help,

    Ben

  • Series of reading and DAQ in same While loop

    Hello world

    I have a while loop that has a DAQ reading and a reading series of VISA.

    DAQ readings slow while loop for series com & therefore the iterative nature of the measures to constantly check byte-by-byte (for the full range of the code: 22 bytes) does not work. (it will check 8 bytes, 24,.. etc. because more bytes is collected in a buffer before it can browse new loop.)

    Is it possible to synchronize these two data acquisition devices?

    Data acquisition speed is fast enough, so if there is a way to keep the series bytes in a queue and take only the first 22 bytes for every while loop iteration?

    Thank you for your help. I can't join VI, but I can give you a reference image.

    I recommend having separate loops of data acquisition and reading series.  If you simply connect the latest value, the local variable is great for sending to playback in series to the other loop for logging.

Maybe you are looking for