Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Working with NationalInstruments GPIB-ENET/1000 inside linux docker container and call with C#

Hello all,

 

we have some yokogawa powermeters from which we need data. The yokogawa devices communicate with GPIB or direct ethernet. To get the data via GPIB we use the "NationalInstruments GPIB-ENET/1000" adapter. The software must run inside a docker-container. The already existing software runs on .NetCore 5.0 and is a C# implementation. Now I need to connect the C# application to the VISA-libraries. 

 

I already installed the NI-VISA driver on an Ubuntu virtual machine. (Containerization (docker) comes later)

I could add my device with "visaconf".

I could test the communication with the interactive tool.

 

Now comes the part with API-Programming. How could I call the libvisa.so from C#?

Is there some kind of wrapper file? 

In the same setup we also communicate with hardware devices from other companies and for that I have a C#-File which calls the functions in the *.so library.

 

Is something available for the visa library?

 

I also experimented with pyVisa and thats basically also just a wrapper around the visa implementation.

So I hope out there is something. 🙂

 

Thank you for your help.

 

Best regards

Stefan

0 Kudos
Message 1 of 3
(1,324 Views)

Update:

 

I found this page https://www.ni.com/de-de/support/documentation/supplemental/13/national-instruments--net-support.htm...

 

Mentioned here is the ".NET Source Code Wrapper API". I need something for VISA.

I also found something on the internet:

https://github.com/romul/Measurement-Studio/blob/master/Voltmeter/visa32.cs

 

 

0 Kudos
Message 2 of 3
(1,282 Views)

Were you able to containerize nivisa as part of docker image.

0 Kudos
Message 3 of 3
(660 Views)