Keysight/python-trsfile

Trace set parameter map should be added to a new trs file by default

Closed this issue · 0 comments

With the introduction of trsv2, the new version of the format is the preferred over the old one. This newer version is backwards compatible with the old one, so there is no downside of always creating a trsv2 file.

To that end, each trs file that is created should contain a trace set parameter map. This map can be filled with data that is already present in the header (with the understanding that we might at some point stop writing this data to the header), and some default values for the following parameters:

  • DISPLAY_HINT:X_LABEL
  • DISPLAY_HINT:Y_LABEL
  • DISPLAY_HINT:NUM_TRACES_SHOWN
  • DISPLAY_HINT:TRACES_OVERLAP
  • X_SCALE
  • Y_SCALE
  • X_OFFSET
  • TRACE_OFFSET