05-11-2011 07:46 PM
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
05-12-2011 05:25 PM
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!
04-24-2013 08:55 PM
The latest manuals can always be found at:
http://mensor.com/download_operating_instructions_en_um.WIKA?ActiveID=30161