Datalog File - error 116

Attached is  a program I wrote that reads vibration signals, displays their respective graphs, and then writes that graph to a datalog file.  However, every now and then I get the Error 116 message, and cannot figure out why.  The best way to replicate the problem is to run the program, enter some text in the boxes, and save that file.  Then repeat the process so you have 2 datalog files to read.  Then open the "Data Reader" VI and open data file #1. Close the entire program, and open data file #2.  Repeat this process until the Error 116 appears.  Any suggestions?  Even when the error occurs, the information is still displayed, but I need to get the bug fixed.
Attachments:
FFT Analyzer.vi ‏542 KB
Data Reader.vi ‏64 KB

Jeff, in this post, someone was experiencing the same error message and it was resolved after upgrading to LV 8.0.1.  Could you see if installing that patch and mass compiling resolves anything?
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

Similar Messages

  • Write-read binary file Error 116

    Hi all,
    I am saving double, numeric array data into a binary file and then trying to read it back but keep on getting Error 116 (cannot read from binary file).
    I have attached screenshots of the way I am writing my data into the binary file and then the way I am trying to read it. Basically my data is chunks of 2D double arrays, coming at a rate of 1hz and this is why I have to use the get and set file size functions prior to saving into the file (i.e. so that each time I can append my file with new data).
    I have tried all combinations for the write to binary and read to binary file functions, thus meaning I have tried little, big and native endian options but I keep getting the same error. Also played with the way I append my data, i.e. I have used both the "offset in bytes" and "end of file" options, just in case this made any difference, but again no luck.
    Any help would be much much appreciated.
    Regards,
    Harry
    Solved!
    Go to Solution.
    Attachments:
    Write_Bin.JPG ‏154 KB
    Read_Bin.JPG ‏100 KB

    Just as an amendment to my original post, I can succesfully read my data in MATLAB using the standard fread function with double precision. I presume that this means that there is nothing wrong with the way I write the data into the file. However, it would be useful for me to be able to read it directly from Labview without having to build matlab executables etc etc...
    cheers again

  • Opening my datalog file errors out with error 42 generic error

    I'm using the datalog API to store video images flattened to string (the record type is string).  This works great most of the time, and gives me easy access the whichever frame I currently want.  My files are between 15 and 125 MB.  Occassionally when I try to open a file, the Open/Create/Replace Datalog primitive returns error 42, which is a generic LabVIEW error.  The file appears to be the right size and looks as correct as I can tell in a hex editor.  I'm guessing it's some sort of parsing error, but I don't know the datalog API binary format.  I'd really like to recover these files that are throwing the errors.  Any ideas?
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit

    Greetings FlamingYawn!
    I apologize for the trouble you're having opening some of your saved datalog files.  Unfortunately, as you have already mentioned, Error 42 is a general error and as such, provides us with little information that we can use in troubleshooting the issue.  From all the research I have done, it seems that the two most common causes of this type of problem are from a logic error in the writing section of the code or from the files being corrupted by some other means during the write (i.e., from bad sectors on a hard disk).  Unfortunately, the file type is a proprietary binary format and the structure is not publicly known.  We currently do not have any tools for use in reading these files outside of LabVIEW.  This is not necessarily to prevent the files from being read by other software but simply because it is a file type that was designed specifically for LabVIEW. The best information I can provide you with is related to the file header.  This can be found in the following KnowledgeBase article:
    LabVIEW Data Logger: Binary Header File Format
    http://digital.ni.com/public.nsf/allkb/747B83B6C8E4A6218625669100563B61
    If it is at all possible, please try to see if the same set of data produces the same error each time following the write/read sequence.  If this is in fact the case, I can work with you further to file a Corrective Action Request so that the developers can address the issue. 
    I hope this helps some.
    Best Regards,
    Michael G
    Michael G.
    Applications Engineer
    National Instruments
    Self-realization: I was thinking of the immortal words of Socrates, who said, "... I drank what?"

  • "Error 1 when trying to open and read datalog file from several subVi's

    So, I've been coding up this model based controller and have hit a snag:
    The program starts and opens a datalog file and passes the refnum to two loops.
    At a regular time interval (every 2 minutes), one loop (that's iterating once per second) writes the current information to a datalog file.
    Meanwhile, another loop (that's iterating continuously) checks to see if the file is big enough to support training of the model, if it is, then the training process begins. Once this happens a period of recent information is read from the file. Initially, this read would fail and return 0 data. However, this problem was fixed by passing in the data file path rather then the refnum and having the vi open,
    read, and close the data file. With the path, the vi was able to read all the data. However, still in the same loop, another vi downstream tries to read the file and returns error code 1, and no data is read. I tried passing that vi the path and seeing if it made any difference to open, read and close the file. But even then the read failed (with error code 1).
    I don't understand why it can read in one vi and not the other!
    Does anyone know what is going on here? It seems that semaphores would probably solve the problem, but would prefer a simpler solution. Thank you very much.

    Try passing the data to the continuous loop through a LV2-style global. That way you are only access the file in one place. But then that begs the question, if the data is passed internally, do you really need the file at all?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How Do I Convert LV7.1 Datalog Files to LV8 Format?

    I have several LabVIEW 7.1 datalog files that generate Error 71 (File data type conflict) when I try to open them in LabVIEW 8 using the new Open/Create/Replace Datalog vi with my original typedef constants wired to the record type terminal.  Likewise, my original LV7.1 code recompiled in LV8 often generates error 116 (unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data) or error 4 (end of file encountered) when randomly accessing records in the LV7 datalog files, presumably due to changes made to the datalog file structure in LV8.  I recall one time when a dialog box popped up asking if I would like to convert the file to LV8 format.  Since this was a file currently in use on the server by LV7.1 clients, I had to reply no.  With copies of the datalog files now on my hard drive ready for conversion, I haven't seen the conversion dialog box pop up again.
    How do I convert the LV7.1 datalog files to LV8 format?
    Thanks,
    Larry

    Good afternoon Larry,
    Thanks for posting! 
    The Datalog file support in LabVIEW has changed, but the underlying
    principles of the technology remains the same. 
    Converting to the new format should just involve converting a few VIs to the new Datalog-specific versions.  As you can see, the new Datalog VIs appear in
    their own sub palette in 8 which will help keep things simple.
    Before we address the concerns with the errors, let’s first
    make sure that the code has been properly converted. 
    To convert your VI to the new format:
    1)      Replace
    the Open File VI from LabVIEW 7 with an “Open/Create/Replace Datalog” VI in LabVIEW
    8.  Keep your type constant or control
    wired to the “Datalog Type” input.
    2)      Replace
    any “Write File” VIs in LabVIEW 7 with “Write
    Datalog” and triple check that your data matches the datatype wired into the
    open exactly.
    3)      Replace
    any “Seek” VIs with “Set Datalog Position”.  The input to this VI is the number of records
    to advance (check the mode set by the “from” parameter).
    4)      Replace
    any Reading VIs with the corresponding “Read Datalog” VI.
    I suspect that if you are receiving errors saying that the
    end of file has been encountered it is a result of a bad input to the “set Datalog
    position” VI.  I attached a basic example
    of writing a Datalog file in LabVIEW 8, and reading the results.  The rest of the functions in the new Datalog palette
    should be pretty straightforward. 
    Does this help?  I
    would be more than happy to answer any other questions on this if you need any
    additional clarification, or if this response does not address your question.
    Travis M
    LabVIEW R&D
    National Instruments
    Attachments:
    Datalog8.zip ‏30 KB

  • Error 116 at Unflatten from string.....

    Hi I want to save and load the control values of
    the tab pages I am getting the following error
    "Error 116 occurred at Unflatten From String     
          Unflatten or byte stream read operation
    failed due to corrupt, unexpected, or truncated data."
      the attached is the VI can
    anyone tell me what is wrong ….thank you
    Attachments:
    save n load example.vi ‏70 KB

    All that you need to do is right-click on the Read from Text File and Write to Text File functions and uncheck "Convert EOL".
    Other comments:
    You should not hard-code the path inside the VI. Either place a front panel control to specify the path (perhaps with a default value set), or generate the path so that it is relative to the VI (such as being in the same directory as the VI).
    You are not wiring all your errors through so some errors can be lost.
    You do not need to have the VI open a reference to itself. If you delete the Open VI Reference function the code will still work.

  • Same data wire (source and sink are listed as "datalog file reference of") will not connect

    I am trying to write a short program that will convert a string spreadsheet file into a datalog file with the numbers turned back into numbers.  I have a case structure for each type of spreadsheet (different types per columns and different number of columns).  I use a 'for loop' to process all records (rows).  And I use a 'sequence structure' to individually process each column item into its original format (string or number), then group together into a bundle and then write the results to the datalog file format.
    The first two (case structures) worked but the second pair of case structures would not allow me to connect the datalog file reference number from the 'write to datalog file' to the 'close datalog file' through the 'for loop' wall.
    I am using 8.2
    I am sure it is an stupid issue, but the error message just did not point me towards a solution.
    con-fUsed, DogFace.
    Attachments:
    PROCESS SH TO DLOG.vi ‏84 KB

    The problem is that you are creating a different type of datalog file in cases 2 and 3 than you are in cases 0 and 1.
    The structure of a datalog file is the same as an array of clusters. All of the clusters must be of the same structure. Only the values of the individual cluster elements can vary.
    You are trying to write three different cluster structures to a single datalog file. You just can't this.
    You'll either need to write to three different files, or come up with a structure that everything will fit into.
    One other quick hint. NEVER use a variable to pass data when you can wire the terminal directly to the function.
    Ed
    Message Edited by Ed Dickens on 03-19-2007 11:39 AM
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Error 116 & Warning 10694

    Hello colleagues,
    I know that the "error #116" issue has been discussed a lot lately, but none of the posts helps me cmprehend the source of my problem described below, epecially given that my concept had worked well with previous versions of LV.
    I use "Sync=4472 Trig=6713.vi' to synhcronize 72x AI (9x PXI-4472) with 2xAO (PXI-6713) on a shaking table. This VI successfuly saves sequences of 3D array in a binary file. The parrent demo VI is "write.vi" which performes the DAQ and streaming to disk. No porblem here, except for the warning #10694 which I also do not understand where it originates from. The missing VI is a 2D array constant containing 10 minutes of signal generatuion sampled by 1000 S/s - I just subset the length I need according the acquisition duration.
    The error #116 is reported by the "Read from Binary File.vi" in the demo "read.vi". I do not see what causes this error since the data type definition I wire to the "Read from Binary File.vi" is the same 3D array of doubles!?!
    Can somebody "116" experienced take a look at the this simple and clear demo and possible identify my mistake?
    Thanks in advance
    Attachments:
    Sync=4472 Trig=67132.vi ‏112 KB
    read3.vi ‏45 KB
    write3.vi ‏43 KB

    Hi again and thank you for your time. Uploaded are couple of files, both containing sampled data of 1 second at 1000 S/s. The only difference is the chunking which shoud prove correct data streaming to disk - the "10" file uses chunks of 10 samples per channel to read and stream, the "100" file uses chunks of size 100 samples per channel.
    The files are not of TXT format! I had to put that extension for this forum to accept their upload. So you can safely remove the extension.
    I use transpose matrix for the chunks (72x10 / 72x100) so upon successful data retreival from the files you should get straight 72x1000 samples (1 second acquisition at 1000 S/s)
    Thanks in advance,
    Attachments:
    1.0sec_10.txt ‏282 KB
    1.0sec_100.txt ‏282 KB

  • Corrupt DataLog file?

    Long time someone post something regarding the DataLog files.
    You know, File I/O\ Advanced File Functions\ DataLog
    Is it because it's "old skool" and there is something better now??
    Anyway, allow me to ask this question.
    I have several DataLog files, all of them I can read with the existing EXE file and LV development code except one
    I always get the error code 71 when reading that specific file.
    Since all files are made by one and the same LV EXE file I find that very strange.
    I then read several files using note pad to get an idea about what's inside.
    All files I can read starts with: DTLG €    #  !   $ @0ÿÿÿÿ
    The one I can't read has the same pattern from character 146 onward.
    I have no idea at all where those 145 characters came from ?!!?
    "Ç Started-20140508.dat C:\PROGRA~1\BEKAER~1\TIREIM~1\DataBase\STARTE~1.DAT   6   C:\Users\WU71AD~1.SHE\AppData\Local\Temp\STARTE~1.DAT ‘Å
    The first readable characters are the name of the file, the following path's, no idea!
    After the four ÿ characters I see the correct definitions of the cluster I use in all files, so that is rather good, I suppose.
    Easy solution I tried, delete the 145 erroneous characters but then I get error 42 :  LabVIEW:  Generic error. when reading the new file.
    Anyone an idea how to "uncorrput" this file correctly ?
    All happens in LV 8.6
    Thanks for reading
    Even more thanks for a solution!
    Best regards
    Alain

    Please post in the appropriate MS Office forum found @
    http://social.technet.microsoft.com/Forums/windows/en-US/05b33892-03db-4f09-bfdd-4e01c614f27c/corrupt-pst-file?forum=w7itproappcompat where you will find forums specifically for discussing issues with MS Office products.
    This is a Windows 7 forum for the discussion of Windows 7 operating system issues.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Error 116

    GoodMorning.I have a problem when I try to read data from binary file .An error 116 is appeared.

    I am getting the same error now, even though I am quite sure I have the correct data types. To get the data type for the Binary Read vi, I simplyed used 'Create Constant' from the data I had wired in to Binary Write vi.  The read and write commands are in separate VIs I have made, as one creates temporary files, and the other recalls the data.  I have posted two images of where I Write and Read, any help would be appreciated.
    Aaron
    Attachments:
    writing to binary.PNG ‏30 KB
    reading from binary.PNG ‏19 KB

  • " Can not interpret the data in file " error while uploading the data in DB

    Dear All ,
    After running the below report I am getting the " Can not interpret the data in file " error.
    Need to upload the data in DB through excel or .txt file.
    Kindly advise to resolve the issue.
    REPORT  ZTEST_4.
    data : it like ZPRINT_LOC occurs 0 with header line,
    FILETABLE type table of FILE_TABLE,
    wa_filetable like line of filetable,
    wa_filename type string,
    rc type i.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    CHANGING
    FILE_TABLE = filetable
    RC = rc.
    IF SY-SUBRC = 0.
    read table filetable into wa_filetable index 1.
    move wa_filetable-FILENAME to wa_filename.
    Else.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = wa_filename
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = it.
    IF SY-SUBRC = 0.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    insert ZPRINT_LOC from table it.
    if sy-subrc = 0.
    commit work.
    else.
    rollback work.
    endif.
    Regards
    Machindra Patade
    Edited by: Machindra Patade on Apr 9, 2010 1:34 PM

    Dear dedeepya reddy,
    Not able to upload the excel but have sucess to upload the .csv file to db through the below code. Thanks for your advise.
    REPORT  ZTEST_3.
             internal table declaration
    DATA: itab TYPE STANDARD TABLE OF ZPRINT_LOC,
          wa LIKE LINE OF itab,
          wa1 like line of itab.
                       variable  declaration
    DATA: v_excel_string(2000) TYPE c,
           v_file LIKE v_excel_string VALUE    'C:\Documents and Settings\devadm\Desktop\test.csv',  " name of the file
            delimiter TYPE c VALUE ' '.         " delimiter with default value space
         read the file from the application server
      OPEN DATASET v_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    write:/ 'error opening file'.
      ELSE.
        WHILE ( sy-subrc EQ 0 ).
          READ DATASET v_file INTO wa.
          IF NOT wa IS INITIAL.
            append wa TO itab.
          ENDIF.
          CLEAR wa.
        ENDWHILE.
      ENDIF.
    CLOSE DATASET v_file.
    EXEC SQL.
         TRUNCATE TABLE "ZPRINT_LOC"
    ENDEXEC.
    *------display the data from the internal table
    LOOP AT itab into wa1.
    WRITE:/ wa1-mandt,wa1-zloc_code,wa1-zloc_desc,wa1-zloc,wa1-zstate.
    ENDLOOP.
    insert ZPRINT_LOC from table itab.

  • Logical end of file error

    I am getting a "logical end of file error =39" message when trying to export audio to SDII for making a time stamped (BWF) . Any ideas?

    How long is the wedding video?
    My standard list of things to do first...
    Run MacJanitor (free download) to do all the Unix Cron Maintenance scripts.
    Run Disk Utility (Applications -> Utilities) and repair disk permissions on your start up drive (typically your internal drive). Also verify any other drives mounted on the system.
    Run Preferential Treatment (free download) to check for corrupt/damaged application and system preference files.
    Run Cache Out X (free download) to clear all system and application caches.
    Reboot your Mac.
    If you still can not get it to run correctly, next thing to try is to throw out the iDVD preference file (don't forget to change back those preferences you want different from the defaults next time you run it). If it still doesn't work, then I would suggest you reinstall iDVD.
    Patrick

  • Crystal Server 2013: How to troubleshoot "Can not create temp file---- Error code:-2147215357"

    We have a Java7 web app, which generate PDF report by calling Crystal Server 2013 SP4.
    The app is being deployed on many different servers. We sometimes got the error below when generating report:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.controllerExportInternal(PrintOutputController.java:280)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:152)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:130)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:113)
    Problem is, this seems to be  a pretty generic exception. It could be caused by many different reasons.
    e.g. network connection problem, wrong DB login, wrong folder path, lack of folder access right, etc.
    Each time we could only guess what's wrong.
    We are running into it again, and this time everything seems correctly configured so far.
    We wonder if there are more info we can get to troubleshoot? For example, any log file of Crystal Server we should look into? Or does Crystal Server has debug mode which prints more details to tell us what goes wrong?

    Prithviraj Shekhawat wrote:
    Hi Henry,
    I believe you are using RAS SDKs to export the reports to PDF.
    Apply trace on RAS server and check what you find in RAS logs.
    Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.
    Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.
    Thanks,
    Prithvi
    >>I believe you are using RAS SDKs to export the reports to PDF.
    Yes
    >>Apply trace on RAS server and check what you find in RAS logs.
    >>Check whether you can see timeout error is RAS logs.
    How to configure tracing, and where are RAS logs? Is it configured in CMC --> Servers --> Crystal Report Services?
    >>Also, does the account that runs RAS have permissions to create
    >>a file in RAS's default temp directory?
    Pretty sure yes.
    >> Are you getting any out of memory or out of disk space exceptions
    >>on App server or RAS, tracing RAS server is the way to move forward.
    Not on App server.
    For RAS, that's the problem, I am not sure where to look.......

  • Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal

    Hello,
    While exporting Export reporting from BI4 getting exception
    Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
    In Trace Log I am getting
    com.crystaldecisions.xml.serialization.XMLWriter||Failed to create an object instance for CrystalReports.TextObjectFormat
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key CrystalReports.TextObjectFormat
      at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
      at java.util.ResourceBundle.getString(ResourceBundle.java:334)
    I tried following solution according to the all forums but still issue exist.
    Done changes mention in KB article In <Installation-dir-of-BO>\Common\4.0\java\CRConfig.XML we have to increase the JAVA heap MIN and Max size
              <JVMMaxHeap>64000000</JVMMaxHeap>          <JVMMinHeap>32000000</JVMMinHeap>
    Increase the value in the ReportApplicationServer Services in the CMC for "Number of database records to read when previewing or refreshing a report". The value -1 is for unlimited records but not recommended for performance.
    Check for temporary read write permission on server
    Using SDK library from C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\java\lib
    Can you please let me know is there anything missing.

    Hi,
    We face the same problem with some BI4 reports.
    The same report works well with the "Crystal Reports Viewers API", as used in Infoview, but not with the "Report Application Server (RAS) API".
    This error appears after some time working on a report. If we reproduce the same report, but from zero, no problem.
    Hope it can help.
    Ludovic.

  • File Error:Unknown File.

    I am getting a "File Error:Unknown file" when i try and save my project. So i am not able to save any changes i make to my project. any thoughts?

    Try FILE>Save Project As.
    does that work?
    Shane

