Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ESP-488 boardlevel commands help?

ESP-488 IBC Sample code (compiled for VxWorks)
2711> ibicMain ESP-488 in C for GPIB-ENET Interactive
Test Program.

😆 find gpib0 board Open a board-level connection
IBSTA: 0 to a GPIB-ENET whose hostname
IBERR: 0 is gpib0. This should put me
IBCNT: 0 at the board level.

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

BOARD-> cmd "@?\x22" @ is My Talk Address 0 (gpib0)
IBSTA: 0 ? is Unlisten All
IBERR: 0 \x22 is Hex 22 which is My
IBCNT: 0 Listen Address 2 (the primary
address for my-instrument).

BOARD-> wrt "*IDN?" standard SCPI command that most
IBS
TA: 130 instruments should understand.
IBERR: 1 Since I set up the talkers and
IBCNT: 0 listeners, the device at
primary address 2 will
get that command and respond.

BOARD-> cmd "? B" ? is Unlisten All
IBSTA: 0 space is MyListen Address 0
IBERR: 0 B is My Talk Address 0
IBCNT: 0

BOARD-> rd 100 This command reads the stuff
on the bus sent from Device
Buffer = 2. It shouldrespond with
something like
"Hewlett Packard Oscilloscope"
IBSTA: c164 or something like that, but
IBERR: 6 it does not?
IBCNT: 0

ibwrt "FREQ 500 kHz" This command write data to
IBSTA: 0 the device addressed above
IBERR: 0 This does not work either
IBCNT: 0

Can anyone tell me what I am doin
g wrong?
0 Kudos
Message 1 of 3
(3,505 Views)
http://exchange.ni.com/servlet/Redirect?id=5963738
0 Kudos
Message 2 of 3
(3,505 Views)
I am also using ESP-488 on VxWorks, and I am having the same problem in being unable to read back the response from an instrument after having issued an "*idn?" command. Have you been able to figure out the solution to this problem?
0 Kudos
Message 3 of 3
(3,505 Views)