sda.io.read_trc#

Little helper class to load data from a .trc binary file.

This is the file format used by LeCroy oscilloscopes. M. Betz 09/2015 + pag1pag 03/2024

Attributes#

Classes#

Functions#

get_data(file_name[, deskew, interpolation])

Open a .trc file and return the data.

Module Contents#

class sda.io.read_trc.ReadTrc#
f: None = None#
x: numpy.ndarray | None = None#
y: numpy.ndarray | None = None#
d: dict[str, Any] | None = None#
open(file_name)#

_decode_fixed_length_string .trc binary files from LeCroy Oscilloscopes.

Decoding is based on LECROY_2_3 template. For more information, see: http://forums.ni.com/attachments/ni/60/4652/2/LeCroyWaveformTemplate_2_3.pdf

Args:

file_name (Path): Path to the .trc file.

Returns:

tuple[np.ndarray, np.ndarray, dict]

Return type:

x, y, and d.

sda.io.read_trc.get_data(file_name, deskew=0, interpolation=False)#

Open a .trc file and return the data.

sda.io.read_trc.data#