LabVIEW 7中通过实现PC到PC的GPIB通信



主要软件:
主要软件版本: 7.0
主要软件修正版本: N/A
次要软件: Driver Software>>NI-488.2
硬件: GPIB

问题: 我想通过LabVIEW建立PC到PC的GPIB通信。我已经尝试使用几个知识库文章和GPIB手册中提到的方法,但是我仍然不能和另一台PC建立GPIB通信。我一直都收到没有监听器的错误提示。请问是什么地方操作不当导致这个错误?

解答: 如果您收到没有监听器的错误提示,表明非控制器端接口没有被激活。

以下是您可以使用的命令顺序。客户参考附件压缩文件中的序列文件。

步骤
控制器
非控制器
注释
1
 
ibfind gpib0
 
2
 
ibpad 2
(set address to 2)
3
ibdev 0 2 0 13 1 0
 
 
4
ibwrt "Hello"
 
(This function should not return immediately)
5
 

ibrd 100

 
 
6
ibrd 100
 
 
7
 
ibwrt "response"
 


相关链接: KnowledgeBase 17TGL4TR: Computer to Computer Communication Via GPIB
Product Manuals: NI-488.2 User Manual
KnowledgeBase 1HCF1CQA: LabVIEW Always Sets GPIB Boards as System Controllers

附件:
PC communication.zip - PC communication.zip


PC communication.zip - PC communication.zip



报告日期: 09/23/2003
最近更新: 08/25/2010
文档编号: 31M3PH1J