ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

protocol GPIB

Hi everybody

 

I am new in this forum so I hope I am respecting all the rules

 

I try to read data from the GPIB bus with a PIC 18F4525.

 

to open the communication I use the command

 

ibdev 0 1 0 10 1 0

 

so the board address is 0

the primary address of the device is 1 (as in the PIC)

the secondary address of the device is 0

the timeout is 10 seconds

the EOI is in use

the EOS is not in use

 

that I send the command

 

ibwrt "*IDN?" 

and the first byte my PIC receives is 0x40 that should me a "TALKER" command to the address 0

 

I supposed that the PIC should receive a "LISTENER" command to the address 1 first , then the string "*ATN?" as data, and at the end a "TALKER" command with the address 1

 

is it right?

 

can anybody help me?

 

Thanks

 

0 Kudos
Message 1 of 2
(3,227 Views)

http://www.hit.bme.hu/~papay/edu/GPIB/tutor.htm

 

Is your PIC capable of controlling 16 signal lines simultaneously?

 

0 Kudos
Message 2 of 2
(3,218 Views)