Log Measurement Function

log_measurement accepts a MeasurementDetails object as an input and logs the measurement details to the data log. log_measurement does not support attachments. Use the AttachableMeasurement and AttachableMeasurements functions to attach files, XY data, or waveforms to a data log.

log_measurement commits measurements to the data log immediately. Do not call the write_measurement() function when using log_measurement.

Tip Call log_measurement() at the end of the current measurement after all measurement data has been provided to the MeasurementDetails object.
value = perform_measurement()

details = MeasurementDetails(
    name="Vout",
    spec_id="Vout1",
    value=value,
    unit="V"
)

run.log_measurement(details)