Expect a result of zero when subtracting, but is 138.778E - 18

I get unexpected values in a subtraction routine. I'm using LabView 2013.

In my example code VI, I have several condition blocks sequentially decremented 7 banks of values. I get an unexpected result when executing my code under the following conditions:

Bank 1 = 1.0

2 the Bank to Bank 7 = 100

BankTTL = 601,00

Maneuvers of rate = 1, which makes the Rate(%FP/s) = 0.10

I run the code 10 times expected decremented by 1 Bank of 0.10 each time.

When I run the code the 11th time, 1 Bank should remain at zero and Bank 2 should begin decrement.

However, this is not the case...  1 Bank becomes-. 01. This should not happen.

By tracing the code, put a probe on the entrance to the indicator of Bank 1, the value returned after 10 executions in the "probe Watch Window' is 138.778E - 18. This is unexpected. The value displayed in the front panel is 0.00.

When I start my logic with the following values:

Bank 1 = 0.1

2 the Bank to Bank 7 = 100

BankTTL = 600.10

Maneuvers of rate = 1, which makes the Rate(%FP/s) = 0.10

I get the expected result of zero in the 'spy Probe window' as the façade for Bank 1 indicator.

Your help to solve the unexpected result would be greatly appreciated.

Thank you.

Lixuan

SGL/DBL types store numbers in binary format. Powers of 2 can be represented accurately (..., 0.125, 0.25, 0.5, 1, 2, 4, 8,...), but most of the other numbers may not.

100, 0.1 and 601 are not powers of 2, so these values can be stored precisely and produce any rounding errors. See: ""which causes any floating point rounding errors?".

Note that 138.778E - 18 is 0.000000000000000138778, which is very close to zero as your starting value is of ~ 600.

Tags: NI Software

