Data export from command line or python API

Hi,

I’m using the otii3 + automation license to measure power in an automated test setup. Is it possible to extract data in CSV or other format from command line or python API?

Pontus

Hi Pontus and welcome to the forum,

We do not have any specific APIs for exporting to CSV but let me help you generate it yourself by using the APIs for reading the data from the channels.

Something like:

Get the data from each channel wanted by:
mc_samples = your_recording.get_channel_data_count(device_id, "mc")
mc_data = your_recording.get_channel_data(device_id, "mc", 0, mc_samples)
You can find the channels here
https://www.qoitech.com/help/tcpserver/arc.html#arc-enable-channel

Check the time starting time for the first samply by
mc_data["timestamp"]
Check the time in-between each sample with
mc_data["interval"]
Iterate through all items in
mc_data["values"]
and get the measurement

Generate a csv file with the data above.

I hope this helps!

Best regards,
Björn

Many thanks for that Björn. Works perfectly!