How to read .trace File

Dears,

Could any expert tell me, how to open .trace files with Python?

I use “server.scope(scopeX, ‘SaveTraces’, ‘output’+str(i))” and got this output file, but I don’t know how to open it.

Another Question is, do we have any detailed documentation, how we can using python to communicate with other components, what function we can use, because in the documentation https://www.plexim.com/sites/default/files/plecsmanual.pdf is not much informations about it.

Thank you very much.

output3.trace (28 Bytes)

Trace files can be opened in a scope (File / Load trace data), preferrably in the same scope as they were generated in. To read the file in Python I’d recommend to export the data as CSV files. The file structure of the trace files is not public.

The manual contains a complete list of functions that can be used for RPC. There are no additional commands available.

Maybe you can describe what you want to achieve and we can see whether this is something we may want to add in later versions of PLECS (or can be achieved by other means).

Hallo Oliver,

Thanks for the answer.

I can already read it out from Plecs using the output port and save it to Excel files. Basically, I measure all voltages and currents from components and use them for further analysis. I thought I could save it directly to CSV using rpc.Scope, but it didn’t work.

Thank you.
Kamil

Note, this comment was translated from German to English to benefit the rest of the community.