04-20-2022 08:07 AM
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
04-22-2022 02:59 AM
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
11-14-2023 09:37 AM
Were you able to containerize nivisa as part of docker image.