Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Keithley 236 with C#

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.

 

 

 

0 Kudos
Message 1 of 7
(6,167 Views)

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 

0 Kudos
Message 2 of 7
(6,138 Views)

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,

 

0 Kudos
Message 3 of 7
(6,120 Views)

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.

0 Kudos
Message 4 of 7
(6,103 Views)

Thanks. I will try to convert first the LabView-driver to dll.

I hope it works.

0 Kudos
Message 5 of 7
(6,054 Views)

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.

 

0 Kudos
Message 6 of 7
(5,984 Views)

Hi agent,

 

Do you able to work with the converted Labview DLL in c#?

0 Kudos
Message 7 of 7
(4,291 Views)