Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 rating:
 1.5 out of 5     Rate this Document

PC-to-PC Communication through GPIB with LabVIEW 7

Primary Software: LabVIEW Development Systems>>Full Development System
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-488.2
Hardware: GPIB

Problem:
I want to establish PC-to-PC communication through GPIB with LabVIEW 7. I have tried using several different KnowledgeBases articles and the GPIB manual but I still can not communicate with the second PC. I keep getting the no listener error.  What am I doing wrong?

Solution:
If you are getting the no listener error it means that the non-controller interface is not active.

Here is the sequence of commands you can use. Check the Sequence-file in the zip-file below.

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"

 



Related Links:
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

Attachments:


PC communication.zip - PC communication.zip



Report Date: 09/23/2003
Last Updated: 03/07/2008
Document ID: 31M3PH1J

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit