While the loop does not stop when the two values are equal using equal to comparitor

Hello world

I have a really, really strange bug. I have a LabVIEW VI that change a chain on a power supply. I have a start and a stop voltage and use a while loop to increment the device. For example if I want to scan from 1, 2V to 2.2 V in 0.2 V incremements, the program will end when "The current tension" = "stop the tension." And it works very well!

However, when I start - 3 V and want to stop to say-0.8 (new in 0.2 V incremements) the program does not stop when "The current tension" = "stop the tension." I checked with the probe close to what should be the end of the race and - 0.8 V goes both of the entries ' equal to ' comaprison operator, but that his can't trigger a real result.

It's very strange for me. Espeically as if I'm going - 0.8 V to-2 V but decrement of-0.2 V, the program stops correctly!

I am very confused!

See you soon!

Search on: comparison of floating-point numbers

The second thread is particularly relevant. This discussion was 2009, but you can find that the same "bug" being reported to enter the end of the 1980s.

Mike...

Tags: NI Software

Similar Questions

  • Card player AutoPlay does not work. My two computers are networked. How can I fix it for automatic playback works?

    Card player AutoPlay does not work. My two computers are networked. How can I fix it for automatic playback works?

    Hello

    I suggest you to try the steps in the following Microsoft Help article and check if it works.

    Troubleshoot AutoPlay:

    http://Windows.Microsoft.com/en-us/Windows7/Troubleshoot-AutoPlay-problems

    For more information, see the following link:

    http://Windows.Microsoft.com/en-us/Windows7/AutoPlay-frequently-asked-questions

    Hope the information is useful.

  • Loop will not stop when you press the stop button

    Hello

    I have a LabVIEW program that includes a number of loops, but one of my curls (which surrounds a series of functions "Write TDMS") has a Boolean stop that transmits a signal through two GOLD and functions in a control of the loop (see aea of interest). My problem is that when I press the button stop the loop will not stop and will continue to save and write data that I didn't need a file.

    Could someone please help with this?

    Kind regards

    Aaron Broady


  • While the loop does not stop until 2 more clicks

    I must say that I'm really not familiar with LV, but Im learning.

    So why is that after I clicked on low stop, I had to click my OK button twice, then my program stopped. Why can't it stop immediately?

    Furthermore, if I want to do some of the dice to table, which wire do I missed?

    Thank you!

    Hi RawtoLV,

    You have a while loop in loop a while. When you run the other while the loop stops when you press the stop button, the inner circle while loop always executes. Since your OK button use latch release, what I noticed is that when you pressed the OK button, it quickly into position from true to false, which never stopped during the operation of loop (maybe because of the wait). Can I ask what are you actually doing with the structure of sequence?

    I would suggest using the event structure in place (http://zone.ni.com/reference/en-XX/help/371361K-01/glang/event_structure/):

    Here are some information about the structure of the event:

    http://www.NI.com/white-paper/3331/en/

    http://www.YouTube.com/watch?v=8eO64fo3Pho

    Warm greetings,

    Lennard.C

  • While the loop does not stop within a structure of business

    Hi all

    I have a business structure that works an engine to a certain PWM when my metal detector does not give an amount greater than the threshold that is ' false '. The motor is controlled by a PI controller so a while loop is used inside the false state. When my metal detector exceeds the threshold I want the "true state" to perform but which does not occur. the entire program is a while loop which aims essentially to maintain the operation of the metal detector. How can I make the State of the switch works.

    Once you get the code is trapped inside the inside while loop, it will never be a Boolean wire change because change is outside. All you need is a loop that contains a structure of housing. Run your program with execution highlighting to get a better understanding of the flow of data.

  • Firefox.exe * 32 process does not stop when the program is closed in version 17.0.1, on windows 7 64 bit OS.

    Trying to open the Firefox browser, I get a message that Firefox is already running... You can stop the process or restart the computer. This is a recent problem and I can't think of any changes that may have occurred to change the operation of the two programs.

    The support on Firefox "suspended" article has a few pointer on Firefox is not completely close and clean up after itself. Help anything here:

    https://support.Mozilla.org/en-us/KB/Firefox-hangs-or-not-responding#w_firefox-hangs-when-you-quit-it

  • computer Vista laptop does not stop when the lid is closed

    I have all the correct power settings. mode when the lid is closed, I tried setting Hibernate and sleep. It just keeps running and running, I'm afraid it will overheat. but it should stop when the lid is closed, correct? Thank you sissy

    Hello banditpunpun2,

    Thanks for the return of the response.  I also go to your manufactures website and confirm you are updated with the lates drivers, updates the firmware and BIOS.  I even watch the forums on the manufacturer's Web site to see if others have experinced the same question.

    Please let us know status.

  • The column that does not match when comparing two records

    Hi all

    We try to compare two tables and find the differences. So if two records (1 of each table) have same PK but not always matching because of some columns, then we would display this columnname. For example:

    Table 1

    PK Parent Child Property1 Property2
    1AA1P1PR1
    2BB1P2oraPR2
    3CC1P3SRP

    Table 2

    PK Parent Child Property1 Property2
    1AA1P1PR1
    2BB1P2PR2
    3CC1P3PR4

    In the above example when I compare 2 tables all matches except Property2 online n ° 3. Thus, we would like to get an output like:

    PK Column_Mismatch
    3Property2 (this must be the name of the column that does not match)

    Appreciate the help.

    Thank you

    Andy

    Hi, Andy.

    Andy1484 wrote:

    Hi all

    We try to compare two tables and find the differences. So if two records (1 of each table) have same PK but not always matching because of some columns, then we would display this columnname. For example:

    Table 1

    PK Parent Child Property1 Property2
    1 A A1 P1 PR1
    2 B B1 P2 oraPR2
    3 C C1 P3 PR3

    Table 2

    PK Parent Child Property1 Property2
    1 A A1 P1 PR1
    2 B B1 P2 PR2
    3 C C1 P3 PR4

    In the above example when I compare 2 tables all matches except Property2 online n ° 3. Thus, we would like to get an output like:

    PK Column_Mismatch
    3 Property2 (this must be the name of the column that does not match)

    Appreciate the help.

    Thank you

    Andy

    Why you don't want no matter what exit for pk = 2?  Property2 does not correspond either to pk.

    What happens if the 2 columns (or more) do not match?  The following query would produce a list delimited, such as ' parents; PROPERTY2 '.

    WITH got_mismatch AS

    (

    SELECT pk

    , CASE WHEN t1.parent <> t2.parent THEN '; PARENT' END

    || CASE WHEN t1.child <> t2.child THEN '; CHILD ' END

    || CASE WHEN t1.properry1 <> t2.property1 THEN '; PROPERTY1 ' END

    || CASE WHEN t1.properry2 <> t2.property2 THEN '; PROPERTY2 ' END

    AS the offset

    FROM table_1 t1

    JOIN table_2 t2 ON t2.pk = t1.pk

    )

    SELECT pk

    , SUBSTR (incompatibility, 3) AS column_mismatch

    OF got_mismatch

    WHERE mismatch IS NOT NULL

    ;

    If you would care to post CREATE TABLE and INSERT statements for your sample data, and then I could test this.

    The query above does not count NULL values as inadequate.  If you want that, the same basic approach will work, but you can use DECODE instead of <> to compare columns.

    What happens if a pk exist in a table, but not the other?  You want an outer join, where I used an inner join above.

  • loop does not work when exporting my slide show

    Photos (1.5) loop works on the slideshow which saves to iTunes, but not when I save on USB or play office.

    Photos documentation does not, if the "Loop" function is supposed to be exported with the video rendering.

    But you can play the video in QuickTime Player as an infinite loop using the command "View > loop ⌥⌘L.

    You can report the problem to Apple: Apple - Photos - comments

    It's a bug or a problem of incomplete documentation.

  • Corrupt Windows files, startup repair does not, blockages when touching a certain area of computer

    Hello, I had a lot of problems with my computer.

    In the past months, if a tap some area of my computer when my computer is turned on, my computer has two answers to this. 1.) screen turning black but computer remaining on. Restart computer 2.). (This area is located to the left of my touchpad / touch area of my computer.)

    If I try to turn on my computer, the three "signs Lock" light on my computer and the icon of a cell tower. The screen remains black. So that my computer to turn back once again, I have to remove the battery for a few seconds and put back in.

    Recently, my computer wanted to check one of my disks for consistency. and on a different file each time, my computer is stuck on this one for a minute or two, then said the file file is unreadable / it is corrupt. It is then placed on the following, and the same thing again and again.

    Another problem is that some programs on my computer take a very long time to load, as well as tabs.

    Also, sometimes when I start my computer, he recommends that I launch startup repair. So I press on enter and it takes me to a screen that says basically that my OS is corrupted / not working properly.

    I tried to restore my computer to an earlier time, and when I do it gives me an error message saying something about Windows files is corrupt and cannot restore my computer to an earlier time before the problem is resolved.

    In the past, my computer had problems of heat fan.

    It also has a battery problem in which it loses its charge very quickly if not connected to a power source.

    I talked to a technician of the answer, and he gave me instructions to/on will my command prompt and try to create a new user account.

    On the first attempt, he told me to type the following: net user "Test" / Add

    The CMD response was that the password did not meet the requirements of the policy.

    Then he told me to try the following: ' user 'Test' net account / add ".

    The response was that «the system is not the specified path»

    Finally he told me to try the following: net user administrator / Active: Yes

    The answer was: "the user name was not found. More help is available by typing NET HELPMSG 2221.

    Technology reply told me that the problem was more complex than he thought and said he had to do a session of access on my computer. He told me about the tax of $149.99 and I told him that I couldn't do it.

    Now, I came to the community in the hope of help.

    Thank you for your help, it's greatly appreciated! :)

    News of the computer:

    Dell Latitude E5410

    Windows 7

    32 bit

    Processor i5

    KB, try the steps that apply to your operating system, in the links below.

    Use the System File Checker tool to repair missing or corrupted system files.

    https://support.Microsoft.com/en-us/KB/929833

    Difficulty of Windows Update errors by using the DISM tool or System update preparation tool.

    https://support.Microsoft.com/en-us/KB/947821

    Note: Download and run the "System Update Readiness Tool.

  • Multimedia file sharing only works if the two devices are connected using the same protocol

    So I'm frustrated!

    I spent an hour trying to get my Windows 7 computer to share my music with my XBox 360. I have two machines on my network, one connected by Ethernet to the router and the other connected by WiFi. I tried everything I could find online to get the WiFi connected machine appears in the "Music Player" on my XBox system - follow all sharing, make sure that my router has UPnP, restarted a bouquet of services, etc..
    Nothing! During this time, my machine connected to Ethernet was watching me in the face. He has appeared on the XBox without problem. I started to compare the settings on both machines and found no difference.
    Then I remembered, boredom, I had setting up WiFi sync for Windows Phone my wife. In fact, it was this session of troubleshooting that lead me to put this machine on the WiFi in the first place! Seems to set up WiFi sync, Windows Phone and the target of the machine must be, not only connected to the same network (obviously), but for some reason any the $ @$ crazy, both connected by WiFi. I just connected this computer by WiFi - not happy, a faster speed with my wired connection - and immediately fixed the problem itself.
    Then, remembering that, I moved my XBox WiFi network and - presto - my second machine appears without a problem.
    My question is... WTF! ???
    This is ridiculous - this is the same network! Why things must be connected using the same protocol?

    Hi, Edward Petersen,.

    Please contact the Microsoft community. I'll help you solve the problem with sharing music using media sharing.

    Some routers isolate the cable connections and wireless, you can check if you have the option in the configuration of the router to share media

    If the problem occurs, you can contact the router manufacturer for assistance.

    Hope this information helps. If you need help with Windows, simply reply that we will be happy

    to help you.

  • Satellite P100-347 does not stop when it is used on the power supply

    I have a new laptop of P100-347 games and I have 2 problems. Can anyone help?

    (1) when I use the usb port on the left side of the laptop, the laptop seems to restart the same time that I plug anything into it! I called Toshiba and said to update Bios, so I did (version 240 up to 330). But as soon as I did it started to the following problem:

    (2) when I run the laptop on battery, I can turn off the phone by pressing the power button or by clicking the windows locked. But as soon as I plug the power supply whenever I want to stop the laptop, the laptop just restarts. Does anyone have any ideas?

    Thanks for the comments!

  • Embed the video does not stop when moving to the next slide...

    Hello

    I have a swf file that has 10 slides.

    2 blades have video integrated inside. His works well when I look at continlusly and better bandwidth, but when I tried on lower bandwidth then the video takes time to appear. On average while when clicked on the next slide to ignore the video, overlapping sound happens.

    So what are the best way to stop the previous video of the slide with voice so overcome that problem.

    Please let me know.

    Thank you

    Jonathan morsa

    Have you tried using Insert > FLV or F4V option to see if it works differently to you regarding audio turn off when you switch to the next slide in the file?

    Insofar as the loading time of your videos, try adjusting your project to a higher percentage preloader, for example 50% or more.  However, in general, I would say that you don't place video files even moderately heavy on the slides to the beginning of your project.

  • the loop does not stop until an exact number

    When I get the data via the shared variable table, the moment where I click on the 'Ok' button it opens 25 sheet of my workbook

    what I want, it's if my table has just 5 full rows of data, the moment I click 'Ok', only 5 sheet of my workbook opens.

    I think it's indexing related issue.if could someone help

    Thank you


  • Photoshop CC process does not stop when the application is closed.

    After I closed CC in Photoshop, the process runs, draining about 6 GB of RAM.  Is there another solution to that ending the process manually?

    Thank you for the information, I suggest you to please update to the latest version 2015.1.2

    Also please go to the Task Manager, then go to the process tab, right-click on Photoshop.exe and click on set the priority.

    And select high, restart the computer once.

    Restart Photoshop and see if the problem persists or not.

