Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB programming in C++ for a Mensor CPC 8000, and Mensor CPC 6000

I'm a trying to write a C++ segment of code that will control a Mensor CPC 8000 and a Mensor CPC 6000. I need some sample code of how to interface with the Mensor. I have never programmed a GPIB Mensor interface. Any kind of help would be very much appreciated. Thanks in advance

 

0 Kudos
Message 1 of 3
(5,232 Views)

Hi hfbroady,

 

Communicating to the Mensor device will be the same as any other GPIB device. There are examples that come with the VISA driver on basic read and write using the C API.The commands you have to send are found in the user manual for your devices.

 

Mensor CPC 8000:

http://www.mensor.com/upload/CPC8000_0017827001F_30462.pdf (section 7.3.1 and beyond. Pg. 86)

 

Mensor CPC 6000:

http://www.mensor.com/upload/CPC6000_0017222003AB_LowResolution_30501.pdf (Section 7. Pg. 45)

 

The VISA example can be found at Start -> All Programs -> National Instruments -> VISA -> Examples

 

Then in C -> General -> RdWrt.c

 

Instead of sending *IDN? as it shows in this example you can send other commands that are listed in the manuals.

 

Hope this helps!

 

 

Chris T.
Message 2 of 3
(5,220 Views)
0 Kudos
Message 3 of 3
(4,852 Views)