Attach X and Multiple Y Data Function
- Updated2022-07-11
- 1 minute(s) read
Attach X and Multiple Y Data Function
attach_x_and_multiple_y_data attaches a single X-axis and multiple corresponding Y-axes as channels within a TDMS file to the measurement.
Note The Logging Library does not support
the following special characters in TDMS file root names: [,
], and ,
xyydata = capture_xyydata()
root_attr = {
"EquipmentName": "PXIe-5122",
"EquipmentType": "Digitizer"
}
meas.attach_x_and_multiple_y_data(
root_name="Gain Phase Bandwidth",
x_and_multiple_y_data=[xyydata],
root_attributes=root_attr
)
| Parameter | Required? | Data Type | Description |
|---|---|---|---|
| root_name | Yes | String | Root name of the TDMS file. |
| x_and_multiple_y_data | Yes | Custom | A list of XAndMultipleYData objects with the X-axis channel and multiple Y-axis channels to be recorded. (List[XAndMultipleYData]) |
| root_attributes | No | Dictionary [String, String] | A dictionary of attributes to apply as file-level properties of the TDMS file. |