12-31-2016 07:23 PM
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
01-01-2017 10:32 AM
Hardware? Driver version?OS?
And, why are you not using VISA? (It's everywhere you want to be)
01-01-2017 02:30 PM
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.