问题
如何知道扫描何时完成?我想在扫描完成后通过 gpib 读出迹线数据。
如何知道扫描何时完成?我想在扫描完成后通过 gpib 读出迹线数据。
我们建议您使用操作完成位。
下例描述了如何检测扫描时间为 15 秒的扫描是否完成
并读出迹线 1 的数据。
fsp:*rst
fsp:system:display:update on
fsp:init:cont off
fsp:swe:time 15
fsp:*cls
rem the *opc command initiates the operation complete bit
fsp:init;*opc
rem the next line will be repeated until the operation complete bit is set
while fsp: *esr? <> 1
rem the next line reads out the trace data of window1/trace1
fsp:trac1? trace1