如何通过 SCPI/LXI 关闭 DL3021
为了通过 LXI 关闭 DL3021 电子负载(即:禁用任何恒定电流/电阻/电压/功率功能),运行以下命令:
dl3021_scpi_commands.txt
:SOURCE:INPUT:STATE OffPyVISA 示例
有关更多信息,请参阅通过 LXI (TCP SCPI) 的 PyVISA Rigol DL3021 示例
dl3021_lxi_example.py
#!/usr/bin/env python3
rm = pyvisa.ResourceManager()
inst = rm.open_resource("TCPIP0::192.168.178.112::INSTR")
# 查询仪器是否存在
# 打印例如 "RIGOL TECHNOLOGIES,DL3021,DL3A204800938,00.01.05.00.01"
print(inst.query("*IDN?"))
# 关闭电子负载
inst.write(":SOURCE:INPUT:STATE Off")Check out similar posts by category:
Analog, Electronics, Networking, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow