Attach XY Data Function
- Updated2022-07-11
- 1 minute(s) read
Attach XY Data Function
attach_xy_data attaches X-axis and Y-axis data, such as a logarithmic frequency sweep, as a TDMS file to the measurement.
Note The Logging Library does not support
the following special characters in TDMS root file names: [,
], and ,
xydata = capture_xydata_1()
root_attr = {
"EquipmentName": "PXIe-5122",
"EquipmentType": "Digitizer"
}
meas.attach_xy_data(
root_name="Gain Bandwidth",
xy_data=[xydata],
root_attributes=root_attr
)
| Parameter | Required? | Data Type | Description |
|---|---|---|---|
| root_name | Yes | String | Root name of the TDMS file. |
| xy_data | Yes | List | A list of XYData objects with the X-axis channel and Y-axis channel to be recorded. |
| root_attributes | No | Dictionary [String, String] | A dictionary of attributes to apply as file-level properties of the TDMS file. |