Attach Single Waveform Function

attach_single_waveform attaches a single waveform object as a TDMS file to the measurement.

Note The Logging Library does not support the following special characters in TDMS root file names: [, ], and ,
waveform = capture_waveform()

root_attr = {
    "EquipmentName": "PXIe-5122",
    "EquipmentType": "Digitizer"
    }

meas.attach_single_waveform(
    root_name="LoadRegulation_Vin5",
    waveform=waveform,
    root_attributes=root_attr
)
Table 21. Python Attach Single Waveform Function Parameters
Parameter Required? Data Type Description
root_name Yes String Root name of the TDMS file.
waveform Yes Custom Waveform object to be recorded as a TDMS file and attached to the measurement. (Waveform)
root_attributes No Dictionary [String, String] A dictionary of attributes to apply as file-level properties of the TDMS file.