Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I control my instrument using C ?

Im interested in writing a C++ program on a Solaris 8 platform to control an Agilent 66312A. Since I'm new to this, I'm wondering if I can do something as simple as:
fprintf(gpib0,"%s","VOLT 5\n"); On this system, gpib0 is the logical address of the GPIB driver card.

Or, is there a more complex procedure required?
0 Kudos
Message 1 of 2
(3,263 Views)
Hi Hanna,
To answer your question about writing, it is similar to that. You will use the ibwrt function in the 488 library to do so. There is a great manual at http://www.ni.com/pdf/manuals/320351b.pdf that talks about programming with ni-488.2. Hope this helps out!

Best Regards,
Aaron K.
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,263 Views)