Similar Questions

  • How reset you the app to drive zero when you have completed a workout?

    How reset you the app to drive zero when you have completed a workout?

    Hi Larry

    When you are ready to complete your workout, press firmly on the view > press end > turn the digital Crown to scroll the summary results > at the bottom of the summary, touch save or delete.

    More information:

    Use of the workout on your Apple Watch - Apple Support

  • Result has changed when you click on the PDF attachments

    Result has changed when you click on the PDF attachments.

    It's recent, possibly after updates, I use Adobe Reader 10.0.10, Firefox 35.0.1 on a computer that is running Windows 7

    I no longer get the open/save dialog box when I click a pdf attachment, how do I get that back please?

    I have other problems, but they may be related to the above, so I would like to sort first if possible.

    ,

    In Firefox, go to Tools - Options - Applications and enter "pdf" in the filter field. Then select the action you want from the list.

  • Difficulties to display recorded XP of Windows Movie Maker movie file. You try to view saved WMV format results in arrested image creation, but the music continues.

    Problem with Windows XP Movie Maker. You try to view saved WMV format results in arrested image creation, but the music continues. Tried to re-record and solve the problem, no luck. Can properly view in Movie Maker as a project, but not the final version in WMV format.

    More details: I saved my Windows XP Movie Maker project in WMV format. I taped 3 ways: at my computer on a flash drive and a CD - r. Everything seemed fine until I try to see the movie. The video freezes on a different image in each of the places I recorded it, but the music continues & it's in the same place every time depending on what I am posting with (the computer it freezes on a certain task, the flash on another, the cd on another), tried re-register but it always does the same thing... gel on a photo but the music continues. Help! I can't find a solution anywhere. PS Please answer me "simply", as I'm not too computer savvy.

    Problem with Windows XP Movie Maker. You try to view saved WMV format results in arrested image creation, but the music continues. Tried to re-record and solve the problem, no luck. Can properly view in Movie Maker as a project, but not the final version in WMV format.

    More details: I saved my Windows XP Movie Maker project in WMV format. I taped 3 ways: at my computer on a flash drive and a CD - r. Everything seemed fine until I try to see the movie. The video freezes on a different image in each of the places I recorded it, but the music continues & it's in the same place every time depending on what I am posting with (the computer it freezes on a certain task, the flash on another, the cd on another), tried re-register but it always does the same thing... gel on a photo but the music continues. Help! I can't find a solution anywhere. PS Please answer me "simply", as I'm not too computer savvy.

    ===================================
    Some experiments to try.

    (1) create a small project with just a few pictures and see if it will play.

    (2) use .bmp photos to create the project instead of .jpg photos.

    (3) remove all transitions and resave the project as .wmv and see it it helps.

    (4) If your music .mp3 file... try to use .wma or .wav. John Inzer - MS - MVP - digital media experience

  • I can't open my camera of withdrawal because it asks to format when inserted, but when format us windows says it can't complete the format

    I can't open my camera of withdrawal because it asks to format when inserted, but when format us windows says it can't complete the format

    This problem is usually caused by

    1. problem with the connecting cable
    2. the problem with USB port
    3. problem with the device itself.
    I suggest you try changing ports and cable. If this does not work, the problem is with the device only.
    In addition, note that the option to remove is not necessary to be used if you use Windows XP or a higher version of Windows and the device has an indicator of activity.
    As you can see, most USB storage devices are configured for the fast-moving, which means, no need to use the option remove safely. If you are sure of a use, for example, a file transfer operation is complete, you can remove the device directly.
  • I downloaded the demo of Photoshop elements 13 and saw some instructions when downloading but now cannot find them and I do not think that have completed the installation as it is not on the computer.

    I downloaded the demo of Photoshop elements 13 and saw some instructions when downloading but now cannot find them and I do not think that have completed the installation as it is not on the computer.  There is a deployment folder that I can click in.  Could this be it?

    Barbara, what version of operating system do you use? / Applications (Mac), you can check and control panel > programs and features (Win) to check if it's installed on your machine.

    Here is the link for products download Photoshop Elements | 10, 11, 12, 13

    I hope this helps.

  • With the help of period as a double zero when entering timecode values

    It is a very long tradition (since CMX edition in the 1970s) to use the period on the numeric keypad as a double zero when entering timecode values.  For example, 1... would be 1:00:00:00.  0102 would be 01:02:00:00.  When you press the period, the application will display 00.  This has been the case with all other editors I've ever used.

    How you ask for it as a feature request?

    -Paul

    Here:

    Adobe - feature request/Bug Report Form

    MtD

  • WRT610N - file Copies Bill fine, but the result in zero-byte files

    Hello

    I have a WRT610N and player USB Western Digital 1 TB connected to it.   When I try to copy files from another PC connected wireless, or a desktop PC connected via cable, the copy of the proceedings very well, no error, but the files then appear as zero byte files, unnecessary.  I can read the files that I wrote with the drive connected directly to a PC via USB.  I have the latest firmware.

    I converted the FAT32 to NTFS file system and it seems to work fine now.

    Thank you very much!

  • Premium creative suite of Adobe - I can't registerit on a new computer and I can't turn it off the old. On my account the results of the stored program, but when I open the program it asks me to register

    Adobe creative suite premium.

    I can't save it on a new computer and I can't turn it off the former where it is registered (where can I find the registration number?)

    On my ADOBE .COM account results achieved registered (?), but when I open a program it asks me to register and if I do, it does not work.

    There is a phone number of (Italian) help?

    Thank you.

    assuming it comes to cs6 or more, find the serial number of your product Adobe quickly

    If you see an anomaly of counting activation, contact adobe for hourly pst support by clicking here and, when available, click on "still need help," https://helpx.adobe.com/contact.html and ask a county of activation reset.

    [left Adobe Creative Cloud for download, installation, commissioning]

  • VMWARE HORIZION VIEW 6.0: it does not serve any which RDS (using PCoIP) session to my zero Teradici Clients but it works with Horizon of VMware View client 3.0.0 from my computer

    Hi all

    I'm testing view Horizon 6.0 Service sessions (Windows 2008 R2) RDS through PCoIP. I think that my setup is just because I can connect via Horizion View Client (installed in my laptop or my Android smartphone). But when I try to connect from a Client Tera zero, 1 or 2 (with the latest firmware), at the same time I did logon, I still have this error:

    "View server connection has no return of available virtual desktops."

    Could someone tell what can be wrong?

    Concerning

    As a result of this discussion "Re: RDS support is included in Vmware View (broker)?" I saw that I must spend my customers zero to 4.5.1 firmware. Once I did, Tera 2 Zero Clients work very well but do not have customers zero 1 Tera.

    I expect response from Teradici.

    Concerning

  • BEEP graphical report shows zero when data are missing in EBS instead of null

    Hello

    I have a rtf model and an xml data file. When I generate the release, beep desktop tool, the graph shows the value as null as expected. But the same thing when I try to preview the output in xml editor responsibility in ebs, null values are shown as a zero in the graph.

    Download the rtf, xml and the release of the desktop ebs and beep tool.

    Please advise on how to display the value null when the data aren't there in a graphic that is in the rtf model in EBS.

    Note: The issue happens with all types of output

    Kind regards

    Diakite

    The BSE file is secure so I don't see the version,

    but probably you are on a version lower than desktop computer (10.1.3.4.1).

    The instance of the EBS is probably running into something similar to this:

    Bug 18270934 : PUBLISHER PRINTS NULL VALUES such as ZERO IN a TABLE

    Kevin

  • Why all the results are duplicated when searching in my bookmarks library?

    If I search for "Shell", for example, and then click on the 'name' column, most of the 'results' are duplicated. For example, "Perdido | On Shell"in the"shell"folder Parent is shown twice... same URL and al. I see that the or after the 01/02/2013 added bookmarks are NOT duplicated.

    In my case, the bookmarks ARE actually duplicated. I checked by exporting and by analyzing the HTML code.
    The whole "All bookmarks" hierarchy had somehow been copied into a random location of my favorite tree. This is why all bookmarks except most recent lie twice.
    It looked like this:

    - All Bookmarks
      + Bookmarks Toolbar
      + Bookmarks Menu
         + MY_FOLDER_A
         + MY_FOLDER_B
         - MY_FOLDER_C
           MY_NESTED_FOLDER_A
             - All Bookmarks
                .... older state fully duplicated!!!
    

    I deleted the nested copy of "All bookmarks" and it seems OK now.
    I made this copy by mistake (which I highly doubt) or a bug caused.

    Good to hear that you are not using Firefox Sync (I use it). It would have been a Prime Minister candidate for causing a problem like this. (My bad favorites have been replicated to all of the computers connected with synchronization).

    The copy of "All bookmarks" should have been made over the past months, but I couldn't determine exactly when. The copies have the same ADD_DATE and LAST_MODIFIED timestamp in the HTML file.

  • Search only to hide resulted pdf pages when search results will require a readjustment

    Hi all

    I have a pdf of dynamic xml form, when open the pdf doc, only one page will be visible on this page I have search features. Once I do a search on this page according to research he reveals these pages (which are satisfied with the search conditions). In each page of search results I have a "Return to Homepage" button, when the user click of button on the search results needs to be reset (need to hide all no hidden page and update should come to the search page).

    Actually, I got this feature but here when the user clicks on the "Back to Home Page" button, I'm hidding all the pages in pdf doc. Here, I need to hide only the pages that are displayed not all pages in pdf format. My code snippet as follows (assume that doc pdf has 8 pages)

    topmostSubform.Page1.presence = 'hidden ';
    topmostSubform.Page2.presence = 'hidden ';
    topmostSubform.Page3.presence = 'hidden ';
    topmostSubform.Page4.presence = 'hidden ';
    topmostSubform.Page5.presence = 'hidden ';
    topmostSubform.Page6.presence = 'hidden ';
    topmostSubform.Page7.presence = 'hidden ';
    topmostSubform.Page8.presence = 'hidden ';

    How to hide only search pages has resulted. Because if I have 500 pages in pdf doc, I need to write to hide for each page. I need to avoid this.

    Thanks in advance

    Prasad Salvan

    Hi Prasad,

    Since you had the search criteria to make the required pages visible, I would put in place a global variable (in the file / form properties / Variables tab) and then the search script put the search criteria in the global variable (when accessing the global variable, you must only .value, instead of .rawValue).

    When you set the global variable you must give a name and an initial value of "0".

    Then the button "go to the search page" would include script to hide the page references in the global variable.

    Good luck

    Niall

  • Help - REGEXP: ignore zeros when it is followed by letters

    Hello

    I have a database with the data entered is wrong.
    Ex: 1NC_P51234, 1NC_P01234, 1NC_P0001234

    Is it possible to do a query: SELECT * from table where name like '% 1NC_P51234' and resulting:

    1NC_P51234
    1NC_P01234
    1NC_P0001234

    Basiccly YES, after the undercore and the letter P, ignoring the zero

    Thanks in advance,

    Roseline, Montreal, Quebec, Canada

    Published by: Katie on October 26, 2009 08:14

    Hi, Roseline,.

    I think I understand now. Examples of great help, and done the formatting.

    Let's rewrite the existing query, to make it more clear what he does:

    SELECT  *
    FROM    table_x
    WHERE   REGEXP_LIKE ( name
                        , '_P'     ||     -- (a) the characters '_' and 'P', followed by
                    '0*'     ||     -- (b) 0 or more '0's                  , followed by
                    '[1-9]'     ||     -- (c) any of the characters '1' througn '9'
                  )
    ;
    

    That may have worked perfectly for your orriginal problem, but now you have a slightly different problem.
    Before the optional '0', now you can get the 5 string '06 M - P' nstead of the string 2 "_P". You can simply change the part (a).
    After the '0' option, you must now find the character '2' instead of characters 'by 9' 1. You can simply change the part (c), and you now have:

    SELECT  *
    FROM    table_x
    WHERE   REGEXP_LIKE ( name
                        , '06M_P'     ||     -- (a) the characters '0', '6', 'M', '_' and 'P', followed by
                    '0*'     ||     -- (b) 0 or more '0's, followed by
                    '2'     ||     -- (c) the character '2'
                  )
    ;
    

    Again another time, condition (a) can be '09R_P' and condition (c) could be "600", in which case you could say:

    SELECT  *
    FROM    table_x
    WHERE   REGEXP_LIKE ( name
                        , '09R_P'     ||     -- (a) the characters '09R_P', followed by
                    '0*'     ||     -- (b) 0 or more '0's, followed by
                    '600'     ||     -- (c) the characters '600'
                  )
    ;
    

    Actually, all of the queries above work exactly as written. The 2nd argument of REGEXP_LIKE can be any kind of expression.
    It can be a single literal string, like

    '_P0*[1-9]'
    

    or it can be a concatenation of string literals 3, as

    '09R_P' || '0*' || '600'
    

    or it can be a concatenation of literals and bind variables, as

    :part_a || 'P_0*' || :part_c
    

    or it can be a concatenation of any kinds of string expressions, including
    literals,.
    bind variables,
    columns,
    SUBSTR,
    CASE expressions,
    even other regular expressions.

  • Firefox expects more (circle spinning shown) when AJAX post to CGI completed. How can I tell Firefox that is obtaining?

    After posting a simple form to insulin nph CGI using AJAX, Firefox seems to expect more and shows the circle of rotation when the request is completed and returned content is displayed in the browser window.

    The javascript works well with Internet Explorer.

    The CGI returns Content-Length HTTP header.

    submitForm.xml.onreadystatechange=function()
    

    {

    if(submitForm.xml.readyState==4)
     {
      // Everything ok here
     }
    

    }

    How can I tell Firefox that is obtaining and replace the circle of rotation with the favicon of the site?

    Browser O/Ss: Windows XP and openSUSE 2012.1
    Server operating system: Linux (Mandriva 2009)
    Httpd: Apache 2.2.22

    Thank you.

    See if you can find the answer with the links here:

    http://www.Google.com/search?q=site:developer.Mozilla.org%20Document.write%28%29 & ie = UTF-8 & oe = UTF - 8 & LR = lang_en

Maybe you are looking for

  • Satellite L650D - HDMI problem

    I have a toshiba satellite L650D and a Toshiba TV.Last week I connected the hdmi cable to watch a show and it worked fine. Then this week I tried again and nothing... they connect. The cable is fine, because my blue ray player works perfectly. Any id

  • Will be on a damage of PFI line 24V 9188 chassis?

    I expect no trigger for the acquisition of data with a chassis 9188, but I want to use to send the trigger pulse (servo) operation to 24V. This will damage the chassis? Should I step the voltage until the TTL level?

  • Manual update...

    My thinkpad was repaired during the last 2 weeks and I have yet to receive the update. Manual update through the States of parameters of the device is up to date, but I'm still running build 0065. Is something I'm missing here, someone knows it how t

  • HELP - icons reorganize on desktop

    I was moving from a folder on the desktop word documents and inadvertently, he became a toolbar at the top of the screen.  I dragged down and closed it - the square of the toolbar.  Since then, all the icons on the screen are rearranging themselves a

  • WMP 11 (vista) every time I go to the library, I get the message "media player has stopped working" help a novice, please.

    I have tried everything I know, that is to say the system restore; uninstall the recent & software downloads. still not good.