设备函数
- 更新时间2025-07-30
- 阅读时长4分钟
设备函数用于发送配置信息至特定的仪器或设备。
loc-转到本地
| 语法 | loc 地址 |
loc 暂时将设备从远程程序模式转到本地模式。
地址 设备的GPIB地址。 This argument indicates both primary and secondary addresses if you use the form primary+secondary, where primary and secondary are the decimal values of the primary and secondary addresses. For example, if primary is 2 and secondary is 3, address is 2+3.
loc 发送“转到本地”(GTL)消息至GPIB设备。
off-使控制器离线
| 语法 | off 地址 |
off 使指定GPIB地址上的设备离线。只在与使用NI-488 GPIB库的另一应用程序共享设备时使用。
地址 设备的GPIB地址。 This argument indicates both primary and secondary addresses if you use the form primary+secondary, where primary and secondary are the decimal values of the primary and secondary addresses. For example, if primary is 2 and secondary is 3, address is 2+3.
pct-传递控制权
| 语法 | pct 地址 |
pct 将“管理控制器”(CIC)权限传递给指定地址的设备。GPIB控制器自动转入空闲状态。该函数假定接受pct传递的控制权的设备具有控制器功能。
地址 设备的GPIB地址。 This argument indicates both primary and secondary addresses if you use the form primary+secondary, where primary and secondary are the decimal values of the primary and secondary addresses. For example, if primary is 2 and secondary is 3, address is 2+3.
pct 发送下列命令序列:
- 设备的通话地址
- 设备的次地址(如有)
- 取得控制权(TCT)
ppc-配置并行轮询
| 语法 | ppc byte address |
ppc 启用仪器响应并行轮询。
字节 是0或合法的启用并行轮询(PPE)命令。 If byte is 0, the parallel poll disable (PPD) byte 0x70 is sent to disable the device from responding to a parallel poll. 16条启用并行轮询(PPE)消息中的每一条都可选择GPIB数据线(DIO1-DIO8)及状态(1或0),设备在并行轮询时必需使用该状态响应“标识”(IDY)消息。设备比较ist状态并驱动指定的DIO线为TRUE或FALSE。
地址 设备的GPIB地址。 This argument indicates both primary and secondary addresses if you use the form primary+secondary, where primary and secondary are the decimal values of the primary and secondary addresses. For example, if primary is 2 and secondary is 3, address is 2+3.