le 11-27-2020 04:26 AM
Bonjour,
Peut être qu'un de vous l'a déjà fait .
J'ai écrit un tableau de waveform dans un fichier journal à l'aide de [ write waveforms to file .vi] , j'aimerais pouvoir le lire (fichier .dat) directement avec python (par exemple) , savez vous comment est codé le fichier pour pouvoir le lire ?
Merci de votre aide.
Christophe.
Résolu ! Accéder à la solution.
11-27-2020 06:49 AM - modifié 11-27-2020 06:49 AM
Hi Christophe,
@maybebis wrote:
Maybe one of you already did.
I wrote a waveform array to a log file using [write waveforms to file .vi], I would like to be able to read it (.dat file) directly with python (for example), do you know how is encoded the file to be able to read it?
Simple answer: when you want to define a know file format then you need to define it - and not rely on someone else to do it in a way suitable to you…
You can look into the WriteWaveformToFile function to see how NI does the saving: Basically it is a Datalog file (also available in the Advanced File functions palette), which is know to (probably) change the internal formats with each LabVIEW version.
I recommend to use other (well-defined) file formats, like TDMS. There should be Python libraries available to read TDMS data…
(Btw. you should ask your questions in English in this forum - or use the regional French board…)
le 12-01-2020 04:01 AM
Hi GerdW,
This is the french LV board. 😀
En te souhaitant une agréable journée. 😂
le 12-01-2020 06:03 AM
Thanks you , all.