01-20-2014 03:17 AM
Bonjour, je souhaite convertir des fichiers d'acquisition au format ini (section +clé) assez volumineux. Le problème est le bloquage de Labview à l'ouverture du fichier qui n'aboutie pas(Test ok en allégeant le fichier) . Existe t-il une librairie OpenG ? Si oui où là télécherger ?
Merci
Ludo
01-21-2014 06:03 AM
Bonjour Ludo,
Si je comprends bien, l'acquisition se déroule bien (dans quel format ?) mais c'est une fois le fichier obtenu converti en .ini (de quelle manière ?) que LabVIEW refuse de l'ouvrir (version de LV ? code d'erreur ? à partir de quel volume de données?).
Merci de votre retour,
01-21-2014 07:28 AM
Bonjour, l'acquisition est faite au format de stockage type ini, il y 4 sections dont la dernière comprend les mesures (10 colonnes sur 72000 lignes).J'ai relancer l'ouverture du ficher sous labview et au bout de 13 min il a réussi à l'ouvrir. Celà est vraiment long par rapport a Wordpad où l'ouverture est quasi instantané. Je souhaiterai savoir si une bibliothèque plus efficace en openG existait ?
Ludo
01-21-2014 07:34 AM
En effet 13 minutes pour 72 000 lignes me semble beaucoup.
Serait-ce possible de pouvoir jeter un oeil au code et au fichier ? (et la version de LabVIEW utilisée ?)
Merci,
01-21-2014 09:02 AM
How are you opening the file in LabVIEW? If you use the config file functions, then yes, it will take a long time to parse. If you open as a text file (which is what wordpad does - no parsing) then it will open quickly, but you will have to parse the sections and keys yourself.
An INI file is not generally considered a good way to store data, it's used mostly to store configuration information. Consider using TDMS.
01-21-2014 10:30 AM
Hi, i change data storage in hdf5 format but for older data i want to copy them in hdf5 file. So i would like to read more faster ini file. Do you know a library for read ini file faster ?
Ludo
01-21-2014 10:57 AM
If you want to copy your INI files to HDF5, the fastest way to do it is to handle your INI files as a text file and process them yourself at low level. Since an INI file has a very strict hierarchy, this is relatively simple. Try the following:
Good luck.
01-22-2014 02:41 AM
Hi, i read my ini file with labview 8.2. A few second for return sections between 13 mins for labview 2012. So I should expect to find a library and just use it. But I didn'i find that. Somebody can help me ?
Ludo
01-22-2014 07:50 AM
That's odd. I thought that problem had been fixed. Awhile back, the INI file code was refactored so it would handle unicode character strings correctly. During the refactor, a major performance bug slipped in unnoticed, but I though it had been fixed. Could you zip your file and post it so I can write a corrective action report on the issue? This may be something new.
In any case, using the algorithm I listed above will still work well. Do not use the configuration file VIs. Use the basic file I/O primitives.
01-22-2014 11:26 AM
This is the files