Close file causes Labview to freeze

Hello

I have a Labview program that contains a while loop in which a file is created whenever the loop runs. The file is created at the beginning of the loop and closed at the end of the loop, after that some data is written on this subject. The created file are .raw pictures, and they are about 2.8 MB each.

The program works well at the beginning and creates the first file with no problems and then continues to create the second file, and written in. All goes well until he tries to close the second file with the function to close the file. Then, it freezes completely. There is no error, nothing. Only, he stops and stay there for as long as I don't force-stop program myself.

I searched the Internet and found that the creation and closing of a file to each loop is perhaps too for LabVIEW and it causes crash, but I don't really know how to change this, since I have to create a new file each time.

I can't really join the .vi file to this message because there are about 15 subvis he needs to run, but I've attached a screenshot of the section who ask if she can be of any help.

There may be another way of coding of the labView program so it bypasses this problem?

Thank you

I have no problem with the aspects of your VI file.

What I see that could be the problem, is that you have a structure of the event buried in the VI.  Your inner for loop will pause on each iteration of the loop, unless raise you an event that is handled by this structure to occur.  The only event shown in your picture (there may be other events, but we cannot see them) is the Rotation going Boolean contol must be changed so that the event to fire and the loop For finish and start the next iteration.

You hit the Boolean value of Rotation are going to each iteration?  Of course, if you click on this button and make go in real life, the way that she is wired to stop both your interior and your curls For most of the code will never be repeated.

(Tip: you can simplify the code where you build your file name using a Format string in function.)  All string constants are built in the format string.  And all the functions to format numbers get to the format string format, as well.  6 knots and 16 constants will be reduce to node 1 and 1 constant with a corresponding reduction in the number of sons.)

Tags: NI Software

