Closed Terrabits closed 7 years ago
Version 0.5.6dev1 should fix this issue:
VnaChannel::sweep_time_ms
now returns the appropriate sweep time for a segmented sweep.VnaChannnel::total_sweep_time_ms
was added to return the total sweep time (VnaChannel::sweep_time_ms * VnaChannel::sweep_count
)Vna::sweep_time_ms
now sums the total sweep time of each channel to give the overall sweep time.I will run some additional testing and wait for others to provide feedback on this fix before I close it.
In the current version of rohdeschwarz (0.5.5dev1), the sweep time is misreported for segmented sweeps.
This effects the
VnaChannel::sweep_time_ms
method, and by extension theVna::sweep_time_ms
command (which relies on the channel command).The SCPI command currently used to query the sweep time for all channel types (linear, log, segmented etc) is:
SENS<Ch>:SWE:TIME?
Unfortunately there is a separate command for querying segmented sweep time. Also, unfortunately, the command above is not "smart" enough to report the correct time for segmented sweeps (even though it is used for all other sweep types).
The correct command for segmented sweeps is:
SENS<Ch>:SEGM:SWE:TIME:SUM?
In addition to this oversight, it also occurred to me that the VnaChannel::sweep_time_ms command does not take into account the sweep count (the number of sweeps that occur after a trigger, usually used to populate the averaging buffer with new measurements).
The fix is to update the
sweep_time_ms
method for the appropriate segmented sweep command as well as take into account sweep count.