08-14-2009 10:38 AM
Dear all,
We would like to develop a software with the Keithley Measure Unit Model 236, C#, National Instruments Gpib interface and Measurement Studio 8.0.1.
Do you have experience how this can be realised? I could only find examples and drivers for LabView.
Thanks in advanced.
Best regards.
08-17-2009 04:11 AM
Hi agent,
I could only find LabVIEW drivers for your unit as well. So if there is no C-API for it, you have three choices in my opinion:
- using our NI-488.2 + VISA drivers to write an instrument-driver for the Keithley 236 yourself
- converting the LabVIEW-driver to a dll, which you can call in C#.
For the conversion you need LabVIEW + LabVIEW Application Builder for building the DLL
This would be the quickest and most convenient way. Do you own LabVIEW ?
- requesting a driver at www.ni.com/idnet
Since there is no C-API at this time, there are no respective examples on the web. But there are general VISA-Examples
for C# coming with the NI-VISA driver. So you just have to install it.
Marco Brauner NIG
08-19-2009 01:57 AM
Thanks for the information. We have LabView, but I am not sure if we have the Application Builder software.
How can I get the needed calls to access the device and read/write values in the correct programming order ?
I could find only some manuals at
http://www.keithley.com/products/currentvoltage/?path=236/Documents#6
but I cannot get the answers which I need.
Thanks.
Best regards,
08-19-2009 12:50 PM
Agent,
If I was you I would use the COM-VISA which works well in .NET (C# and VB.NET) and send the commands to the 236 yourself. Look at the pdf on the Keithley web site for the commands to send: www.keithley.com\data?asset=877
If you need help with COM VISA and C# then give me your email address and I can send you an example.
08-27-2009 03:51 AM
Thanks. I will try to convert first the LabView-driver to dll.
I hope it works.
09-03-2009 07:55 AM
I have now converted the LabView driver to dll and I am actually trying to convert the content of the header files to C#.
Do you know how the next struct can be converted to C#? Especially the words LVBoolean and LStrHandle?
typedef struct {
LVBoolean error;
long code;
LStrHandle source;
} TD1;
Thanks.
04-29-2014 09:13 AM
Hi agent,
Do you able to work with the converted Labview DLL in c#?