Hi guys,
I'm just wondering if there is a module for importing and reading IMC measurement data?
I am currently converting the files to MatLab files with Famos (read program for IMC data) and then using scipy.io.loadmat to import them into Python workspace. It would have huge advantages if I could read the data directly...
So my idea was to read the binary myself, but I soon realized that it was obviously not that easy.
A pretty small file looks like this:
It starts with normal characters but the actual data are (I think) binary doubles and there comes my problem. How can I read the data information until a specific point and then encode these binary data? I've tried a lot of things to convert the binary data to a human readable form without success.
I would really appreciate every help!
I'm just wondering if there is a module for importing and reading IMC measurement data?
I am currently converting the files to MatLab files with Famos (read program for IMC data) and then using scipy.io.loadmat to import them into Python workspace. It would have huge advantages if I could read the data directly...
So my idea was to read the binary myself, but I soon realized that it was obviously not that easy.
A pretty small file looks like this:
Quote:|CF,2,1,1;|CK,1,3,1,1;
|Nv,1,13,7,1,14,32,0,0;
|NO,1,7,1,0,,0,;
|NL,1,10,1252,0x409;
|CG,1,5,2,3,2;
|CD,1,13,1,1,1,s,0,0,0;
|NT,1,27,26, 8,2018,23,38,16.6099999;
|CC,1,3,1,1;
|CP,1,16,1,8,8,64,0,0,1,0;
|Cb,1,28,1,0,1,1,0,4808,0,4808,1,0,0,;
|CR,1,11,0,0,0,1,1,A;
|CN,1,29,0,0,0,17,AI_CuRotorCurrent,0,;
|CC,1,3,2,1;
|CP,1,16,2,8,8,64,0,0,1,0;
|Cb,1,31,1,0,2,1,4808,4808,0,4808,1,0,0,;
|CR,1,11,0,0,0,1,1,s;
|CS,1,9618,1,Íý…@ àtÄ…@ À’3†@
Û6†@ àY†@ À˜†@ •˜†@ ò†@ ÷‡@ ~‡@ €ª‡@ ã‡@/ˆ@
TXˆ@ —&ˆ@ º&ˆ@ ÀjYˆ@ à/*ˆ@ˆ@ cˆ@ 'ˆ@
oˆ@Wù‡@ Àä.ˆ@
v±‡@ @¶‡@ ଦ‡@ àðH‡@ €Õì†@ €å¦†@ ๆ@ @[y†@ @k~†@x’†@
u†@ H…†@ À#І@ “܆@ €B£†@‡¥†@ pþ†@
›Ë†@ ¢¼†@ @U‡@ ‡@ Õ3‡@ @¯H‡@ À虇@ àîw‡@ !º‡@ ‡@ `‡@ €9T‡@ 3‡@ àÜu‡@ (:‡@ ‘*‡@ ±Y‡@ à‡@ ÀíI‡@ 3-‡@ @ñ‡@ {‡@ àzð†@ @Kí†@
‡@ 7‡@ @‡@ à–‡...
It starts with normal characters but the actual data are (I think) binary doubles and there comes my problem. How can I read the data information until a specific point and then encode these binary data? I've tried a lot of things to convert the binary data to a human readable form without success.
I would really appreciate every help!