是德科技
直播中

张瑞

7年用户 228经验值
私信 关注
[问答]

FETCH命令和MEASURE命令有什么区别?

手册中的SCPI命令参考列出了FETCH命令和MEASURE命令。
两者有什么区别?
FETCH命令是否返回仪器设置或测量的电压和电流?
我正在使用N6733,N6735和N6743模块。我正在使用Agilent N6700B VISA仪器驱动程序在labview中开发自动化测试脚本,我想根据当前设定点检查新设定值,以确定首先重新配置哪个设置。
例如:如果新OV设置大于旧OV,则需要在电压设置之前调整OV设置以避免仪器跳闸。
(即,旧的OV保护设置为5V,新设置为OV = 10V,电压= 6V - > OV需要先打开)。
如果新OV设置低于旧OV,则需要在OV关闭之前关闭电压(即从OV = 10 / V = 6V变为OV = 5V / V = 3V)。实现此逻辑
,我需要一种方法来返回当前的模块设置。
我想使用预编程的驱动程序,而不是编写和调试GPIB查询字符串命令。

以上来自于谷歌翻译


     以下为原文

  The SCPI command reference in the manual lists FETCH commands and MEASURE commands. What is the difference between the two? Do the FETCH commands return the instrument settings or the measured voltages and currents? I'm using the N6733, N6735, and N6743 modules.

I am developing an automated test script in LabVIEW using the Agilent N6700B VISA Instrument Drivers, and I want to check the new setpoints against the current setpoints to determine which setting to reconfigure first.

For example: If the new OV setting is greater than the old OV, the OV setting needs to be adjusted before the voltage setting to avoid tripping the instrument. (i.e., old OV protection set at 5V, new settings are OV=10V and Voltage=6V --> OV needs to be turned up first). If the new OV setting is lower than the old OV, the voltage needs to be turned down before the OV is turned down (i.e. changing from OV=10/V=6V to OV=5V/V=3V).

To implement this logic, I need a way to return the current module settings. I'd like to use the preprogrammed drivers instead of writing and debugging the GPIB query string commands.  

回帖(1)

张瑞

2019-8-7 10:38:14
谢谢你的回应,马特。
我正在使用LabVIEW VISA驱动程序,而不是VXI驱动程序。我最终编写了几个简单的字符串查询函数来查询各个设置。
如果我们最终需要更多性能,我认为* LRN?
查询将是最小化总线事务的好方法。

以上来自于谷歌翻译


     以下为原文

  Thanks for the response, Matt. I'm using the LabVIEW VISA drivers, not the VXI drivers.

I ended up writing a couple of simple string query functions to query individual settings. If we end up needing more performance, I think the *LRN? query would be a great way to minimize bus transactions.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分