对不起,我是VISA编程的新手,我自己也搞清楚了。
调用viRead()会在缓冲区中返回一些数据,并且在使用时只读取字符串。
但我不确定 - 这个函数能否为某些设备返回任何其他数据?
安捷伦有很多支持VISA的设备,我无法阅读所有手册来查找所有命令的答案。
即使在VISA Consor
tium文件中我也没有找到答案。
看起来+可能+从viRead()获取一些二进制数据。
这会发生吗?
或者任何设备总是按字符串说话?
编辑:SergeK于2012年4月12日上午5:20编辑:SergeK于2012年4月12日上午5:23
以上来自于谷歌翻译
以下为原文
Sorry I'm new in VISA programming and cannot figure out this by myself. The call of viRead() returns some data in buffer, and I read only character strings when use it. But I'm not sure - Can this function return any other data for some device or not? There are lot of VISA capable devices from Agilent and I cannot read all manuals to find answers of all commands. I did not find answer even in VISA Consortium documents. Looks like it is +possible+ to get some binary data from viRead(). Can this happen? Or any device always talks by character strings?
Edited by: SergeK on Apr 12, 2012 5:20 AM
Edited by: SergeK on Apr 12, 2012 5:23 AM