10-03-2024 04:41 AM
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
10-03-2024 05:51 PM
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
10-04-2024 01:19 AM
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).