Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get ESP-488 to read responses

I purchased the ESP-488 driver kit for my ENET-GPIB/100 and have ported the driver to VxWorks. I am able to issue the command "*RST" to my instrument; however, I am unable to read back responses from the "*IDN?" command. Could somebody please tell me what I'm doing wrong? I've listed my sequence of commands below:


------------------------------

-> ibic
ESP-488 in C for GPIB-ENET Interactive Test Program.

😆 find enet_gpib_1 board
IBSTA: 0
IBERR: 0
IBCNT: 0

BOARD-> sic
IBSTA: 0
IBERR: 0
IBCNT: 0

BOARD-> cmd "@?\x22"
IBSTA: 0
IBERR: 0
IBCNT: 0

BOARD-> wrt "*idn?"
IBSTA: 130
IBERR: 1
IBCNT: 0

BOARD-> cmd "? B"
IBSTA: 0
IBERR: 0
IBCNT: 0

BOARD-> rd 100

Buffer =




IBSTA: 3233

IBERR: 422c
IBCNT: 0

BOARD->
0 Kudos
Message 1 of 3
(3,386 Views)
I discovered that there was a bug in my port of the driver to VxWorks. There is a name conflict between esp.h's definition of "STATUS" and VxWorks's definition of "STATUS". After I renamed esp.h's "STATUS" to something else, the driver started to work.
0 Kudos
Message 2 of 3
(3,386 Views)
Hi,

Thanks for that bit of info, that could really be useful to me in the future!

Best Regards,
Aaron K.
Application Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,386 Views)