Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Ivi Visa ProgID for Active X Server

Hello,

I am trying to establish a Visa connection with the SCPI Server of my VNA using Matlab. In Matlab you can use actxserver('ProgID ') to start a COM-Server. 

 

However, I find it very difficult to find the correct ProgID to use Visa COM. I have tried 'VISA.GlobalRM' and 'VISA.BasicFormattedIO' and some others. But Matlab crashes whenever running my program and logs: "Access violation detected".

Does anyone know if there is one correct ProgID I can use or if it is an issue within Matlab itself. (I have tried the same in Octave and there the error is:  actxserver: unable to get dispatch interface)?

For Information: I have installed NI-Visa 2024 Q3 and any additional packages.

 

Thanks,
Simon

0 Kudos
Message 1 of 3
(360 Views)

Have you tried the route described by MATLAB,

 

https://www.mathworks.com/hardware-support/ni-visa-keysight-visa-tekvisa.html

https://www.mathworks.com/help/instrument/visa-overview.html

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(313 Views)

Yes I did, 

 

And it works perfectly fine. However, what I am trying to do now is to use Visa by creating a COM-Server (Matlab only ever describes the approach with the Instrument Control Toolbox). 

0 Kudos
Message 3 of 3
(304 Views)