Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for C code to get started writing GPIB handler for an instrument

I am looking for C code to get started writing the GPIB handler code for an
instrument. This is for a non-controller in charge instrument. Ideally I
would like some sample code for parsing GPIB commands, and performing the
correct statusing of the GPIB bus to be both 488.2 and 488.1 compliant. It
should handle cases such as *OPC as well as *OPC? being appended to the
command, and generate SRQ's appropriately.

There seems to be plenty of simple examples on National Instruments website,
but I haven't found any detailed robust examples. If anyone could point me
in the right direction I would appreciate it.
0 Kudos
Message 1 of 2
(3,272 Views)
Have you checked the National Instruments Developer Zone (http://zone.ni.com)? If to goto this link and search for "+gpib +non-controller", you should get a series of links that have examples of non-controller based applications. These examples would be a good start to developing larger scaled applications.

Ryan Mosley
National Instruments, Applications Engineer
http://www.ni.com/exchange
0 Kudos
Message 2 of 2
(3,272 Views)