Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

How to open VISA session, Set GPIB / I.P. address in C#, working with .NET Interop assembly DLL?

$
0
0

Hi.

I generated .NET Interop assembly DLL from LabView 2012 and have to use it in C#.

DLL - is from Agilent 34401A labview driver.

.NET Iterop assembly wizard generated Initialize function like this:

 public static void Initialize(LVReferenceNumber VISA_32resource_32name, bool ID_32Query_32_40True_41, bool Reset_32_40True_41, out LVReferenceNumber VISA_32resource_32name_32out);        

What should I write in my C# test to set GPIB / I.P. addres? from Labview or MAX my DMM is acessible using address: GPIB0::22::INSTR.

Also, I have to generate DLL to scope and have to use I.P. address to open VISA.

I understand that I have to set some value to variiable:

LVReferenceNumber VISA_32resource_32name 

BUT, don't know exactly how to do it.

Can you help me?


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>