Not reading the right data value

So I am reading data from a txt file that I created,in particular I am trying to pull out the first column which is the time data.  When I read it using the "Read from spreadsheet file.vi" I am getting unexpected values. For example when the first value in the file is 1491.044016 it displays 1491.044067, it does this for every value? I thought it may have been a formating issue but I set the vi %.9f on the formating field I'm not sure why it is handling the values this way? Any insights?
thanks,
Chris

Are you using LabVIEW 7.1 or older? In this case, "read from spreadsheet file" uses only SGL precision, which is not sufficient for your desired resolution.
See also: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=315189#M315189
Solution: Read the file as a plain string and then use "spreadsheet string to array" with DBL as type.
... or upgrade to LabVIEW 8.0 or higher.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Clipboard not copying the right data

    Hi All,
    I have a JTable which displays different objects in different rows. I am trying to implement the copy paste function so that the user can do CTRL+C and paste the data in an excel spread sheet. Initially I implemented the toString method for all the objects that the table displays. But, I had to modify the copy functionality, so that, for each table row, 2 excel rows can be generated. This is how I do it.
    private StringBuilder getTableData(){          
              StringBuilder sb = new StringBuilder();
              int columns = table.getColumnCount();
         int rows = table.getRowCount();
         StringBuilder row1 = null;
         StringBuilder row2 = null;
         Object value = null;
         for(int i = 0; i < rows; i++) {
              row1 = new StringBuilder();
              row2 = new StringBuilder();
              for(int j = 0; j < columns; j++) {
                   if(table.getModel().getValueAt(i, j) != null){
                        value = table.getModel().getValueAt(i, j);
                        if(value instanceof FieldComparison){
                             row1.append(((FieldComparison)value).getField1());
                             row2.append(((FieldComparison)value).getField2());
                        } else {
                             row1.append(value.toString());
                             row2.append(value.toString());
                   if(j < (columns - 1)){
                        row1.append("\t");
                        row2.append("\t");
              if(i < (rows - 1)){
                   row1.append("\n");
                   row2.append("\n");
         //sb.append("\n");
              sb.append(row1);
              sb.append(row2);
         return sb;
    I copy this data to the clipboard as follows:
    StringBuilder sb = getTableData();
    StringSelection allData = new StringSelection(sb.toString());
    cb.setContents(allData, allData);
    try {
              Transferable content = cb.getContents(null);
         String clipBoardContents = (String)content.getTransferData(DataFlavor.stringFlavor);
         System.out.println(clipBoardContents);
    }catch(Exception e){
              System.out.println("Transfer data error " + e.toString());
    At this point I can see the proper data in the console, However when I try to do a CTRL+C on the excel spredsheet, the data appears as if the toString method was called on each object. It appears like the clipboard data that I added has been overridden somehow. Not sure what the problem is. Please Help!
    Thanks!

    Are you using LabVIEW 7.1 or older? In this case, "read from spreadsheet file" uses only SGL precision, which is not sufficient for your desired resolution.
    See also: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=315189#M315189
    Solution: Read the file as a plain string and then use "spreadsheet string to array" with DBL as type.
    ... or upgrade to LabVIEW 8.0 or higher.
    LabVIEW Champion . Do more with less code and in less time .

  • Input sream does not read the entire dat

    when i read the response from the socket connection, it reads only the part of the response.
    iS=soc.getInputStream();
    BufferedInputStream bufIn = new BufferedInputStream(iS);
    BufferedReader inp = new BufferedReader(new InputStreamReader(bufIn));
    char[] res=new char[32000];
    inp.read(res,0,res.length);
    why it reads only a part of the response?

    Use readFully() from DataInputStream (this will read bytes, so you'll have to convert that to what you need) or manually force it to read the whole thing (if the array is not full, force the reading of the remaining part)...

  • Q:Date link not getting the right date in calendar

    Gang,
    I have enabled the day link on my calendar so the user can click on the date in the month view to get to a form page where they can add records.
    My day_link looks like this:
    f?p=&FLOW_ID.:2:&SESSION.::&DEBUG.:2:P2_TRAINING_DATE:#TRAINING_DATE#
    Where P2_TRAINING_DATE is the DATE I'd like to populate on page 2. The variable name that holds this date is called P2_TRAINING_DATE.
    If I hoover over the daylinks they display very strange dates and also if I click on the link the dates are wrong. For example if I hoover over 01-May the URL in the bottom of my browser displays the correct date but if I hoover over 02-May it displays 05-May instead.
    What am I missing, should I not use the #TRAINING_DATE# variable?
    Oh, this application is running on apex.oraclecorp.com so it's version 3.1.
    Cheers,
    Andy

    Hi Andy,
    Change the day link to pass #DD#/#MM#/#YYYY# (UK format, so change if another format is required).
    This will pick up the date from the calendar rather than your data.
    Andy

  • Serialport readbyte not reading the correct data

    Hello everybody
    I'm writing a software in VB.net to communicate with an external device with modbus I have a problem while reading data received from the device , to put it in example , using
    sp1.ReadByte() the data sent from the device is this :
    05-03-04-00-00-01-9F-FE-0B
    but I receive this
    05-03-04-01-9F-FE-0B
    I use this to read Data
    Dim reponse As Byte() = New Byte(5 + (2 * nombre_registrre - 1)) {}
    For i As Integer = 0 To response.Length - 1
    response(i) = CByte(sp1.ReadByte())
    Next
    It seems like 0x00 are ignored , I tried to send stream of hex manually and Ive got the same problem , always readbyte ignore 0x00 bytes
    Why is that ?
    thank you so much for your help
    Hey :)

    you are expecting 9 bytes ..
    is  (5 + (2 * nombre_registre - 1))  = 9 ... No that is impossible the answer of this equation will always be even
    therefore 
    for i as integer = 0 to responce.length-1  
    dont read 9 bytes ... it will read an even number of bytes.
    Something is wrong in your code
    I don't think it's has someting to do with my buffer length , If so why do I receive the other bytes (Not 0x00 bytes)
    as I said before , the only bytes I can not receive are 0x00 , I think its something with readbyte() function
    Hey :)

  • IPhoto '08 not reading the right library??  Help!

    When I open iPhoto and click on the "Photos" list in the left column, it says my library only has 117 photos with a file size of 175MB, however, I know for a fact I had over 1000 pictures in my library before something (that is the problem) happened.
    Also, when I go to the "Pictures" folder in finder and I 'get info' on my iPhoto Library, it has a file size of 3.09GB. So I know all of my photos are there somewhere???
    Why isn't iPhoto recognizing ALL of my library? Is there something I need to switch for a directory or something???
    Please help!
    Thanks in advance....

    Welcome to the Apple Discussions.
    Sounds like a damaged database file.
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • To make one column that do not have the same data value with pk

    All right, here's the problem >>
    I have a form on a report with columns and attributes taken from the tables in the database. 5 tables are allocated in the database, but one table is used for this "form on a report."
    I named the report as a Company form, where users can add/edit company's name and details into it. However, without the use of candidate keys, how do you control the columns such that no two values are the same, although there is a primary key which i named it as company_id.
    Regards,
    HTMLDB user

    I suggest to launch an SQL query in a validation process. The where clause would look like this PRIMARY KEY COLUMN LIKE :ITEM%
    If the query retrieve at least one row then your validation process return an error and stop the saving process
    If you want you can also do it asynchronous with a javascript on blur event

  • Not all the master data values appear in variable dropdown

    Hi all,
    we have a BPS variable in planning folder (SEM 4.0) where we have defined a variable with 'restriction required by user'. When the uses take a drop down they don't see all the values in the dropdwon but they can still manually input the missing values.
    Any idea?
    BR,
    SSC

    Hi,
    Make sure that the navigational attribute is assigned in the cube. Same goes for the workcenter. Also make sure when you loaded master data for workcenter the data for the navigational attribute also got loaded and you activated the same.
    Cheers,
    Kedar

  • Iphone 4 Calendar date not showing the write date

    I just upgraded to the ios 5.1.1 from 4.2.1. I have a Iphone 4. After the upgrade, my iphone's Calendar date is not showing the right date. in order for the right date to show, I either have to re-start my iphone or I have to go into settings/general/date&time and turn off the set automatically off than on in order for it to show the right date. I didn't have this problem before the upgrade. I hope someone can help?

    I had a similar problem and then found that my calendar was not set for the right date and year.  Check that first.

  • Adobe Reader XI did not save the form data (unlike previous versions). Any way to recover file?

    Adobe Reader XI did not save the form data (unlike previous versions). Any way to recover filled form with data from temp locations?
    I was not aware that ctrl+s no longer works in reader and closed the PDF after savign it(with ctrl+s). However ,the data is lost and there seems to be no way to recover it.
    I cannot find any temp files created by Reader on my system.
    Also to my surprize(and shock), the reader did not even show a warning before closing the PDF. Does anybody know if/where can I recover the file from?
    Guys, Please reply ASAP if you have got any sort of solution!

    Hi Pat,
    Are you using Adobe Reader XI? And not Acrobat. It does not ask me to save the form if there are unsaved changes.
    I have used previous versions of reader for saving this form data and it did allow me to save it with ctrl+s. And those versions did prompt me to save the changes before closing.
    I guess I should not have updated the reader.

  • PCI6534 not reading the data correctly

    Hi,
    I am using PCI6534 to read the digital data from out of ADC. I am using port 2 as the input port and PFI3 as the external trigger ( given to the clock of the ADC). I am not able read the data properly ( missing the first few bits of data).

    Hi,
    I am using PCI6534 to read the digital data from out of ADC. I am using port 2 as the input port and PFI3 as the external trigger ( given to the clock of the ADC). I am not able read the data properly ( missing the first few bits of data).

  • My up to date iMac can not read the lightroom 5 installation dvd I received for christmas, the dvd player works fine with other dvd's, is there a way to download the program with the dvd's serial number?

    my up to date iMac can not read the lightroom 5 installation dvd I received for christmas, the dvd player works fine with other dvd's, is there a way to download the program with the dvd's serial number?

    No need to worry about the disk version. You would just have to install an update anyway as soon as it was installed. Download from the link provided below and use the serial number you have to activate.
    Product updates

  • IMAQ Quantify rseults with use of image mask are not of the right regeons

    I'm using the IMAQ quantify VI from labview to analize a binairy image. This binairy image is an 8bit image that consists only of pixels with the value 0 or 1. The places of the binairy  image where the pixels have the value 0, mean that a corresponding image has not data in that place. A pixel value of 1 means that there is data that should be processed later in the program in the corresponding image.
    The quantify function is also used to devide the image in 666 regeons with the use of the image mask input. These regeons are squares of 22x22 pixels. The image mask consists of 666 regeons (horizontally 74 sqaures, vertically 9 sqaures) and each of the regeons has his own regeonal number. The resulting regeonal report is used to decide whether each regeon has data in it or not, with the use of the mean value in the report. When the mean value is equal to 0 than it is sure that there is no data in that regeon since all the pixels in the regeon have to have the value of 0. If the mean is not 0 at least one of the pixels in that regeon has the value of 1, wich means that there is data in the regeon. The image mask is created from an 2D array wich is converted to an 16 bit image with the use of IMAQ ArrayToImage.
    I've checked that the input data is correct: the binairy image consist of only 1 and 0 values, the image mask is consist of 666 sqaures of 22x22 pixels and each sqaure has pixels in it with the value corresponding to the regeonal number of the sqaure, the binairy image and the image mask have the same size, the image mask is an 16 bit image and both images have the same border size (3).
    Two problems occur:
    1) The regeonal report doesn't consist of 666 elements, but of 665 elements (element 0 to 664)
    2) The data in the regeonal report is not of the right area's. It looks like the data is shifted one to the right in the regeonal report array, the data in element 0 isn't from regeon 0 but from regeon 1, element 1 corresponds to regeon 2, and so on. I'm haven't checked if the data is exactly of the next regeon, but I suspect it because of the regeonal report array being one short. But it is also possible that the regeons aren't placed on the right place in the binary image.
    If someone else occured this problem with the IMAQ Quantify function or has a solution to it, I would really apreaciate a reply.

    Isn't there anybody who encountered the same problem or with an solution?

  • Why is RoboHelp not displaying the required data content of .chm when linked as Help in my App ?

    Gorgeous Hello All,
    Has anyone encountered the below-said show- stopper. Another BIG TIME help required, will help me in tremendous fashion.
    Am using Adobe RoboHelp, Version 10 and IE version being 10.
    In my local machine :
    1.)I have completed my technical writing courtesy Design editor
    2.)Generating chm File : View -> Pods –> Single Source Layouts -> Right Click on Microsoft HTML Help -> Tagged Set as Primary Layout
    3.)Generating Primary Layout : File -> Generate -> Primary Layout (Microsoft HTML Help)…
    4.)Viewing Primary Layout : File -> View -> Primary Layout
    Everything works FANTASTICALLY till here with the required output (as Hide, Back, Refresh, Home, Print, Options, Contents, Index, Search, Glossary and with the data contents)
    Show Stopper, At my Application Server :
    5.)I copy the entire robohelp project folder from my local machine to my application Server path
    6.)My Application has been developed in ASP .NET, Version 4.0.
    7.)Help link has been created in this application wherein here the file name of < >.chm has been linked in the code to be read from the  Server’s RoboHelp project folder\!SSL!\ Microsoft_HTML_Help\
    8.)I login into my above-said application -> click on the Help page -> Displays the required structure /buttons as Hide, Back, Refresh, Home, Print, Options, Contents, Index, Search, Glossary
    a.)Clicking on any of the Books or Topics appearing beneath Contents : The System prompts out with error cautionary message called “ Navigation to the webpage was cancelled. What you can try: Retype the address ”
    *** This is a huge SHOW-STOPPER. I spent plenty of hours on this, but unable to deciper with a solution at all) ***
    ( Note : Am able to directly open and read the required data contents by Clicking on any of the Books or Topics appearing beneath Contents from Server’s RoboHelp project folder\!SSL!\ Microsoft_HTML_Help\ < >.chm )
    Why is the RoboHelp not displaying the required data contents of <>.chm when linked as Help in my Application ?
    Cheese – Vipin Nambiar

    If you looked at the error message and searched the forum, you should find the answer as this is a problem that started in 2005. You should not run CHM files from a server and cannot without editing the users registry. See the page below.
    http://www.grainge.org/pages/authoring/chm_mspatch/896358.htm
    All along your questions have been based on webhelp, why suddenly are we going go CHMs.
    See Snippets on my site for the correct form of help to use in different scenarios.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Error 25109 : The install program could not create the config data store. Is this a know issue with a solution?

    Hi I cant install the Management Console.
    I keep getting
    Error 25109 : The installation program could not create the configuration data store. Please see the installation log for more info.
    Has someone come across this problem before?
    I am using
    MS Server 2008 Std x86
    SQL Server 2005 SP2 Std x86
    MDOP 2008 R2
    APP-V 4.5
    Please can someone help.
    Thanks

    I'm running into the same problem myself, I have an almost identical setup.
    Trying to do a clean install of App-V Management Server 4.5 from the MDOP 2008 R2 CD.
    Server OS: Windows Server 2008 Enterprise SP1 (Has WDS and IIS installed (IIS 6 Management Compatibility too), as well as .Net 3.5 SP1 Framework)
    Database: Microsoft SQL Server 2005 Enterprise (Version 9.00.3068.00) (Note: SQL server is running on a different server than the server App-V is being installed on.)
    Installer gets to the point where it starts creating the database than dies, reporting a 25109 error.
    Checked out the logfile the installer created, here's a snip of the last few lines before is starts rolling back the install:
    1
    [2008-12-23 15:58:35] (2284:3084) SQL state: ``01000'', Native: 0, Text: ``[Microsoft][ODBC SQL Server Driver][SQL Server]<<< CREATED TRIGGER dbo.TR_U_SYSTEM_OPTIONS >>>''. 
    2
    [2008-12-23 15:58:36] (2284:3084) SQL state: ``42000'', Native: 18058, Text: ``[Microsoft][ODBC SQL Server Driver][SQL Server]Failed to load format string for error 16873, language id 1033.  Operating system error: 122(The data area passed to a system call is too small.). Check that sqlevn70.rll is installed in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\Resources\1033, where 1033 is the language ID of US English, or the appropriate folder for the locale in use. Also check memory usage.''. 
    3
    [2008-12-23 15:58:36] (2284:3084) SQL state: ``01000'', Native: 3621, Text: ``[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated.''. 
    4
    [2008-12-23 15:58:36] (2284:3084) ::SQLExecDirectW error 0xffffffff. 
    5
    [2008-12-23 15:58:36] (2284:3084) Failed to execute SQL ``/* ------------------------------------------------------------------------- *\ 
    6
        Copyright (c) Microsoft Corporation.  All rights reserved. 
    7
    8
        Description: 
    9
            This script creates all user-defined messages. 
    10
    11
            The types of messages allowed (and their severities) are: 
    12
            FATAL   - SQL Server Severity = 17; ours = 1 
    13
            ERROR   - SQL Server Severity = 16; ours = 2 
    14
            WARNING - SQL Server Severity = N/A; ours = 3 
    Can anyone help me shed some light on what's going on here?

Maybe you are looking for

  • After upgrade, options in xorg.conf seem to be ignored

    I have a dual-monitor configuration. Although similar, both screens are not identical, so I wanted the slightly larger screen to be the primary screen, and on the left side. After the installation of Arch Linux, the default configuration was the oppo

  • Without cd rom or hard disk could be install sql 8i or 9i

    Hi Guys, Please let me know that without cd rom or hard disk could be install sql 8i or 9i, we have no available any accessories only through the folder of sql 8i can be installed.

  • Mass Upload Infotype - 8

    Dear All I am using 4.6c and want to upload different wage types in infotype - 8 approximately  for 2000 employees. Some employees has already 2 records of wage types in infotype-8 and some have 3 or 4. So i cant tell the recording program that exact

  • Photoshop interface is too small on high-res screen (Windows 8.1)

    I have downloaded the Photoshop CC trial.  My screen is a 13.3" 3200x1800 screen (0.092mm dot pitch), so the default size of the interface in Photoshop is very difficult to read. I have tried changing the interface size and exiting, then restarting P

  • How Do I restart a disabled Ipod 4 touch?

    How do I restart a disabled Ipod?