Test and Measurement Forum

Disconnect Hang Problem

Post your MATLAB discussions here

Disconnect Hang Problem

Postby Rumchiller » Tue Feb 24, 2015 7:55 pm

Hello!

My first experience today with the 3203D and Matlab:

%%%%%
ps3000a_obj = icdevice('PS3000a_IC_drv','');
connect(ps3000a_obj)
%%%%%

Everything ok so far. Now, when i want to disconnect, Matlab hangs and i can only kill the task. No error, it just hangs.

%%%%%
disconnect(ps3000a_obj)
%%%%%

What am I doing wrong?

Reggie
Rumchiller
Newbie
 
Posts: 0
Joined: Sat Feb 21, 2015 12:18 pm

Re: Disconnect Hang Problem

Postby Hitesh » Thu Feb 26, 2015 2:45 pm

Hi Reggie,

What is the Instrument Driver version displayed when the connect function is called?

Are you using a 32-bit or 64-bit version of MATLAB and did you obtain the dll files from version 10.5.2.1 of the PS3000a SDK?

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Disconnect Hang Problem

Postby Rumchiller » Thu Feb 26, 2015 3:20 pm

Hi Hitesh,

I am using Win7 64bit, Matlab 2014 32bit and I have downloaded the 10.5.2.1 SDK. I am loading all the 32bit dlls.

The Instrument Driver version is confusing me: When I connect to the device it shows me:

Code: Select all
Driver Information
      DriverType:         MATLAB generic
      DriverName:         PS3000a_IC_drv.mdd
      DriverVersion:      1.0


But when I open the Matlab Instrument Driver Editor, under "Summery", I see "Driver version 1.2.1".

Reggie
Rumchiller
Newbie
 
Posts: 0
Joined: Sat Feb 21, 2015 12:18 pm

Re: Disconnect Hang Problem

Postby Hitesh » Wed Apr 01, 2015 1:35 pm

Hi Rumchiller,

MATLAB 2014a and earlier do not show the version correctly, while R2014b and later do.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 1 guest