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

No access to visa session Handle in NationalInstruments.Visa?

$
0
0

I am currently converting some code from using NationalInstruments.VisaNS to NationalInstruments.Visa. I have hit an unexpected problem when it comes to getting a Handle of the visa session, as I have some legacy equipment which has a COM driver that requires the session handle.

 

In NI.VisaNS, you have access to a Handle property, which returns the session Handle. In the replacement, Ni.Visa, the VisaHandle property is not exposed. I'm assuming it is because the NativeVisaSession Handle property in ivi.Visa is not exposed, so NI.Visa cannot access the handle. 

 

So, is there a workaround (I'm assuming not, but there may be another way that I haven't discovered yet), or is there a way for NI to escalate this to the IVI Foundation to see if they can modify ivi.Visa to expose the Handle? 

 

Thank you.

 


Viewing all articles
Browse latest Browse all 5566

Trending Articles



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