使用LabVIEW7透過GPIB介面進行PC跟PC之間的通訊



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

問題: 我想用LabVIEW7配合GPIB來做PC跟PC之間的通訊. 我試了很多KB裡的方式與GPIB使用手冊裡的方法. 不過我還是不能與第二台電腦連接. 我做錯了什麼? 我一直得到"no listener"的錯誤

解答:

如果您得到"no listener"的錯誤, 那代表說non-controller那台電腦的介面卡不是active. 您可以依照順序使用以下指令,請參考下表及附件的zip檔。

Step

Controller

Non-Controller

Comments

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



報告日期: 09/23/2003
最後更新: 01/30/2013
文件偏號: 31M3PH1J