PicoVNA Matlab Interface

Discussions forum for our Sampling Oscilloscopes, VNA, and Pulse Generators
Post Reply
gosler
Newbie
Posts: 0
Joined: Fri Aug 09, 2019 3:25 pm

PicoVNA Matlab Interface

Post by gosler » Fri Aug 09, 2019 3:53 pm

Attempting to remote control PicoVNA with Matlab.

This has been tried using Matlab R2011 and R2014, PC OS is Windows 10

Using the latest version of PicoVNA2 Control (v17), the program ID is not created and attempting to create an object file in matlab fails reporting invalid ProgID. The ProgID does not appear as a software Class name.

Reverting to PicoVNA2 Control (v12), PicoControl2.PicoVNA_2 now appears as a software class name, but creation of an actxserver object still results in the following error.

obj = actxserver('PicoControl2.PicoVNA_2');
Error using feval
Server Creation Failed: Class not registered

Error in actxserver (line 86)
h=feval(['COM.' convertedProgID], 'server', machinename, interface);

Any ideas on why the latest version v17 doesn't register the class name, or why the error above occurs with V12. Is this an issue with Windows 10?

Any pointers appreciated.

NeilH
PICO STAFF
PICO STAFF
Posts: 148
Joined: Tue Jul 18, 2017 8:28 am

Re: PicoVNA Matlab Interface

Post by NeilH » Tue Aug 13, 2019 11:58 am

Hi

When you get the error with v12 is the VNA open in the software or in any other instance on the PC?

For v17 there is a bug with the current installer version that doesn't properly register the dll for use, to do this open the CMD as an administrator then navigate to C:\Windows\sysWOW64 then run this command;
regsvr32 PicoControl2.dll
This will then register the dll for use with MATLAB

Neil
Neil
Technical Support Engineer

punch98
Newbie
Posts: 0
Joined: Thu Sep 05, 2019 1:46 am

Re: PicoVNA Matlab Interface

Post by punch98 » Thu Sep 05, 2019 1:53 am

Hi,

I am using MATLAB 2016a / 2018b with PicoVNA software v17 on Windows 10 Pro, and getting the same error message : "Server Creation Failed: Class not registered". Both MATLAB versions are giving this.

I ran "regsvr32 PicoConrol2.dll" from cmd as administrator at C:\Windows\SysWOW64

Can I get some pointer for this? Is there a v16 software available that I can try?

Thank you!

NeilH
PICO STAFF
PICO STAFF
Posts: 148
Joined: Tue Jul 18, 2017 8:28 am

Re: PicoVNA Matlab Interface

Post by NeilH » Thu Sep 05, 2019 8:17 am

Hi

Using the regsvr32 will register the dll for use with 32 bit applications only as the dll itself is 32 bit so it would work with a 32 bit version of MATLAB such as 2015b 32 bit.

Neil
Neil
Technical Support Engineer

Post Reply