LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Dialog/Storage - avoiding opening the .bin files. Can they be made invisible/unselectable?I

In File I/O Advanced Functions, there is a handy file dialog VI. (LV 8.0)
 
However, I've run into problems. When followed by the Open Storage icon, Then Write Data, and finally Close Data Storage, it creates two files with identicle names one of which is a .bin file.
 
Sometimes in windows the .bin is invisible, and I can select the .bin by mistake when I want to overwrite the orignal file.
 
This has led to files ending in .bin.bin.bin and then data corruption and hours of lost measurements.
 
Is there a way to disallow the selection of .bin with File Dialog?
I've already tried restricting to only new files, but still a dialog comes up offering to overwrite the existing file if it is selected.
 
Thanks
0 Kudos
Message 1 of 3
(2,720 Views)
I can't answer your exact question, but I would recommend turning off the "hide extensions for known file types" in Windows options.
 
I find that a default setup for Windows has the extensions hidden.  .exe, .txt.  Word .doc's. Excel .xls.  It is a bad choice Microsoft made.  I guess it was so they wouldn't scare new Windows users, but anyone using Windows should know exactly what type of file they are dealing with.
 
So everytime I log into a computer for the first time, one of the first things I do is go into the folders options dialog and uncheck this option.
In a folder window.  Tools/Folder Options, View Tab, Advanced Settings  "Hide Extension for known file types"
0 Kudos
Message 2 of 3
(2,714 Views)
You should set the pattern to *.txt (or something) IN that case LV will add .txt (and .bin) to the name you set

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 3
(2,707 Views)