Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI488 c console examples, build, but can't connect to GBIB-USB (windows)

The standard C examples compine and link ok, but none so far seem to communicate with GPIB0.

 

I am using visual C, and the command line in the readme for the build:


    cl /I"%NIEXTCCOMPILERSUPP%\include" FindInstruments.c "%NIEXTCCOMPILERSUPP%\lib32\msvc\ni4882.obj" /MD

 

no compile errors (I did coment out conio.h, it is not in vs c anymore?)

 

output after the run:

Error : Unable to open board
ibsta = 0x8100 iberr = 5 (ESAC)
Cleanup: Taking board offline

 

I can talk to the adapter with all the other tools in the install, and see my instruiments.

 

Compiled console examples can not find the USB adapter.

 

Any ideas?

 

Thanks

Randy

0 Kudos
Message 1 of 3
(3,099 Views)

Hardware? Driver version?OS?

 

And, why are you not using VISA?  (It's everywhere you want to be)


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(3,050 Views)

Hardware is a NI GPIB-USB-HS, and it works fine with all the pre-built NI applications (NI MAX version 15.3), and I can connect to instruments, etc, so the interface is fine.

The GPIB-USB_HS driver version is 15.5.0.49152

My OS is windows 7

 

It sure seems that a 100 line c program example from NI should work out of the box, but it does not.

 

Why not VISA?

I am hoping to make the PC act as talker/listener, not a controller, but act as an instrument.

0 Kudos
Message 3 of 3
(3,045 Views)