Maybe you are looking for

  • Desk top pavilion, hp deskjet f4480, windows 7 64-bit, error 1311, file not found

    I have a Pavilian and hp deskjet f4480 that had been working fine up to two mns ago. Now the computer and printer don't seem to comunicate. The test page works fine for the printer. One other message is: There was an internal error, and Internet Expl

  • Oracle CC&B 2.3 Installation - Facing Issues

    Hi, I am trying to Install Oracle CC&B 2.3 on Windows 2003 SP2. The Tomcat Server is closing downer after loading all the looks ups etc., I am attaching the log below. Please advice. 350/1034 XSL preload pages, time: 34086 ms - 2010-05-11 09:11:14,35

  • Two status for one idoc while IDOC_STATUS_WRITE_TO_DATABASE, giving error

    Hi I am using a Z function module to process an incoming idoc (custom process code). While using the test tool WE19, I am trying to process an idoc. When I am using Inbound Function Module tab, the idoc is processing normally. But when I am using Sta

  • APEX Web Services Proxy Settings

    So I have been experimenting with Web Services and I see to have a problem whenever I go through a Proxy Server; I keep getting the error below for the same request that works when I am not using a Proxy Server. ORA-06502: PL/SQL: numeric or value er

  • Adobe Elements Premier will not run - Application Error

    Installed the combined Adobe Elements 12 (Photoshop and Premier) package. Adobe Elements Photoshop runs fine.  The Elements Premier comes up with an Application Error.  I have a custom computer that runs flawless Specs follow: SABERTOOTH X79 Socket 2