Hi Lost,
You've raised questions regarding several issues. I'm not familiar with the function calls in ke238.c, but keep in mind that the error variable iberr is meaningful only when the ERR bit in the Status variable, ibsta, is set. The ERR bit is the most significant (leftmost) bit in the 4-digit hex value of the Status variable. Since the ERR bit is not set in your Status variable, the value of iberr is not important. This is better documented in the
NI-488.2 Help file (Start -> Programs -> National Instruments -> NI-488.2 -> NI-488.2 Help. Search on iberr and ibsta).
It might be useful to look at program execution at ibrsp. It this command successfully returning or is the program hanging here? Check the value of ibsta and decode the meaning
using the NI-488.2 Help file again.
There is also another discussion forum post regarding
Keithley 238 GPIB Communication that experienced similar problems. It seems that in that case, putting delays in the code solved the issue. It's worth giving that a try. You might even try contacting that person for more programming advice if you're still having trouble.
Best of luck!
Kileen Cheng
Applications Engineer
National Instruments