A specific problem with increment in a while loop

Hello

I'm pretty new to labview, I would be grateful if someone could help me out on this one.

I am currently implementing a sweep of the tension, providing a starting Point, point stop and step size. I put in place using a point of loop, where a shift register adds on a step size to the starting point, and when the value is equal to the value of the stop loop breaks.

The attached VI seems to work with integers for example Start 1, stop 10 and size of step 1.

However, when I use a start value of 0, level of 0.1 and 1 stop, the loop never breaks. I tried the format & precision of edition but still can't make it work. Could someone please explain why this is happening.

What I also noticed is that if equal to sign is replaced by a greater than or equal to, then the loop stops at 1.1 instead of 1. If I said the next START of 0, the increment of 0.1 and 0 STOP, the loop stops at 2.

I have attached the VI (IncrementStepSizeWhileLoop.vi).

Thank you very much.

ranveerm

You can calculate the number of necessary iterations from the parameters, so a loop IS more appropriate and you don't even have a comparison operation.

Tags: NI Software

Similar Questions

  • Someone had problems with Firefox 13.1 while scrolling of web pages

    While most but not all of the words scrolling Web page get nervous and fuzzy. This same thing happened on version 13. I had no problem with 12 or those in front of her.

    Someone decided to turn on the "smooth scrolling" in Firefox 13, and that could be the problem. Try turning off here:

    Orange Firefox button or classic menu Tools > Options > advanced

    In the mini ' General' tab, uncheck the box for "Use smooth scrolling".

    You may need to restart Firefox for it to take full effect. Does that help?

  • Problem with my iPhone 6s, while charging or using internet, he rejects a higher amount of heat! Pls help me...

    PProblem with my iPhone 6s, while charging or using internet, it rejects higher amoun of heat! Pls help me...

    Certain amount of heat is normal using a particularly intense use as a streaming video

    Can I restart a Force

    Restart your iPhone, iPad or iPod touch - Apple Support

    If the problem persists

    An appointment of 'Genius' to an Apple Store, or select another authorized service provider.

  • Specific problem with pimples and States

    Hello

    I firstly apologize for use Google Translate :-(

    I have a problem with InDesign does not resolve. That's a digital publication.

    My goal is:

    A 'Gallery' button and the image of the ball appears with three buttons: "Previous Image", "Next Image" and "narrow Gallery.

    I don't want the Gallery either visible, or buttons that control, until the 'Gallery' button, so I think that all the buttons except 'Gallery' by selecting the option 'hidden until this active'.

    I want the gallery and the buttons that control, disappears when I press the "Close Gallery" button.

    What I call 'Gallery' is an image that fills the screen.

    After you have placed the image on your site have become the button property "Hidden until this that active."

    Then convert this key in order to several States (what I will call 'button States') and by successive Governments with the pictures I want to show in the gallery.

    I think that the interactions between the buttons.

    When the 'Gallery' button I attribute the following "I click on the '.

    -"Go to the State."

    -Hide the "Gallery".

    -Show 'narrow Gallery.

    -Show "previous image".

    -Show "next image".

    -Show "States of the button.

    "Previous Image" and "Next Image" buttons are assigned, respectively, to go to the previous state and go to the next State.

    When "Close Gallery" button I attribute the following "I click on the '.

    -Show "Gallery."

    -Hide 'narrow Gallery.

    -Hide "previous image".

    -Hide "next image".

    -Show "States of the button.

    "Previous Image" and "Next Image" buttons are assigned, respectively, to go to the previous state and go to the next State.

    When "Close Gallery" button I attribute the following "I click on the '.

    -Show "Gallery."

    -Hide 'narrow Gallery.

    -Hide "previous image".

    -Hide "next image".

    -Hide the "States of the button.

    I put it to the top and works correctly until I press "close". Then I hide buttons "Close Gallery", "previous image" and "next image" but it keeps me visible "Button States" showing the last image that was shown.

    Don't know how to solve this problem, and I'm going crazy!

    Please can someone help me?

    Maybe the solution is another approach, but without using "Folio overlays.

    Thank you very much.

    I moved your post to the DPS forum.

    I'm afraid of how you do this will not work with DPS.

    This should all be done with a multi state object. The first State would contain anything other than a button to access the first State. After that, set up each State with the appropriate buttons. Without seeing the file, it's a little hard for me to imagine exactly what you want to do.

  • problems of operation of two while loops in a VI

    Hi forum,

    I am developing a project for the acquisition of data continuously for two types of signals (voltage and temperature), each consisting of 20 channels. The sampling frequency is different so I used two call loops of different period to take account of the sampling frequency. It is within the VI that is deployed to the target device. On the host VI, I have two loops while put each containing a VI write_to_measurement express so I can connect the data to two different filepaths. However when I run the program, that a signal is registered correctly while the signal remains would have only one row of data. Looks like one of the while loop is only on the iteration while the other is running smoothly. This is an example of the famine of memory? How can I solve this problem! Any help greatly appreciated! Thank you!

    Vincent

    What asked Fan Ravens is why do you use static variable to stop the loop?  You do something remotely?  Simply use a local variable in your second while loop to stop him.  You need to change the action of the button stop, but that would be the way to do it.  Stop buttons are perfect for debugging and development, but generally I will use one other mechanism to stop the program runs outside the environment of LV.

  • problems with timing in a time loop in a structure of the event

    Hello

    I'm using labview to control three motors stepper, running the three stages of different translation in different axes (X, Y and Z). Please see the attached VI, focusing on the structure of the event on the RIGHT side.

    In the Z axis, I am trying to run the engine for 5 seconds, after clicking on a button. I have attampted to do by adding a sub of elapsed time VI within a while loop, located in the tab 'Mouse before Z down' the structure of the event. A similar "elapsed time while loop" is also included in tab 'Z reverse the mouse down' the structure of the event.

    Separately these "elapsed time loops" work very well, BUT when I run a Z direction after another, say 'Z Reverse' and then 'Before Z' then they annoyingly interact. The calendar is gone, with the moment where we add, rather than rebooting.

    No idea how I can reset the time elapsed while loops? Or is there another method better do?

    Thank you very much

    Charlie

    charlieryan wrote:

    I take a wire from the 'i' of the while loop at the entrance of the Sub autoreset - VI of tiem will blink?

    No, connect you to the "reset", not "autoreset".

  • Problems to use TimerEvent in While loop

    Hello

    I try to use a while loop a TimerEvent. In the example below, I created the function init should loop through values myArray, tracing of each value to every three seconds. It seems, however, that because I am incrementing the value currentNum outside the while loop (from the timerHandler function), the just loop continues to turn until the Flash no longer responds.

    var myArray:Array = new Array ("one", "two", "three", "four", "five");

    var currentNum:int;

    myTimer var = new Timer (3000, 1);

    function init (): void {}

    while (currentNum < myArray.length) {}

    trace (myArray [currentNum]);

    myTimer.addEventListener (TimerEvent.TIMER_COMPLETE, timerHandler);

    myTimer.start ();

    }

    }

    function timerHandler(e:TimerEvent):void {}

    currentNum += 1;

    }

    init();

    I wonder if what I try to do is just simply not possible or if I'm missing something.

    Thanks in advance for any thoughts on the issue.

    This loop will run at the speed of light of the processor.  Put the timer inside it will not slow down it.  Chances are that you do not want to use a loop of any kind other than that which is developed through the use of the timer and the single event handler function.  Maybe together the repeat of the timer value be based on the length of the array.

  • Problem with the movieclip by double loop

    Hello, this is more a problem of logic programming that actually a problem with the code.

    I'm building a schedule where each month are built on the fly with the movieclip duplicate for each day (with an empty textfield). I am building the calendar according to the number of days of the month has, he begins to what day of the week, etc, etc..

    Then I load an external xml with the new arrivals. Subsequently, I need to check the days of this month were new. At the moment I have 2 parts in stock in my xml stream ( http://s50699.gridserver.com/xml/news_en.xml). It all works very well.

    However, I only manage to highlight a day of this month, the last news item-, which means that the loop runs twice, but he recorded only the last number, so the day highlighted that shows on the calendar, is, therefore, of this last point news.

    I attached the code below and will be really grateful for any help or general advice.

    _root ['dot' + s] does not know he has a report any with the number i after the advances of your loop. in particular, by releasing _root ['dot' + s] I'll be the last value of your loop.

    to remedy this, use a variable that stores the value of i when _root ['dot' + s] is created:

    .Ivar _root ['dot' + s] = i;

    and use this.ivar rather than I in your onRelease handler.

  • What should I do to not have problems with my internet connection while I'm on Skype?

    during internet Skype keeps fading, causing video problems and sometimes it cuts completely

    Hello

    1. What is the brand and model of the computer?

    2. what security software is installed on the computer?

    3. have you made changes on the computer recently?

    4. do you have a wired or a wireless connection?

    5. is the Skype-specific question?

    Method 1.

    Ry Tyour computer to start clean and control state if the same problem occurs. Tuning your system to start in mode minimum state helps to identify third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Please refer to the steps in these sections. These steps also applies to Windows 7.

    Unable to connect to a home network (wireless connection)

    Network connection is intermittent (periodically disconnects)

    Network connection issues: http://Windows.Microsoft.com/en-GB/Windows-Vista/troubleshoot-network-connection-problems

    Method 2.

    I suggest you to uninstall and reinstall the Skype program and check.

    Uninstall or change a program: http://windows.microsoft.com/en-us/windows7/Uninstall-or-change-a-program

    If the problem is specific to Skype, you can contact Skype for additional help.

    Refer.

    How do I completely uninstall and reinstall Skype for Windows? : https://support.skype.com/en-gb/faq/FA10634/how-can-i-completely-uninstall-and-then-reinstall-skype-for-windows

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: How do I back up and restore the registry in Windows

    For Windows 7: back up the registry: http://windows.microsoft.com/en-US/windows7/Back-up-the-registry

    I hope this helps.

  • Hi all, any one side heating problem with iphone 6 s while using Skype and games?

    Dear all apple users,.

    One is facing iphone 6 s heating issue while using Skype video calls but also play games with only five minutes of time?

    Playing games is an intensive activity that uses a lot of power.   Where the accumulation of heat and the regular need to reload.

  • I have a problem with a jumping cursor while typing.

    Original title: pointer moves to random places while typing

    When Ihis text.  o random places, as you can see on to ten moves messages of type t, the pointer again

    laptop Aspire 5536-5255

    Cover the touchpad with a piece of cardboard or something else quite thick... Still do?

  • Problem with video preview show (while playback is stopped)

    Screenshot 2015-10-10 12.13.45.png

    For about a week now my videos have been display models crazy for some reason any (while the playhead is paused).

    Once I hit play its fine. I first installed on my iMac and a laptop and it works fine on the laptop. I also used my iMac as a target screen and it shows very well.

    Note, I have not had this problem before last week. I do not think that its El Capitan, because I've updated both machines.

    I've also uninstalled and reinstalled first, but the same results. Not sure at this stage if it's software or hardware.

    Any help would be greatly appreciated.

    iMac 27 inch end 2012

    Intel Core i7 3.4 GHz

    32 GB 1600 Mhz DDR3

    NVIDIA Geforce GTX 1024 MB 675MX

    MacBook Pro (retina, 13 inch, mid-2014)

    3 GHZ Intel Core i7

    16 GB 1600 MHz DDR3

    Iris 1536 MB Intel

    Question: turn MPE material (set it to only the software) for the moment.

  • Problem with list-of-values while using Oracle ATS

    All by registering a fact oracle application using Oracle ATS, whenever I click on a button LOV and select a value from the list, I am being disconnected from the application. Is this a common occurrence? Let me mention here that LOV works very well, it's only when recording with the ATS that I find this question.

    Could someone give me a solution to workaround with LOVs in ATS?

    --
    Thank you
    Yacoub

    Hello

    The LOV works very well in OATMEAL, I use EBS form it works fine, maybe there an installation problem. Alternatively, you can manually include LOV by action forms are trying.

    Kind regards
    Srinivas

  • Problem with dynamically created in a loop function

    Hi, the project is to create a thumbnail image dynamically from a xml file and display an overview with the event delivery. My problem is that I dynamically create a delivery for each thumbnail and inside the function the name of the image to load. I get no error, but the loaded image is always the last of the loop. Where is my mistake? Is there a solution?
    Any help will be welcome. I work hard on it but not more idea. Thank you very much for you reply

    Thank you very much Pajaroplus, it works with your help!

  • Control of the event: how to stop the race while loop within a structure of the event

    Hello

    I have some problems with control of a while loop inside a structure of the event (see annex VI).

    I have 3 buttons (the "Start measurement, stop, exit the program"). When a measure is running, it should be possible to stop the measure by clicking on "Stop the measure", but it does not work.

    Someone at - it an idea?

    Thank you very much and best regards,

    Michael

    Hi Michael,

    create a process parallel to your measurement. You can use the design model "producer/consumer with vents. You'll find it with «File-> new...» ».

    Another possibility would be to remove the "lock frontpanel" sign, in the case of event start measurement.

    Mike

Maybe you are looking for

  • Update iphone 4 to ios 9.3.5 s

    When I try to update my iphone 4 iOS s 9.2.1 to 9.3.5 I get an error message "Cannot install the update". No other clues as to what's going wrong. Any suggestions? I have more than 5 GB free and I re-charge of updating several times.

  • Origami Photo theme

    I'm working on OS X El Capitan 10.11.2 When organizing and work in the Origami video theme, I would like to be able to modify the Photos separated in the set-up of Origami. in other words, what Photo appear in the left frame and which appear in the o

  • My passwords are safe or not after that sbi easly cracks iphone securities

    The case happened last month in this FBI cracks iphone 5 c titles to get the data. After that, we're not sure if the FBI can do the hakers cannot do easily. How do we measure apple we want years. ??

  • Desktop HP Pav 550-040: memory

    Hello all; You are always useful - I have a question. I have a desktop computer Pavilion (HP Pavilion Desktop 550-040), which holds a cap of 16 GB of memory. It has now already 8 is installed and I bought on Ebay what follows below - which is an addi

  • compatibility issues

    When I start one of my games say romance of the three kingdoms, for some reason when I play it for a while it suddenly crashes. I tried Troubleshooting compatibility, but troubleshooting told me that he has additional problems, and it never seems to