Jump to content

File saving


Recommended Posts

Hi,

The problem that I have is that my program is taking in a spectrum from a spectrometer and it can be seen. Each time a new spectrum comes up, it saves this to a new file. The problem is that each time the user has to type in the file name andclick save. What I need to happen is because I am going to need the program to run for approx 24 hours straight, It is not possible for me to be there each time a file needs to be saved, about every 15 min for the 24 hours. Is there some way that this can be done automatically in labview 7.1. Thank you

Link to comment

Hi Colin:

It is easy enough to open a file under program control, without having the dialog pop up for the user to select filename.

Replace the "File Open" dialog in the block diagram with something like the attached snippet.

post-1144-1114782606.png?width=400

The attached vi, used in the above snippet, creates a name string that is unique for each file, encodes the date and time, and sorts the files in chronological order when you display the directory sorted by name. But you can use any scheme you want to generate a unique name string for each file as it is created.

Download File:post-1144-1114782727.vi

Hope this helps a little.

Best Regards, Louis

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.