Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-GPIB Programming with Borland C++ Builder 6

Hello guys, I am developing an application and I need to control a Spectrum Analyzer, I was programming with GPIB a long time ago, and I need to control now from Borland C++ Builder 6.0.

I am using 'Language Interface 32-bits for Borland C++", and I have problems when I try to read data from GPIB.

I do the next:

ibdev(0, 16, 0, T10s, 1, 0)
ibclr(0)
ibwrt(0, "*IND?", 5)
ibrd(0, msg, 2000)

When I do ibrd and I obtain an error in ibsta and I can not read anything, the other commands was okey without errors.

I am following the examples and I am using to compile the "Decl-32.h" and add the library BorlandC_gpib-32.obj to my project.

If I use measseurement application to query the device, the devices respond me correctly, when I try the same commands using "Interactive Control", I obtain the same error that my application.

Anyone knows which is the problem?

thanks!!


0 Kudos
Message 1 of 3
(4,202 Views)
Is *IND? a query??

If not, *IDN?   would be better????Smiley Wink


0 Kudos
Message 2 of 3
(4,200 Views)
I am sorry very much, you have the reason, I was trying to send a wrong command, today I have fix the string and all is right. I get to communicate with Agilent 8720ES perfectly.
 
Thanks!
0 Kudos
Message 3 of 3
(4,186 Views)