Configuration penetrates only not in While loop

Greetings,

I'm having and issue with my serial port VISA has not managed its information to my transmission loop but he'll give it to my receive loop.  I've written a VI that is supposed to communicate with 5 radio stations (4 series and 1 TCP) so when this program is running that I communicate on 5 different channels.  I know that these transmit and receive loops work because I use the same ones communicate with each individual radio.  The first thing I want these modules to do is indicate if they have made the connection with each radio.  When I run the VI in the execution of highlight mode, I can see that my VISA configuartion never propgrates inside my transmit any loop.  However, they transmit in my loop of reception.  Does anyone know why I can't initialize my loop of send?

I see a green wire from your loop to receive your transmission loop.  And it looks like it's for the stop condition.  You just addicted to data!  That is why the transmission loop cannot run until the end of the loop to receive.

Simply use another local variable.

Tags: NI Hardware

Similar Questions

  • HP Probook s 4530: penetrates only not in BIOS

    My laptop HP 4530 s is not enter the bios. After that I enabled the legacy startup option in the menu. whenever I pressed the F10 key it displays system Diagnostic screen, and I have an all tests, but still nothing.

    I had withdrawn any partition of the hard drive and I was faced with the question where the installation of windows 8 is not installed on my hard drive.

    After reading on the internet, I turned on the Legacy startup mode and now I'm stuck... Any help?

    There is not a major problm causing due to the UEFI system and / GPT disk partition

    Here you must follow the following steps

    (1) trees all turn off your laptop.

    (2) press power button and then immediately press the esc key and look at bottom left of the screen you will see interrupt the system startup or similer.

    (3) then you will see the list of commands on the upper left corner as recovery system, boot, bios menu etc. depend on your model, then choose the bios option now that you've opened your bios

    If you do not see the order list or system will boot OS then repeat these steps

    If your issue is not resolved after following these steps please answer. I'll give you another solution

  • Can not stop while loop

    Hello

    I want to count how many times the Boolean State has changed. But somehow the stop button cannot abandon the statement.

    Your code is much too constipated. Here is a simple solution.

  • Two while loops in parallel - 2 does not run

    Hello

    In this simple configuration, there are 2 while loops:

    • 1st - for installation
    • 2nd - operation, where variable X increments

    The problem is: after 1st run variable X is not reset to X 0, if VI stops immediately after it starts.

    The reason - 2nd loop is not executed, X 0 if value is not propagated to X.

    Thanks in advance

    Pavel

    You want to first one case installation and after perform the different number of steps, based on the parameters for installation.

    A perfect place for one State (a single necessary loop usually) machine. You need an idle state when waiting for user input. After that the user starts the initialization state, which calculates the number of steps for other States required. At the end the system automatically moves back to the idle state, and waiting for the user to install and launch another race.

    No need to sequence meal structure at all. With a state machine, you can just do much more (like abandonment of sequence to Midway, is not possible with the structures of the sequence)

  • Why the execution time increases with a while loop, but not with "run continuously?

    Hi all

    I have a problem of severe weather that I don't know how to fix it because I don't know exactly where it comes from.

    I order two RF switches via a data acquisition card (NI USB-6008). One job at the same time can be selected on each switch. Basically, the VI created for this feature (by a colleague) resets all the outputs of acquisition data and active then those desired. It has three entrances, two chain simp0le controls and a cluster table, that contains the list of all the outputs and some practical information to know what is connected (specific to my application).

    I use this VI in a complex application, and I have some problems with the execution time, which increased whenever I said the VI, so I did a test VI (TimeTesting.vi) to determine where the problem came. In this special VI I record the execution time in a csv file to analyze then with excel.

    After several tries, I found that if I run this criterion VI with the while loop, execution on every cycle time increases, but if I remove the while loop and use the funtionnality "Continuous run", the execution time remains the same. In my high level application, I have while loops and events, and so the runtime increases too.

    I someone could explain to me why execution time increases and how can we avoid this? I have attached my VI test and the necessary subVIs, as well as an image of a graph that shows the execution time with a while loop and «run permanently»

    Thanks a lot for your help!

    Your SetReset_DO VI creates a channel whenever it is called.  And that you never delete a task.

    When running continuously, that it's as if it only runs once and LabVIEW has internal mechanisms to close references that will not be used again.  When a VI is used as a Subvi, LV does not know if she will be called again, and lacks these things until the first level VI stops. You have a memory leak.

    Just as you open and close your file outside the loop for, create your channel out of the loop.

    Lynn

  • Why a while loop does not start in a flat sequence if I have another loop running in a different sequence of flat?

    Hi all

    Basically, I'm in the order of many device and regulation for that pourpose, I created a sequence of plate to do. Also, at times I have start the potentiostat measures I use too, which follows a sequence and I created a second flat sequence to do this. In a part of my experience, I want to follow the voltage and current of high voltage power supply that is located in the flat main sequence and also read the results I'm getting with the potentiostat simultaneously.

    In the main sequence, there is a constant bollean which triggers the beginning of the secondary sequence. In the framework after it contant Boolean, I have a while loop in which I read 2 analog inputs of the power supply high voltage with my USB-6218 for awhile every 100 m, my problem is that the Boolean constant actually starts the subsequence flat but when it reaches a while loop in which I continue to read the results of the potentiostat , for a reason that the operation does not start until the while loop in the main loop is not finished.

    I communicate with the software of the potentiostat through a driver made by the manufacturer.

    Is it possible to read analog inputs with USB DAQ and simultaneously read the results of the potentiostat?

    Thank you very much

    Without being able to see the code, can only speculate. My guess is that you have probably some data flow to the second loop that depends on the first loop finish.

  • Using asynchronous calls in a while loop. How 'Skip' node and only retrieve data as it is treated

    Maybe I'm not understand asynchronous calls... but I thought I should be able to call one another VI and essentially 'jump' it is the node and only receive data as the called VI treats.  In other words, similar to the Run of VI, I can wire a wait until done? with a fake and the main VI will not wait for the other VI end of race.  The main VI continues to function, and when it passes the called node of the VI, it will receive data if it happens to be there.

    How can I call a VI in a while loop and do not wait so he could spit out the results?  Data flow is my enemy on this one...

    The first VI treats its own figures (using the iteration count) and displays them on the PC.  Other indicators are the data of the called VI.  I want to be able to work around the blue circle node and receive data only that it will be available.

    Any help is appreciated.  Thank you.

    What I said OR the 'Start asynchronous call' is the preferred method for starting background tasks. This call is usually used to run background tasks. For example, you have a process of journal. When your application starts it would use the "asynchronous call Start" to start the process of journal and then move on to the other stuf. The process of the journal would then happily run in the background and the main application is free to do other things. Of course when implementing these types of systems you need a way to coordinate things like exit. This is where the queues and stuff come it.

  • Subvi with while loop + event structure works is not in multi tab VI

    Hi all

    I'm developing an interface for the control of a prober using Labview 2012, and I'm stuck with a question.

    First I provide you with a simplified version of my VI control interface and the sub - VI used to generate and manage the mappings of wafer.

    The VI is composed of several tabs: Prober initialization, manipulation of Wafer, Wafer map, status, error.

    The sub - VI can:

    1 / initialize the grid to display the map (Subvi Init grid not provided here)

    2 / coordinates XY for import a txt file (Subvi Wafer map Import)

    3 / view contact information and the index of the sector under the cursor

    4 / and what position die is double clicked and the Boolean 'Edit Wafer map' is true, then the user can change the State (color) of the matrix between die on platelets and selected Die

    My question:

    If I use the sub - VI by itself, it works fine. However, when I use it as a Subvi in the 'Wafer map' tab, the plan does not rise and I can use any features incorporated into the Subvi.

    I suspect that the while loop + structure of the event of sub - VI the bottleneck here.

    However I do not know which way to go, that's why I'd be happy to have some advice and help here.

    Thank you.

    Florian

    The question arises because your hand loop 'for' cycles of 33 times.  In the loop of 32, appears your Subvi and execution is passed to your Subvi.  During this time your main VI expected Subvi in the end, she never does.  You could spend your Subvi out of the main loop of the program and run in a separate process, in order to pass data using queues, but you have to find a way to close the Subvi (i.e. a queue).  By moving the Subvi on the main process, it is independent and you can do what you want to do with the events and others.

  • Can not on the button while loop

    Hi all... hoping to get a few design tips as I am very, very new to LabVIEW. I got a project that someone else had started and I've encountered a problem that I don't know how to solve.

    I'm using LabVIEW version 8.0.1 and I think my problem has to do with the help of DAQmx in a while loop. In "Working.vi" (including the Sub - VI 'Temp data to CSV.vi'), I copied - and stuck the while loop in a vacuum VI for testing. In this VI, with nothing else, it works - slowly, but it works.

    In the real VI, I can see the data of temperature updated every 4 seconds, so I know that the program is not frozen or something like that. However, by pressing the button "Return to main Menu" does nothing - the image of the button does not show that it is to be depressed, regardless of how many times you click or click and hold the button. I've attached a screenshot of the while loop inside the real VI; I prefer not to fix the real VI (especially because it contains references to many of the Subvi, and it is not currently contained within a LAW degree).

    I'm this coding the wrong way? I have the feeling that it might be caused by my settings DAQmx (continuous samples, 2 samples to read, 250 mHz). The very low rate would be the cause? Is there a better way to have readings of temperature taken every 4 seconds (approximately)?

    You have your case of event the value "lock the front panel" until full?  If so, then no other presses the button will be recognized until the ongoing case event complete.

    It is never a good idea to have a code in an event business that takes a long time to run.  It will make your UI seems to lag or even functional.  Any time I see someone with a while loop inside a case of the event, I'm afraid.  (By the way, I am also concerned all nodes comments hovering over the structure of your event?  What are doing?  Why some operate on the default data?)

    In general, events should take is no longer running then what ordinary person could be expected until they feel like the user interface is delayed.  Perhaps at the top of 1-2 seconds.  You should look at a model of design of producer/consumer with events.  The structure of your event should respond to UI events, then pass orders by a queue path to the part of your program that does the real work.

  • How get a while loop that will not run at least once?

    I am very very new to LabVIEW and I try to use a while loop to control a device. For the moment, I have a very simple setup of a slide linked to a comparison of vi, when the blade is higher or equal to a value all the while loop stops. However, I wonder if there is a way that the while loop will works do not "at least once" in the case when the blade is greater than the value set when the program starts. I have a situation like this in a program more complex so any help or suggestions would be appreciated. Thank you.

    One solution is to drop your loop inside a structure of business and your comparison before falling into the while loop.

    Another possibility would be to use a conditional to the loop where you have the possibility of wiring from scratch to the final iteration based on a comparison.

  • do not shutdown of while loop

    Hello

    I'm LabVIEW and motion controller software OR hardware PCI-7332/UMI-7774 and control a stepper motor.

    My question is:

    When flipping enc = 5 whereas the loop stops

    but with the rest of the value of 20 to 500.

    Why isn't rest zero.

    When the indicator test installation is checked

    the while loop does not stop.

    Please see the attached code.

    Thank you

    The rest would have to do with what happens inside the Subvi, which was not included. The output value of is not stop to an exact multiple of 4095. The question is why that is the case.

    Mike...

  • Having trouble getting Boolean button While loop is not updated

    Hello world

    I'm trying to understand how continuous image capture works. So, I tried to implement a simple while loop with a button "continuous Capture". It seems that when the "Continuous Capture" button becomes false, the while loop could not update and stop. No idea how to solve this problem? Thanks in advance.

    Kind regards

    Han Yen

    Move Boolean Capture next to the loop of inter 2.

  • Data dependence isn't the only thing to stop while loops to run simultaneously?

    I write code to turn two stepper motors with various functions. This is my first program, so I don't know it's terrible, but I'm very interested in getting this work. I checked for the data depenecy and followed some suggestions to use local variables to solve the problem. It did not work, so now I'm trying to understand this.

    I know that all features were able to simultaneously run, but after a few changes (including put everything in a while loop to keep the program running until someone clicks the exit button), no function can currently work simultaneously.

    I'll post my code in case someone has the time to watch it (I'd really appreciate it if someone did), but I am also looking for any other problem that might be the source of the problem.

    Really, any help is greatly appreciated.

    Thanks in advance


  • To use or not to use: while loop?

    Being relatively new to LabVIEW and excited by the event programming Structure makes me think that a While loop should almost never be used.

    A While loop uses "polling" to see if a condition is fulfilled or not before you stop the execution, which eats memory. (No pun intended) while event Structures

    don't constantly gobble up CPU memory and waiting for something to happen, and then runs.

    Can someone give me a simple and good example of when it is appropriate to use a While loop? Do not hesitate to talk about certain situations more complicated, requiring a While loop

    which cannot really be addressed with the programming of the Structure of the event.

    While loops and structures of the event go hand in hand. You almost always want to place the structure of the event within a while loop. If you do not you will serve a single event. The while loop will allow you to repair all the events. It is important to note that when there is no event loop will not be doing anything. He will be inactive and essentially no time consume CPU. The structure of the event will have to wait for the next event.

  • While in a while loop loop will not stop running

    HY, I have a while loop and hand inside the other 2 If. The attached VI supposed to work like this:

    1. define the input data

    2 - Press START to "animate" the data in the chart

    3 - Press STOP to stop the animation

    and the hand while the loop must travel 1-3 until you type EXIT, and then it stops the program.

    The problem is the EXIT doesen't button stops the program, not always. Sometimes, it sounds like the key EXIT "JAMS" and stops the program, when I hit the STOP button.

    You have a solution to my problem, or a better way to do this?

    Thanks for the help in advance!

Maybe you are looking for

  • Photosmart B8550 'in paper' message.

    My HP B8550 continues to tell me it is out of paper, yet all the bins are full.  It is trying to load the paper, but then returned with 'Out of Paper' error message when it tries to print.  It's only a year old (out of warranty) a slightly used.  I c

  • I want to make a backup copy of my OS

    I have havean Baracuta IDE 40 GB hard drive. I feel like I should be able to transfer my OS on DVD so that I can transfer it to a larger hard drive. Is this true and what I should be aware of?

  • How XP to recognize me as a system administrator?

    I have a Compaq Presario with Windows XP Media Center edition, SP2.  It has been upgraded to SP3.  Is the name of the product: SR2027X; Product number is: RK554AA-ABA. I am the sole owner of this machine and so the administrator.  However, when I use

  • tuned for startup applications

    Hello Is there a way get event when the user run any application on mobile? Like Codemodulelistener used to listen to the installation of the new application by the user. Thank you ---------------- P.Ramkumar.

  • Using the blending modes to combine two exhibitions and options?

    I have two exhibitions of painting, lined up in the form of layers in a file. A layer has some metal/specular/brilliant reflections (gold/yellow) I want to keep; the other layer has good shade, blacks and overall saturation but completely lacks the m