Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

"*IDN?" command

when I send command "*IDN?" and check for errors
ibsta = 130
iberr = 1
here is the sequence of commands i sent

ibfind gpib0 board
ibsic
ibcmd "@?\x22"
ibwrt "*IDN?" /* at this point i get an error do i need to send a time out command?

I looked up the error for iberr where (1) means function requires GPIB board to be CIC. however i sent the ibsic command.
I also looked up the ibsta error but i am not sure how to interpert the error code i am getting
0 Kudos
Message 1 of 4
(4,975 Views)
The iberr field only represents an error if the ERR bit of ibsta is set (0x8000). Since ibsta is less than 0x8000, no error occurred during this call. If the call really had an ECIC error, ibsta would have been 0x8100 (or 0x8110) and iberr would have been 1.
0 Kudos
Message 2 of 4
(4,975 Views)
> The iberr field only represents an error if the ERR bit of ibsta is
> set (0x8000). Since ibsta is less than 0x8000, no error occurred

It's ok but could you tell us why Ibsta and Iberr were diffrent that zero ?

thanks for answer

Gorgo


> during this call. If the call really had an ECIC error, ibsta would
> have been 0x8100 (or 0x8110) and iberr would have been 1.
0 Kudos
Message 3 of 4
(4,975 Views)
ibsta indicates the status of the controller.
0x130:
0x100 = I/O is complete (not in progress)
0x20 = Controller is "Controller in Charge"
0x10 = The ATN line is asserted

iberr could be used for internal purposes. The only time iberr has any indication is if the error bit (0x8000) in ibsta is true. At that time, iberr indicates what error occurred. iberr should be ignored at all other times.

For more information, refer to the NI-488.2 help. There is an entire topic dedicated to ibsta and iberr.
0 Kudos
Message 4 of 4
(4,975 Views)