vnau / ivivisanetsample Goto Github PK
View Code? Open in Web Editor NEW๐ Simple IVI VISA.NET example with CI and .NET 5+
License: GNU General Public License v3.0
๐ Simple IVI VISA.NET example with CI and .NET 5+
License: GNU General Public License v3.0
Dear @vnau. I find your kelary.ivi.visa simply brilliant. Thank you. I used, I believe, a previous release (5.?) but it seems that the 7.2 release somehow blocks access to the resource manager.
I was getting the following error when running the IviVisaNetSample under .NET Framework 4.8:
VISA.NET Shared Components version 7.2.0.0.
VISA Shared Components version 7.1.6708.0 detected.
Exception: Failed to parse TCPIP0::192.168.0.144::inst0::INSTR
To explore this further, I compiled a program to query the instrument identity and added a resource lookup using the IVI.Visa global resource manager. I then compared the results using the current 7.2 release of the Kelay.ivi.visa package versus using a direct reference to IVI.Visa (5.11).
While using ivi.visa directly works, I am getting the failure to parse error when referencing the package.
Here are my results:
Failure running IviVisaSentSample
(I added the name of the running framework).
Running under .NETFramework,Version=v4.8.
VISA.NET Shared Components version 7.2.0.0.
VISA Shared Components version 7.1.6708.0 detected.
Unhandled Exception: Ivi.Visa.VisaException: Failed to parse tcpip0::192.168.0.144::inst0::instr
at Ivi.Visa.GlobalResourceManager.Parse(String resourceName, SrmDictionary srms)
at Ivi.Visa.GlobalResourceManager.Parse(String resourceName)
at Rohde.IdnQuery.Program.Main(String[] args) in C:\my\lib\vs\io\vi\src\rohde\idn.query\Program.cs:line 76
Success running IviVisaSentSample
under .NET 8.0:
Running under .NETCoreApp,Version=v8.0.
VISA.NET Shared Components version 7.2.0.0.
VISA Shared Components version 7.1.6708.0 detected.
Loaded assembly "Keysight VISA.NET".
Executing GlobalResourceManager.Find( "TCPIP?*INSTR" )
Resource: tcpip0::192.168.0.144::inst0::instr
IVI GlobalResourceManager ImplementationVersion:7.2.0.0 SpecificationVersion:7.2.0.0
selected the VISA.NET Implementation by Keysight Technologies, Inc. version 18.2.0.0
Instrument Identification string:
KEITHLEY INSTRUMENTS,MODEL DMM7510,04051720,1.7.7b
Press any key to finish.
Getting an error under v4.8 using Kelary 7.2
I added the resource lookup here as a way to check the resource manager without having to use an explicit resource name.
Running under .NETFramework,Version=v4.8.
VISA.NET Shared Components version 7.2.0.0.
VISA Shared Components version 7.1.6708.0 detected.
Executing GlobalResourceManager.Find( "TCPIP?*INSTR" )
Error finding resources:
Failed to find resources matching TCPIP?*INSTR
Press any key to finish.
Success running under 4.7.2 using direct reference to IVI.Visa.
Running under .NETFramework,Version=v4.7.2.
VISA.NET Shared Components version 5.11.0.0.
VISA Shared Components version 7.1.6708.0 detected.
Executing GlobalResourceManager.Find( "TCPIP?*INSTR" )
Resource: tcpip0::192.168.0.144::inst0::instr
IVI GlobalResourceManager selected the following VISA.NET:
Manufacturer: Keysight Technologies, Inc.
Implementation Version: 18.2.0.0
Instrument Identification string:
KEITHLEY INSTRUMENTS,MODEL DMM7510,04051720,1.7.7b
Press any key to finish.
Success running under 4.8 using direct reference to IVI.Visa.
Running under .NETFramework,Version=v4.8.
VISA.NET Shared Components version 5.11.0.0.
VISA Shared Components version 7.1.6708.0 detected.
Executing GlobalResourceManager.Find( "TCPIP?*INSTR" )
Resource: tcpip0::192.168.0.144::inst0::instr
IVI GlobalResourceManager selected the following VISA.NET:
Manufacturer: Keysight Technologies, Inc.
Implementation Version: 18.2.0.0
Instrument Identification string:
KEITHLEY INSTRUMENTS,MODEL DMM7510,04051720,1.7.7b
Press any key to finish.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.