Strange math-problem with LabVIEW 7.1

Hello!
I am using LabVIEW 7.1 and I came to this strange math-problem. Could it be that it is a problem of LabVIEW 7.1?
Ok try this with LabVIEW 7.1:
open a new VI
place a subtract-VI (pallet numerical) on the block diagram and try to subtract 0.2 from 1.6
place a less-VI (pallet compare) on the block diagram and wire a numerical constant 1.4 to input x
wire the result of the subtraction to input y of the comparison
place an LED to the output of the comparison
and start this.
What does it say?
The LED should turn on and this means here that 1.4 would be less than 1.4 .
But I would have expected that 1.4 is not less than 1.4 .
This works also if you add or subtract upto 0.2 to/from the values 1.4 and 1.6 (or equivalent with 0.2) .
If you change the inputs of the comparison then the result is as expected and 1.4 is reported not to be less than 1.4 .
If you compare two constants with the same value 1.4 you will not get the same strange result.
Does anybody have an explanation for this?
Espelkamper

Hello,
For floating point math: Rounding to multiples of 0.1 is problematic as
those numbers are infinite fractions in base2 representation...
So maybe you should change your numbers to integers using fixed point math. If all your input values are in the range of 1.4 to 1.8 you can multiply by 10000 and round to next integer. Then do your comparison on that integer (there's also an 'InRange' function in the comparison palette).
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Strange major problem with 975X PowerUp Intel MOBO

    I’m suddenly having a strange major problem with a MSI 975X Platinum PowerUP Edition V2.1 MS-7246 Intel socket 775 motherboard. Previously, it had given me no problems at all.
    It went like this:
    Powered on system in the morning, booting from a cold start.
    Hit DEL key to get into the BIOS.
    Missed the window and the system booted into Windows normally.
    Re-started the system from within Windows.
    Hit DEL key to get into the BIOS and was successful the second time.
    Hit the ENTER key on the first item “Standard CMOS Features”.
    The DATE, TIME and other information was displayed on the next screen, but at this point, the BIOS screen became completely unresponsive to any keyboard input.
    The only thing I could do at that point was to power off.
    Subsequent power on boot-ups resulted in the system always freezing at the BIOS splash screen after the video card sign-on.
    I have switched power supplies, hard drives, keyboards and video cards. I have disconnected everything except the video card, keyboard and one RAM module. I have switched the four RAM modules around and then reduced the RAM to one 256MB module in the proper slot. I even changed the battery on the MOBO, in case it had shorted out and removed and re-seated the BIOS chip. It still halts at the BIOS splash screen.
    The BIOS chip can’t be completely dead, because I powered off and pushed the BIOS reset button on the MOBO to reset the BIOS to the factory defaults. When I re-booted, I could tell that it had actually reset to the factory defaults because I had previously set the BIOS to reboot the system on resumption of power and the factory default was to remain off until the power button was pushed, which was now the default.
    I’m stumped! All I can think of is to get a new pre-programmed BIOS chip and see if that makes any difference, but I’m not sure this system is even worth the expense with no guarantee of success. Any suggestions on how I might get past the BIOS splash screen or do I for sure have a corrupt BIOS chip?

    System specs as per the posting guidelines -
    Board: MSI 975X Platinum PowerUP Edition V2.1 MS-7246 Intel socket 775
    Bios: Version (can’t recall & can’t check since it won’t go past the BIOS splash screen)
    VGA: ASUS EN7600GS nVidia GeForce 7600GS PCI-e 256MB DDR2 (also tried new XFX nVidia
             Geforce 210 PCI-e 2.0 512MB DDR3)
    PSU: Chiefmax 680W ATX (also tried new OCZ 700W ATX)
    CPU: Intel 2.8GHz LGA-775 Core2 Duo Dual-Core Processor
    MEM: 4 x Samsung 512MB 1Rx8 PC2-5300U (2GB total)
    HDD: Seagate Barracuda 250GB SATA2 (also tried Seagate Barracuda 500GB SATA2)
    COOLER: Intel OEM LGA 775 fan/heatsink C25897-001
    OC: No
    OS: Vista Home Premium 32-bit
    I have been through the BIOS reset procedure several times and pretty much as outlined. As I said before, I could tell that it had taken a reset to the factory defaults, because the power on option had changed.

  • Problems with LabVIEW 7.1 and lock-in amplifier Stanford SR530?

    Does has anybody had problems with LabVIEW 7.1 and the instrument driver for the lock-in amplifier Stanford SR530?
    With LabVIEW 6 there are no problems at all, but with LabVIEW 7.1 it is impossible to communicate with the instrument.

    amr_attia wrote: (Private message, no need to private message)
     My problem is to get the data out from the divice x and y readings . Can you help me
    Here is the code and snippet. I had it from before. It reads Channel 1 and Channel 2 from the SR530, that is whatever the display is for Channel 1 & 2. You set the display manually or programmatically, I let you figure that part out.
    Cheers,
    mcduff

  • Problems with Labview and Windows XP with error -214721786​5

    Hello. Im a new beginner in Labview and am having a problem with a error message
    I dont understand. Im running Labview on a pc-logger with windows XP.
    The program is written by a guy on my university, and logs voltage from
    a solar cell panel. He doesnt have the time to check in to it, so Im supposed to
    find out what's wrong.
    The error message is as follows :
    Error -2147217865 occured at Cmd Execute.vi->DB Tools Insert
    Data.vi->Solcelle.vi
    Possible reasons :
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers,
    [MySQL][ODBC 3.51 Driver][mysqld-3.23.38-log]Can't open file :
    'solcelledata.MYD'. (errno: 145). in Rec Create - Command.vi-
    >Cmd Execute.vi->DB Tools Insert Data.vi->Solcelle.vi
    I really hope someone can tell me what's wrong and specifically what to do
    with it, or possibly guide me to someone who could suggest a solution to this
    problem.
    Reguards
    chrisdee

    Hi Chrisdee,
          (.. not to discount what TimoS has suggested, however...) 
    Embedded in the error information you provided:
    ... Can't open file : 'solcelledata.MYD'.
    Sounds like the program needs this file?  Has the program been moved to a new location?
    just a wild guess!
    Cheers
    Message Edited by Dynamik on 10-06-2005 04:53 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!

  • Strange refresh problem with two heavily used forums...

    Hi,
    For last two weeks, I have observed a strange problem with Database-General and SQL-PL/SQL forums, which are used heavily (comparatively more number of users than other forums).
    If I navigate from Forum Home (http://forums.oracle.com/forums/index.jspa?categoryID=84) to Database-General (General Database Discussions or PL/SQL forum (PL/SQL these forum pages open within 2-3 seconds but they open.
    But if I hit refresh (F5) from within these forums, 9 out of 10 times, I get a timeout or a page not found error.
    I can navigate back one page, click on link to go to Forum home and from there to Database-General or PL/SQL forum and everything works fine.
    I have tried clearing all caches, cookies and other settings on my Firefox (3.0.1) but it has not helped so far.
    Is this a known issue?

    Satish,
    I have to use the back button when after writing a reply, I am welcomed by 500_internal Service error. If I would refresh there, I lose what ever I have written. So I go back and again submit.
    For the refresh,at times ( and very often) , I find forums being slow like dead. Ironically with the reply button,thread(s) work but otherwise not. So I do a logout , refresh the page and if have to reply,click on reply. After that again, logout and refresh.
    if things are fine than refresh works fine,sadly not quite often as it should be.
    Cheers
    Aman....
    PS: Are you on Oraclecommunity.net?

  • Linux font problem with LabVIEW 7 Express

    Is there a change in how LabVIEW 7 Express for Linux
    uses fonts? When I run LabVIEW 6.1 (on the same
    machine) the standard font (10pt Application) looks
    very nice (in menus, front panel and diagram). With
    LabVIEW 7 they are not so good to read. What can I do?
    Thanks in advance,
    Armin Herzer

    Hello Evan,
    Sorry for the late replay, but I was on holiday last week.
    I am using Debian GNU/Linux woody 3.0 (testing). The video driver is the one which is shipped with XFree86 in this Debian installation. I also used the newest video driver from NVidia but the problem is the same (btw. is this a NVidia problem? Unfortunally I can only test on machines with NVidia cards). I attached a screenshot to visualize the problem.
    The problem is not VI specific. All text (menus, comments and so on) have this ugly font.
    Thanks in advance,
    Armin Herzer
    FH Ravensburg-Weingarten
    University of Applied Sciences
    Attachments:
    lv6170.png ‏15 KB

  • Any problems with labview runtime v 7.1 on one host interacting with lvrte 6.1 on another host?

    Using OPC, UDP ant TCP on the host running lv 7.1 runtime, communicating with a second host running lvrte 6.1. Both hosts communicating with cpfp 2020 and using similar IAK files. Need to know if there are any known problems with this scenario. I cannot convert st this time, the legacy 6.1 side.

    Hello,
    Thank you for contcting National Instruments.
    I am not sure I understand your question. The LabVIEW Run Time Engine (LV RTE)is used when you will be running an executable on a target. If you want to run executables on your cFP-2020 that were built in LV 6.1 and 7.1, you will need to make sure that LV RTE 6.1 and 7.1 are installed on the cFP 2020.
    If you wish to run VIs (not executables) targeted to your cFP-2020, you can use LabVIEW Real-Time 6.1 or 7.1, but not both.
    Let me know if you have further questions.
    Sean C.
    Applications Engineer
    National Instruments

  • I have a strange WPA problem with my airport card

    To set the scene, I'm using a powerbook G4 with built in airport card. My home router is a Belkin Pre-N MIMO.
    I have had a recurring problem with the router for a few months now, I don't quite know when it started, but it has gotten to the point where I must do something about it.
    The security on the router is set to WPA PSK with a TKIP system. I understand that in order to preserve the integrity of the encryption, the WPA key is routinely changed. In normal circumstances, this transfer is instant, but for some reason on my powerbook, it results in the computer becoming disconnected from the Internet, although it thinks it is still connected. Even more strangely, only port 80 is affected by this, as ftp, POP3, online games and instant messengers work fine.
    Disabling the security on the router seems to fix the issue, but leaves the network open to others. Other wireless computers, including a G4 MDD with a Belkin Wifi card, are not affected by this issue.
    I thought it might be a problem with my powerbook's built in wireless card not dealing with the WPA key change process, but i'm not sure. I'd appreciate any insight.

    This was solved by buying an Apple Airport Base Station.

  • Strange new problem with external effects and latency compensation

    i'm currently facing a new , very strange problem with latency compensation for external effect devices. it alway worked fine for me but suddenly there are strange things going on. i'm suddenly running into problems when using sends which feed auxes going to external effect devices.
    latency compensation is set to ALL !!!
    easy setup :
    - open an empty project and create 2 audioinstrument tracks. on the first one load the exs with a drumkit and record f.e. a bassdrum pattern. leave the 2. instrument empty.
    - now on the first audio instrument create a send to bus 1 -> aux 1 and insert the i/o plug-in in the aux and route it to your external effect device. chose a temposynced delay.
    - press play = everything is fine when audioinstrument 1 is highlighted in the arrange.
    - press stop, click on the track with the 2. audioinstrument and press play = totaly weird timing problems. delay is only in sync when track 1 is highlighted.
    - create a send in the 2. audioinstrument and route it to bus 1 -> aux 1 too = still the same problem
    now insert ANY softwareinstrument in audioobject 2 and suddenly the timing for the delay is right.
    go ahead and create a 3. audioinstrument track but leave it empty first. chose it in the arrange = again weird timing problems with the external delay.
    insert any software instrument on audioinstrument 3 = still the same problem
    now create the send to bus 1 -> aux 1 in audioinstrument 3 and guess what, timing is right.
    *** is going on here ? can anyone reproduce that ?
    it works fine when using sends which feed auxes with software effects inserted.
    funny thing is, when i go to the environment and change aux object one to bus object 1 and insert the same i/o in it it works !!!
    very very strange, please tell me i'm not crasy and this is a bug !!!
    as said, latency compensation is set to all.
    i'm using the mac pro 3.2 8-core running os 10.5.4, logic 8.0.2 and a motu pci-e audio system.
    Message was edited by: Olaf Dieckmann

    Welcome to the Discussions.
    If you need it formatted FAT32, reformat it on your Mac. Use MS-DOS (FAT32) as the file system. If you don't need it for both PC and Mac, format it HFS+ and you'll be able to use the Retrospect Express software that came with it on your Mac.
    John

  • Strange charging problem with ZEN Mi

    I bought a 6gb Zen Micro for my girlfriend but have encountered a strange problem with charging it.
    If i connect it to my computer (have tried on several) the player displays the charging icon but will not actually charge (no flashing and the battery is not filled). But if i install Windows Mediaplayer 0 it will start charging on the very same USB-port. This is verified on several computers with USB 2.0. I also have an AC-charger with USB connection and can't charge with this (same problem as on PC, displays charging but is not charged).
    The player is using the latest firmware and Creative support recommended me to send it in. I have however not done this yet as this does not seem as a hardware problem to me but as a problem in the firmware. If the player was faulty, why would it charge when Windows Mediaplayer is installed?
    Has anyone else encountered this problem or is the player faulty?

    I can't charge mine either. I got it for Christmas and have loved it, although now it's been on charge for about 20 hours and it's only showing bar.
    It flashes for a few minutes and then sto
    ps.
    Very very annoying.

  • Strange Boot problem with iMac OSX 10.7.5 (Boot loop, not working safe boot etc.)

    Hey guys,
    I've got a strange problem with my iMac Late 2009. This morning it didn't want to boot (grey screen with turning wheel). Yesterday when I shut it down everything was fine. Last backup was finished three minutes before. So I was a bit shirty but noch scared of any data loss.
    I tried  the following things:
    1. boot recovery and check hdd (it's a new one, only second day back from apple store for replacing seagate hdd), everythings fine
    2. try to boot in safe mode, did not work!
    3. try to boot in verbose mode, did work until it stopped. Screenshot of the last lines of log is within this post
    4. I used my TM backup and afterwards I could boot! Strange, because as I sad the backup finished a few minutes beforce I left my mac and shut it down
    Now I'm a bit scared of shutting it down again But what would be the next step to find the error? My first thought were some third party kernel extensions, but that would not affect a safe mode boot, am I right? I have a Macbook Air here which is setup nearly identical to my mac and it's working. Could it be a hardware fault? Maybe you've got an idea.
    Thanks!
    Max

    at the moment it seems to be a corrupted time machine backup from my old hard drive (new one has a runtime of 27 hours). So I'll will try a clean install of my system at least, when I got the time. sh%&$ !

  • Strange ODBC problem with 64 bit (x64) 10.2 client

    Hi,
    I'm encountering a strange problem with the 64 bit ODBC driver that comes with the 64 bit (x64) 10.2 client. I have installed the client and that all went fine, and I can use sqlplus to access my databases.
    Now, I have setup an ODBC datasource using the Oracle ODBC driver that gets installed and if I click on the Test button and provide correct login information I get connected just fine.
    So, now if I attempt to use this ODBC datasource from a 64 bit program that I am writing, I get the following error message :
    [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified.
    I'm know my program is ok because I have tested it with other ODBC drivers and they work. I can't seem to determine what exactly I'm missing that is making this not work. I have set the environment variables TNS_ADMIN and ORACLE_HOME to point to the correct places - I think, but that doesn't help. Also, the Oracle \bin directory is in the path as I thnk it should be.
    I'm stumped. Does anybody have any idea what could be the problem here ?
    Thanks,
    Nick

    Hi,
    I tried that and I couldn't get it to connect using the Oracle ODBC driver. It worked fine if I picked a SQL server ODBC datasource, but not an Oracle one. With the Oracle ODBC DSN, I don't even get an Oracle message, I get an ODBC configuration error.
    I'm pretty sure that the Oracle ODBC driver is 64-bit since the ODBC admin program is a 64-bit program and it is able to do the test ok.
    I'm think that the when using the ODBC driver, there is something in the environment or in the naming of the DSN that I am doing wrong

  • Strange ide problem with 845 ultra

    i have got a really strange problem with my 845 ultra board
    I have a 2.0 GHz cpu in it, 2x 256MB Nanya CAS2 ddr, , gf4ti and a Realtek nic, onboard audio
    ide ports:
    primary master: IBM 80GB hdd
    primary slave : Lite-On dvd
    secundary master: Lite-On 40x cd-rw
    Whenever I burn a cd, the whole system hangs while writing the lead-in and lead-out, after that is complete,everything works fine again
    Also, when i add files to my Winamp playlist, I always get a general protection fault in Winamp.exe...
    And, yes I did check my ram with Memtest86, it is fine
    Even a fresh install of either windows 2000 sp3 or windows xp doesn't have any effect, even with all WHQL certified drivers installed
    The strange thing is: If I connect all ide devices on a Promise Ultra100 TX2, all problems disappear.
    So, is my onboard ide controller dying?
    btw, all ide devices work fine in my brothers k7t266 pro2..
    edit: fixed it
    Never knew that the Intel ide drivers needed to be installed.
    I have never needed any ide drivers for any board,so this surprises me.

    Quote
    Originally posted by wonkanoby
    power supply details,make model,combined amps 3.3 and 5 v
    Enermax 431W EG465PVE
    combined amps
    min - 185W
    max - 220W

  • Problems with labview 7.1

    hi all,
          i had posted this question before but no one replied so i am posting it as a new message.
    i am using labview 7.1 and wanna use fp-1000 and fp-tc-120(2 of them) to measure 16 temperature values from t-type thermocouples.
    i connected the fieldpoint hardware with labview through RS-232 and also installed fieldpoint 5.01(with support for labview 7.1) in my system. but MAX does not detect the device. why is this happening.  i checked the port settings and they are fine.
    if the following info helps then i must mention that a pci-gpib card and a scxi daq system is also attached to my pc. i also made sure that the addresses are different for each one of the hardware devices.
    something more, previously i was using labview 8.2 on which the device was working fine. but i had to migrate from one pc to another on which there is labview 7.1 and i cannot install labview 8.2 on this system. so please let me know what to do?

    Hello Kuna,
    Looks like your other forum post was replied to. In order to maintain the efficiency and organization of NI Discussion Forums, please refrain from creating duplicate posts in the future.
    Cheers,
    Emilie | Applications Engineering

  • Problem with Labview and an ARM Cortex

    Good morning,
    I am currently trying to use Labview with a board from ST Microelectronics (MCBSTM32) with an ARM Cortex Processor.
    I use the SDK and have followed the tutorials.
    But, when I try to launch the program (the simple loop as write in the tutorial n°2 : http://zone.ni.com/devzone/cda/tut/p/id/7029 ), Keil gives me an error via Labview:
    "Argument 'DARMSTM' not permitted for option 'device'."
    It seems that Keil does not allow an ARM Cortex from ST as the device.
    Moreover, after having this problem, I am unable to use a Keil project ,even a project which worked before, without Labview. I need to restart the computer.
    I also try to launch the Keil project generated by Labview, without using Labview, and it works. But as soon as I use Labview, I have the error.
    Did anyone already have this error or know how to solve it
    Thank you for your answer and sorry for my bad english.
    Regards,
    Raphaël VAISSIERE

    Hi Raphi,
    So let me make sure I understand,
    The project created in LabVIEW errors out with the message "Argument 'DARMSTM' not permitted for option 'device" 
    If you open the same project in Keil uVision, it runs fine
    Here are my questions:
    1. So how does the code run when run through Keil? does it deploy and run fine?
    2. Did you follow the porting procedure completely?
    Your target STM32F103RB  is techincally supported by Keil but you need to port the RTX kernel to it. This paragraph explains it:
    To determine if your target already supports the RTX Real-Time Kernel, browse to the \Keil\ARM\Startup directory, then browse to the folder that corresponds to the manufacturer of your ARM microcontroller. If there is an RTX_Conf*.c file for your target, then the RTX Real-Time Kernel has already been ported for your ARM device. If no such file exists, skip to chapter 4 for more information on the RTX Real-Time Kernel and a guide for porting RTX to your ARM microcontroller. 
    You also need to port the Real-Time agent to it.
    I just want to make sure that you have followed the guidelines. If you have and are still having problems, we will continue to explore this.
    Thanks,
    National Instruments
    LabVIEW Embedded Product Support Engineer

Maybe you are looking for

  • Printer connected to Windows 7 computer remains offline despite being shared over network to imac

    My new imac is connected directly to my HP printer. I am trying to connect from another room my old PC running Windows 7 also to this printer over my home network. I have the same workgroup on both computers, and have activated sharing. As far as I c

  • I was gifted a MacBook with no OS X. How can I get a copy of Mountain Lion?

    My friend upgraded to a new MacBook and when he wiped his old one he gave it to me. Now it's waiting for me to load an OS X. I don't currently have one, so I was going to wait until Mountain lion came out, but now everything I read see seems to say y

  • Percentage based on the Date and Dimension -  WEBI

    Hello, I have to calculate percentage based on the Dates and a Dimension. I have BEX Query as source and reporting is done on BOXI - WEBI Here is the table structure in the report. List# , Process01, Process02. List# is unique and Process01-Has 4 ope

  • How to clear in the report

    I have some delivery numbers delivery I have triggered GI to site, but there are still some items pending at GIT report.  Could you help to check the reason and indicate how to clear them in the report.

  • Image navigation bar for ePub Children's book export?

    I'm designing children's picture books in ID for export to ePub. I've seen some such books on my nook (ePub) that have an image navigation bar that pops up at the bottom of the page. Readers can scroll through reduced images of pages quickly on this