Maybe you are looking for

  • 120 1135 Pavilion all-in-one: remove the power on password

    password entered accidentally now cannot access computer without pw. How to remove password as a whole in a single computer with no round so can not access the jumpers on

  • Orientation lock does not not in 9.2.1

    9.2.1, I could turn my Plus 6 iPhone or iPad and use the locking of the orientation portrait or landscape view.  Now with 9.2.1, the orientation lock does nothing and answer only the applications allowing the rotation of the screen.  Anyone having pr

  • Crosstalk channel PFI, error Code:-201314

    Hello world I would like to make several synchronized outer edge count the spots on a NI PCIe-6353. The problem is that I get crosstalk of impulses between the channels of the PFI, leading to some sample clock pulses and possibly error-201314 misinte

  • MSN Messenger does not start 64-bit Internet Explorer

    When I click on my Inbox in MSN messenger, it opens hotmail in Internet Explorer 32-bit. But I want to open the 64-bit version of Internet Explorer. How?

  • Ab219TX: Integrated 10/100 BASE-T Ethernet LAN

    Hello I need drivers for WIndows 7 Pro 64-bit Ethernet controller PCI\VEN_10EC & DEV_8136 & SUBSYS_8096103C & REV_0A PCI\VEN_10EC & DEV_8136 & SUBSYS_8096103C PCI\VEN_10EC & DEV_8136 & CC_020000 PCI\VEN_10EC & DEV_8136 & CC_0200 Network controller PC