is there any way to convert csv to mdf4 with asammdf and transfer the header informations too?
When i create a mdf4 file with a modified version of this code
from asammdf import MDF
import pandas as pd
df = pd.read_csv('input.csv')
mdf = MDF()
mdf.append(df)
mdf.save('output.mf4')
then, there are default header entries. E.g.:
author
department
HDComment
MeasStartTime s Time since 1/1/1970
...
How to delete this entries before creating the mdf file?
How to add own header entries out of the csv?
Example csv:
Customer DummyCustomer
MeasName DummyMeas
MeasCounter 25
Operator DummyOperator
Time DummyChannel1 DummyChannel2
0 0 75
1 2 85
2 14 88
3 21 87
4 33 88
5 45 89
6 21 89
7 83 89
8 32 89
9 22 89
10 70 90
The csv delimiter is tabstop.