Read waveform from file error: end of file

Hi,
I want to to save waveforms from DAQ and then, after the acquisition is stopped, I want to see again that waveforms to analyse my data.
I tried to do a simple VI in which simulated signals can be saved to a file and can be read drom that file too. This is possible by using a Save Button and a Read Button. The problem is that when the Save Button is OFF and the Read Button is ON the error "End of file" occours, even if I know that there are more data that can be read from the file.
I read from
http://forums.ni.com/t5/LabVIEW/End-Of-File-Error/m-p/387817#M193812
that this could be solved by choosing the option "Reload for each call" for the Read block, but it doesn't seem to work.
Does anyone have an idea to solve that?
Thanks
Attachments:
waveform write and read.vi ‏71 KB

First, a suggestion -- since your file name is the same every time, put a single instance of it outside your While loop and bring it into the loop as a "tunnel", using the same wire for all your Case statements.
I don't understand the logic of your construction.  You have a While loop that never stops.  As long as "Write" is true, it writes to a (new originally?) file, presumably appending at the end, closing the file after the write.  If Read is true, it tries to read the i-th Waveform.  What if there are less than i writes?
Why not simplify things.  Remove the While loop, remove the Case Statements and Read/Write buttons, and simply do one Simulate Signal, one Write, and one Read (not wiring anything into the Read's Record selector).  Does that work?  If so, then think about how you might extend this to handle multiple reads and writes.  Is there ever a situation when you envision doing Reads while you are also doing Writes?  Isn't it more likely that, at any instance, you are going to be doing only Writes (for example, while generating data) or only Reads (while analyzing the saved data)?  [I'm not saying that you might want to do both simultaneously, but if you don't have to, don't complicate things for yourself].
Bob Schor

Similar Messages

  • MAXDB backup failed with error: end of file reached -917

    Hi I am performing a complete data backup for a database which is about 230 GB.
    Previously it had run successfully for many days, but since yesterday, I began to receive such error:
    Error: end of file reached(-917)
    The backup stopped itself after running for 1 hour, and from backup history I just saw above error message.
    I also had a look at the logs, and found below, could someone help me look into this issue?
    Appreciate your kind help in advance!
    2008-11-25 22:08:09      0xBE4 ERR 52012 SAVE     error occured, basis_err 5750
    2008-11-25 22:08:09      0xBE4 ERR     3 Backup   Data backup failed
    2008-11-25 22:08:09      0xBE4 ERR     1 Backup    +   Backupmedium #1 (F:\Dbbackup\QAS_data_01) end of file reached
    2008-11-25 22:08:09      0xBE4 ERR     6 KernelCo  +   Backup error occured, Error code 5750 "write_task_crash"
    2008-11-25 04:00:27     0x16A0     52024 SAVE     30462712 pages -> "F:\DBbackup\QAS_DATA"
    2008-11-25 04:00:28     0x1BE4     19626 IO       Async I/O thread stopped, 'F:\DBbackup\QAS_DATA'
    2008-11-25 04:00:28     0x1FC4     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0001'
    2008-11-25 04:00:28     0x1688     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0002'
    2008-11-25 04:00:28     0x15D4     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0003'
    2008-11-25 04:00:28      0xAEC     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0004'
    2008-11-25 04:00:28     0x179C     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0005'
    2008-11-25 04:00:28      0xDD4     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0006'
    2008-11-25 04:00:28     0x1AE8     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0007'
    2008-11-25 04:00:28     0x176C     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0008'
    2008-11-25 04:00:28     0x11B8     19626 IO       Async I/O thread stopped, 'G:\sapdb\QAS\DAT_0009'
    2008-11-25 04:00:28     0x1B4C     19626 IO       Async I/O thread stopped, 'G:\sapdb\QAS\DAT_0010'
    2008-11-25 04:00:28     0x1F60     19626 IO       Async I/O thread stopped, 'G:\sapdb\QAS\DAT_0011'
    2008-11-25 04:00:35      0xB8C     52012 SAVE     ready
    2008-11-25 04:00:35      0xB8C     19651 CONNECT  Connection released, T113
    Thanks,
    vivian

    Hello Shaun,
    Thank you so much for your reply. But I've checked that my F drive still have more than 480GB free space, so the space should not be the problem.
    And I've just run the backup once again, this time it keeps running for 2 hours, and then failed again with the same error.
    Is there other possible reasons of this error?
    Thanks a lot,
    Vivian

  • ORA Error : end-of-file on communication channel

    Hello everyone !
    Every time i excuted a simple select query of type
    select X from Y where (z=1 or z=2 or z=3) i got a oracle error "ORA-03113: end-of-file on communication channel ".
    Can anybody tell me why this error occurs, also sometime i got the result also again some time i end up with this error.
    Is there anything wrong with my pro*c application or i need to do some configuration for the same.
    thanx in advance.

    Hiii ....
    We don't have any firwall between the clients and the server it is directly connected through the gateway.
    onece i received the error : "end-of-file on communication channel ", its not restoring back the connection and all queryies made after that is giving the same error untill i stop and rerun the pro*c application.
    oracle ver: 9.2.0.4 os: linux 8.0

  • How to read data from a zipped MS Access file?

    How to read data from a zipped MS Access file?

    RPJ,
    You do not need to use the Close Zip File.vi when you unzip a folder.  This VI is used when you are creating a zip folder.
    As for examples, I found a couple of ActiveX based MS Access examples.  These programs look to be pretty basic.  For more in depth example I would search Microsoft Developers Network
    http://zone.ni.com/devzone/cda/epd/p/id/2188
    http://zone.ni.com/devzone/cda/epd/p/id/1694
    Regards,
    Jon S.
    National Instruments
    LabVIEW R&D

  • New error, "end of file"

    I'm a bit stumped by this one..
    <background> Been using CPS just fine for 3-4 months
    without any significant issues </background>
    It wasn't used for a few days, and now when I try to boot
    Contribute I get the error "end of file or no input:'Operation
    interrupted or timed out'" None of the server settings have
    changed.
    I am able to login to the web admin and test the LDAP bind,
    and it is working, but seems to be a bit slow. I can do lookups,
    and successfully test authentication. But again, it's slow.
    I'm wondering if it is timing out when using contribute,
    since it is slow. And is the issue the LDAP, or HTTPS, because the
    error says, "when trying to connect to https://mywebsite" Maybe my
    sys admin changed something in the firewall, LDAP, or AD. However I
    need to narrow this down to the service where the error is.
    TIA.
    John

    Just a follow for the thread archives. My suspicions about
    the issue having to do with timeouts was correct, however was out
    of my control. There were some changes with our AD Domain
    Controller (DC), and it was erring out. When using the web
    interface, I was in essence testing through DC1, but when working
    in another building and working with dreamweaver and Contribute I
    was hitting DC2 in the AD domain where my errors were occurring.
    Best of luck in solving your problem.
    John

  • Error END OF FILE.What is this?

    Hi!
    I have put 2 menus(a chapter menu and main menu) a movie that will play before the main menu shows up and the main movie.
    When I am building my DVD during the writing stage, when is almost done I get an error end of file.
    What is this?
    thank you
    Eduardo Tavares

    Please have a look at
    END OF FILE error

  • File error: The specified file is locked - HELP!

    hello,
    everytime i try and save my project i keep getting the error:
    File error: The specified file is locked
    i went to the project and "get info" and saw that the file is locked...i also noticed that every other file in my computer is locked as well.
    i just got my machine back from the repair shop...is there a setting i can use to turn off all locked files??
    thanks,
    steven

    Paste the text that Neil posted,
    *tell application "Finder"*
    *set locked of every item of entire contents of home to false*
    *end tell*
    into the white area under the Record and Run buttons. Then click Compile, then the Run button.

  • File Error: The Specified file is open and in use by this or another app...

    I have imported a string of pictures and dragged them into the FCP timeline. I render them and it renders a certain percentage then it stops and says "File Error: The Specified file is open and in use by this or another application."
    After reading this, I quit out of FCP, restarted my computer, opened FCP, nothing other program, tried to render again and same thing happened. It renders part of it then the error message pops up, then I can render again and it will do another percent then it will pop again and so on.
    Suggestions, or does anyone know why this happened? Thank you very much for your time.
    A

    okay - don't know where you've got your scratch disc set but hopefully it's to another drive other than your boot.
    The same drive where your render files should be located, ie some drive other than your boot drive.
    Can you copy the jpegs over to that drive into a folder.
    Delete them from your tl, delete them from your proj. Save your project. Close fcp.
    If they're on your boot drive - delete them.
    Reopen fcp and Reimport them from the new location.
    Sorry for all the steps - but we have no idea how you have configured fcp or your level of experience. Trying to cover all the bases ...

  • File error: The specified file i locked. when i am trying to render a clip on the time lin e

    WHen i want to render a clip on the timeline it tells me this message"file error: The specified file i locked."drive and file and they are not locked.
    What setting do i check for this
    because up till now the program was rendering all clips on the time lne
    I have checked the the drives and files and they are unlocked.
    please advise
    i have to render the clip from the timeline as n export then bring it back in
    annoying !

    Before I ask you to check permissions on the drive you save your material and output files, try creating a new project, copy everything from the old one in it (highlight-copy-paste in new project) and save as with a new name. Does this work?

  • File error: the specific file is locked

    I got the error 'File error: the specific file is locked', when trying to render a project in FCP 7. The rushes and scratch disk are on an external hard-drive. I then went on to finder and I am unable to put anything new onto this external hard-drive. I am now trying to back up everything off the hard-drive and will go to disk utility and try repair it and I have saved the FCP project elsewhere.
    However there is a lot of footage to back up (probably should have done this already), does anyone know of a quick work-around for this or would could be the cause to save it from happening in the future?
    Cheers,
    Martin

    try moving your scratch disk in fcp system preferences to another drive.   Could just be a problem with fcp being unable to write to the drive.

  • FILE ERROR: The Specified file is open and in use...

    FILE ERROR: The Specified file is open and in use by this or another application.
    I get this error when I import a .MOV created by Live Type. All applications, except FCP, are closed. I can reboot the computer and get the same thing. It happens when I try and "render all". Thanks.

    It's probably either spotlight looking at the files, or some anti-virus program thinking your render is a virus.

  • Cannot render files.  The following message appears: file error; the specified file is locked

    Suddenly I cannot render any project in Final Cut 6, because a message reads: file error: the specified file is locked.  Any clues on what to do?

    The reason we suggest searching is there are too many possible causes and unlikely answers and FCP6 was a long time ago.
    bogiesan

  • File error - the specified file is locked, Final cut pro

    file error - the specified file is locked, Final cut pro

    I usually get this when I try to save a project and it isn't stored on my HD(usually external HD or RAID). Sometimes I can do a save as and save it to the desktop.
    Sometimes everything is cleared up with a restart. It seems like it is a FCP7/OS developmental need which is mute because 7 is no longer supported by Apple.

  • End of File error on .nef files

    I am beginning to see a growing number of my .nef files becoming visually corrupt in the viewer and showing the "end of file" error when opening in PS or any other application.
    The corruption does NOT seem to affect the associated .jpg file (if there is one) but I am also NOT able to generate another "clean" .jpg file with the .nef files that have become corrupt.
    I hope that I haven't confused everyone - but this issue is rather baffeling in that I can't seem to pinpoint a cause.
    My master files are stored as reference files on a server share - all shot with a Nikon D2X.
    Does anyone have an idea of what may be causing this - and better yet - is there a way to reverse the corruption?

    I do have a number of other systems that I can use to test from. THe file server is a general purpose server in my home running 10.4.x with all of the latest patches, etc.
    I am using a SanDisk card reader to ingest directly into Aperture. The corruptness appears to be random.
    I am using a Nikon D2X with a number of CF cards, usually 1 or 2GB in size. I capture recording .nef (RAW) images to the CF card.
    My workstation is a PowerMac, Dual G5, with 2.5GB processors and 2.5GB of memory. I am using MacOS 10.4.2 with all of the appropriate patches and updates.
    The Server is a PowerMac, Dual G5, with 2.5GB processors and 2.5GB of memory. The server is running MacOS 10.4.x Server, again with all of the appropriate patches and software.
    The network is Gigabit speed with one switch between my workstation and the server. The Switch is a GSM7224 L2, 24-port 10/100/1000MBps managed switch.
    The users in my home (in this case; me) log into any of a number of workstations in my home and authenticate against the server using LDAP. Once authenticated, home directories are available and stored on the server.
    This appears to be network related as I can ingest and save locally to the server and open the files without any corruption.

  • Premature end of file Error in the File conversion

    Hi Experts
    Working on File to Proxy scenario and file is picking up by the XI server and in the message mapping I am receiving the following error
    Can anyone let me know what is Premature end of file, Do I need to specify any parameter in the Content Conversion additional than normal parameters
    Thanks
    PR
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_ISO_to_ECC_FROI_SROI_TA_TE_TR_T~</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
      <SAP:P3>Premature end of file.</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_ISO_to_ECC_FROI_SROI_TA_TE_TR_T~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    check out this link. it might help you..
    File Content Conversion Error in PI 7.1 (file to Proxy)

Maybe you are looking for

  • The Attempt to Burn a Disc Failed. Error 4261

    I was burning CD's fine before today. Now all of the sudden I can't burn a CD for the home stereo. I bought over $100's worth of Christmas music from I Tunes and I know no one can hear it. What the (*&$#(*& is going on?

  • Converting Word Files with Backgrounds

    I've created a Word file with a background by going to Format/Theme and choosing Slate. When I convert the file to .pdf, it fails to capture the background. Does anyone know how to accomplish this? It is an integral part of the document and I need it

  • How do you save videos from iPhoto to a USB flash drive?, How do you save videos from iPhoto to a USB flash drive?

    Hello! Could someone please help me? I am trying to save vidoes from iPhoto to a USB flash drive. After I export them, I open my flash drive to play them back and they are all zero seconds long in Quick Time Player. What am I doing wrong?

  • My printer

    Not too long ago I had to call Canon because I had trouble re-connecting my PIXMA 340 Printer back to my wireless network. I had never had a problem with a call rep until this last time. Since then I have not been able to use my printer. I keep getti

  • Hibernate Windows XP and Boot Mac OS X

    I primarily use WinXP on my White Macbook, but at times find it useful to use Mac OS X. However, often times I have lots of windows and data open in Windows, and it is a hassle to close out of everything and reboot to get into Mac OS X. Is there any