Similar Questions

  • Open the csv file in labview

    Hello

    its difficult for me to open the .csv file in labview. If someone you suggest program labview or suspicion for bellows file attached?

    its really a challenge to open it in Labview.

    So free then try to solve this problem.

    Thank you

    Use the worksheet in reading file.  You can then use the table to Index to get the first colum and search for an empty string.  This will give you the break between the header data and the actual data.  Take all the data after this line and convert it to a number (String number floating/Exp).

  • Error 7 when opening the file auto-LabVIEW 2010

    I use Open/create/replace file in LabVIEW 2010 to open a text file.  It works fine until I have compile the code.  Then, I get error 7. I tried the paths that are similar to the following, but no doesn't work.

    c:\\file.txt

    c:\\file.txt

    c:\------\file.txt

    Thank you

    You must get the path to the .exe file.  Then remove the name of .vi and the .exe.  Then build the path from there to get your .txt file.  The way you have it, you treat the .exe to a folder rather than a file.  The text is no file not part of the .exe, you cannot create a path that includes the name of the .exe.

    Why my executable does not work when you use the constant path of the current VI?

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • How can I display the time of the data stored in a file using labview?

    How can I display the time of the data stored in a file using labview?

    Hi Matt,

    I think that we will need a little more information as to how you capture the data, what data you capture, etc.

    If you capture a waveform, is to extract the time data waveform which includes the t0 and dt values, so you can understand the time stamp of a specific data point as in the image below.

  • can I create a DLL file for labview that has DLL library with inside?

    Hello everyone,

    I am developing an application for the cards PCI devicenet in labview (beginner to labview) environment.  Is there a DLL file for the PCI card from the provider. But it's too complicated for a beginner to call each function in the DLL of labview. Therefore, I'm trying to re - use a VC ++ program (working properly) that calls some sellers DLL library functions.    To do this, I created the DLL file which includes all headers and libraries the provider DLL, as indicated in the attached figure. But I couln can't see the effect on the device. is it possible to create a DLL file for labview that has DLL library with inside? If this is not the case, how can I implement the program shown in figure?

    I would like to wish a huge as to advance.

    It is not something I have a lot of experience in so I don't know all the details of the restrictions or requirements etc - but it is certainly possible to create wrappers for the dll and then use them in LabVIEW - this is sometimes necessary to convert some native types/data structures in C/C++ into something that you can switch to your other DLL LabVIEW.

    There is a link here: http://digital.ni.com/public.nsf/allkb/06ECDC689DDA0F3D862574440074CD95

  • Download file with LabVIEW webservices

    Hello community,

    I have running on a PC webservice and I would that my users to be able to log on the site (made), select the menu upload (done), select the file they want download (done), then using a POST method, I need a routine that acutally downloads the file to the server (not done) all of their browser. I found several links demonstrating how the customer can download a file from labview, but my clients do not have labview. Everything must be done through their browser.

    I enclose my solution how the server can send a file to the user. This part works, but I need a file transfer in the opposite direction as well.

    Thank you!

    Use "read downloaded files info" in the range of Web Services. It will allow you to access the files that you download an HTML form in your web service. It will give you a temporary file path that you can then open or copy.

  • Need to treat a .dat file using LabVIEW

    Hello

    I need to process a file using LabVIEW 8.6.1, dat I enclose the .dat for your help file. This file must be read and then view a chart using LabVIEW.

    If you can please help me with the format data in I need to change the code to be able to read this file.

    Thank you.


  • Conversion of files from LabView 2012 to 2011

    Hello

    I'm new to Lab View. I'm stuck with the conversion of this file of LabView 2012 to 2011. Help is highly appreciated

    Thank you

    With respect,

    Jagadish

    double post

  • Display 1-bit depth BMP file in LabVIEW

    I'm reading a depth of 1-bit BMP file in LabVIEW, but using 2D image control, it keeps out of the black.  It opens fine in painting/PhotoImpact applications and I can see the image as an array of Boolean (1 - bit pixmap) by using the code below - so, how can I display the BMP using LabVIEW?  NOTE: The attached ZIP file contains the offending image BMP - is not allowed to attach files BMP directly - odd thtat?

    Your colors are not RGB, but 32-bit. White is defined as xFF000000 instead of x 000000 and black is defined as 0xFFFFFFFF instead of 0xFFFFFF.

    If you rewrite properly to the palette of colors, the image looks OK, see change enclosed (LabVIEW 2010). I don't know enough about the situation to decide if this is a bug or not.

  • How to get the string (specified by row and column) of txt file with labview

    Hello world

    How to get the string (specified by row and column) of txt file with labview

    THX

    As far as I know, a text file has no column.  Be more specific.  Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character?  You can read from the spreadsheet String function and set the delimiter to a space.  This will produce a 2D channels table.  Then use the table to index and give the line number and column number.

  • LabVIEW: The file is not a resource file. The file is not a valid file for LabVIEW

    Hello.

    I used labview to make an assignment of the University. As part of the im supposed to transfer the .vi file to my teacher, but all .vi files sent using the e-mail system are corrupt. When I try to open mine it gives this error

    LabVIEW: The file is not a resource file. The file is not a valid file for LabVIEW

    Unfortunately, I also lost my backup as I was working on a lab computer and didn't upload my files on the storage server.

    So I was wondering if someone can help out me. Thank you very much.

    The problem is that the email system dealt with the file as a text file. All thesequences have been replaced as . You can see this opening of VI in a hexeditor. Each VI begins with "RSRC".". Your VI begins with "RSRC.

    I replaced the two occurrences of "RSRC"with "RSRC"."and he opened in LV 8.6. Missing just a few controls and subVIs.

    I did this on Windows.

  • Please convert my file to labview 8.5 labview 8.2

    Hi, can someone please convert my file to labview 8.5 labview 8.2 & it get back to me. I'll be very obliged.
    Thanx

    You can go there.

    If you use it, it takes a lot of work that local variables are abused.  There are while loops that run only once without reason. And serial ports being reconfiguration on each iteration of the loop.

  • Do a right mouse click on the name of the file causes Windows Explorer stop.

    Do a right mouse click on the name of the file causes Windows Explorer stop.

    The problem is sometimes caused by a third-party extension. ShellExView can be useful to see what shell extensions have been introduced in the Explorer. Lire read on this topic, then scroll down to download the x 86 (32-bit) or x 64 (64 - bit) version here near http://www.nirsoft.net/utils/shexview.html

    When you run it, click the column of company for sequence entries in alphabetical order. Suppose Microsoft entries are in good faith and focus on others. Is something listed that is useless or unknown? If so, select it and click the Red (on top left) task to turn it off. You can find it easier to disable them all and then reactivate (green area) one at a time and try to explore until the culprit is found.

  • Debug Assertion Failed - make a right click on a file causes Windows Explorer to stop working

    Make a right click on a file causes Windows Explorer to stop working and then turning it back on.

    Message I get is:

    The Degbug Assertion failed

    C:\Windows\explorer. EXE

    File: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\memcyp_s.c

    Line: 62

    Expression: sizeInWords > = count

    I hope someone can help. Thanks in advance.

    Looks like a ShellExtension incompatible.

    Run ShellExView [1] and disable all NON-Microsoft extensions. If the error are gone select 3rd party addons 1 followed by the other to detect the addon that causes the problem.

    André

    [1] http://www.nirsoft.net/utils/shexview.html

    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

Maybe you are looking for

  • export the movie with images h.264 in quicktime does not work

    Hello - I was unsuccessful (hours) seeking to export a 6 min change to quicktime movie.  Have you tried exporting to quicktime, tried using compressor, tried the tips on changing the settings of compressor (from this site) and it doesn't work.  If th

  • Disk full alert identify you... Unable to connect

    Repeatedly unable to connect. On the login Panel, I see an exclamation mark! and the complete disc. What is this full disc? I can see the profile, account Details, change password. Click for support and see message security, you can't have code conta

  • Card nvidia, Linux Mint and W520?

    I'm on a W520 possessing a videocard of nvidia Quadro 1000 m, running Linux Mint 17 xfce (64-bit) Recentley, I came across a situation that required OpenGL 3.3. Best I can tell, my card intel integrated can support above 3.1! So I went to try to get

  • Blue screen STOP: 0x000000f4 (0 x 00000003 0x85595d90 0x8559cedc 0 x 81288330)

    Hello. I am currently unable to run properly in windows vista. STOP: 0X000000F4 (0 X 00000003 0X85595D90 0X8559CEDC 0 X 81288330) I was playing a game on my laptop (AION), and the whole system froze all of a sudden, basically forcing me to Turn off h

  • HP printers driver problem

    Hi team I bought a hp printers last month, but does not work properly. There show adequately the message driver is not installed. Can you help me. HP printers are supported