Log Multiple Measurements Function
- 更新时间2022-10-20
- 阅读时长1分钟
Log Multiple Measurements Function
log_multiple_measurements accepts a list of MeasurementDetails objects as an input and logs all of the measurement details to the data log. log_multiple_measurements does not support attachments. Use the AttachableMeasurement and AttachableMeasurements functions to attach files, XY data, or waveforms to a data log.
log_multiple_measurements commits measurements immediately. Do not call the write_measurements() function when using log_multiple_measurements.
Note Call log_multiple_measurements() at the end of the current
measurement after all measurement data has been provided to the
MeasurementDetails objects in the list.
Vout = perform_measurement()
Vin = perform_measurement()
Vout_details = MeasurementDetails(
name="Vout",
spec_id="Vout1",
value=Vout,
unit="V"
)
Vin_details = MeasurementDetails(
name="Vin",
spec_id="Vin1",
value=Vin,
unit="V"
)
run.log_multiple_measurements(measurements_list=[Vout_details, Vin_details])