Problem Picoscope 4824 icdevice (line 316) Matlab

Post your MATLAB discussions here
Post Reply
jonasenderlin
Newbie
Posts: 0
Joined: Fri Oct 05, 2018 9:12 am

Problem Picoscope 4824 icdevice (line 316) Matlab

Post by jonasenderlin » Fri Oct 05, 2018 9:36 am

Hi,

I have been using your Picoscope 4824 for several weeks nowand want to use it in a project.
For this I would like to read in a signal with Matlab, which is triggered by an event.

Until a few days ago I was on the right way and everything was fine. I was able to read data into Matlab via the examples and my own modified code.
But now, for some unexplainable reason, all examples and my code have the same error which is shown for the block example in the following:

Code: Select all


Copyright © 2014-2017 Pico Technology Ltd. All rights reserved.

PicoScope 4000 Series MATLAB Instrument Driver


   Instrument Device Object Using Driver : picotech_ps4000_generic.mdd
 
   Instrument Information
      Type:               Oscilloscope
      Manufacturer:       Pico Technology Ltd.
      Model:              PicoScope 4000 Series
 
   Driver Information
      DriverType:         MATLAB generic
      DriverName:         picotech_ps4000_generic.mdd
      DriverVersion:      1.1.12
 
   Communication State
      Status:             closed

Warning: Disconnect: No devices found. 
Error using icdevice (line 316)
An error occurred while executing the driver create code.
No units found.
If the error is not an instrument error, use MIDEDIT to inspect the driver.

Error in PS4000_ID_Block_Example (line 73)
ps4000DeviceObj = icdevice('picotech_ps4000_generic.mdd');
 
I use a Windows 10 enterprise 64bit OS and MATLAB R2017b with the instrument control toolbox version 3.12. Your PicoScope® 6 - PC-Oszilloskop-Software has the Version: 6.13.6.3775.

Does anyone have an idea and can help me please?

Thanks,
Jonas

Martyn
Site Admin
Site Admin
Posts: 3609
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Problem Picoscope 4824 icdevice (line 316) Matlab

Post by Martyn » Fri Oct 05, 2018 9:47 am

For the PicoScope 4824 you need to be using the 4000a examples, not the 4000 ones.
Martyn
Technical Support Manager

jonasenderlin
Newbie
Posts: 0
Joined: Fri Oct 05, 2018 9:12 am

Re: Problem Picoscope 4824 icdevice (line 316) Matlab

Post by jonasenderlin » Fri Oct 05, 2018 10:23 am

Hey Martyn,

thank you for you quick reply.
In fact, I already had this driver, just replaced it for error search and forgot to reverse it.
Unfortunately, there is still an error that I originally meant.
Do you also have a solution for this?

Code: Select all


Copyright © 2014-2017 Pico Technology Ltd. All rights reserved.

PicoScope 4000 Series (A API) MATLAB Instrument Driver


   Instrument Device Object Using Driver : picotech_ps4000a_generic.mdd
 
   Instrument Information
      Type:               Oscilloscope
      Manufacturer:       Pico Technology Ltd.
      Model:              PicoScope 4000 Series (A API)
 
   Driver Information
      DriverType:         MATLAB generic
      DriverName:         picotech_ps4000a_generic.mdd
      DriverVersion:      1.2.12
 
   Communication State
      Status:             closed

Number of units found: 1

Serial number(s): FT792/193

Opening PicoScope 4000 Series device...

   Instrument Device Object Using Driver : picotech_ps4000a_generic.mdd
 
   Instrument Information
      Type:               Oscilloscope
      Manufacturer:       Pico Technology Ltd.
      Model:              PicoScope 4000 Series (A API)
 
   Driver Information
      DriverType:         MATLAB generic
      DriverName:         picotech_ps4000a_generic.mdd
      DriverVersion:      1.2.12
 
   Communication State
      Status:             open

Setting Device Parameters...

Default Channel Setup:-
-----------------------

Channel A:-
	Enabled: True
	Coupling: DC
	Range: 5V
	Analog Offset: 0.0V

Channel B:-
	Enabled: True
	Coupling: DC
	Range: 5V
	Analog Offset: 0.0V

Channel C:-
	Enabled: True
	Coupling: DC
	Range: 5V
	Analog Offset: 0.0V

Channel D:-
	Enabled: True
	Coupling: DC
	Range: 5V
	Analog Offset: 0.0V

Channel E:-
	Enabled: True
	Coupling: DC
	Range: 5V
	Analog Offset: 0.0V

Channel F:-
	Enabled: True
	Coupling: DC
	Range: 5V
	Analog Offset: 0.0V

Channel G:-
	Enabled: True
	Coupling: DC
	Range: 5V
	Analog Offset: 0.0V

Channel H:-
	Enabled: True
	Coupling: DC
	Range: 5V
	Analog Offset: 0.0V

Turning off trigger...

Warning: Escaped character '\M' is not valid. See 'doc sprintf' for supported special characters. 
> In privateExecuteMCode>localCleanupError (line 117)
  In privateExecuteMCode (line 44)
  In instrgate (line 20)
  In icdevice/invoke (line 73)
  In privateEvaluateCode (line 29)
  In instrgate (line 18)
  In icdevice/connect>localEvaluateCode (line 130)
  In icdevice/connect (line 94)
  In PS4000A_ID_Block_Example (line 76) 
Error using icdevice/connect (line 114)
An error occurred while executing the driver connect code.
Error: PS4000A_ID_Block_Example (line 76)
connect(ps4000aDeviceObj);
 
>> 

Martyn
Site Admin
Site Admin
Posts: 3609
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Problem Picoscope 4824 icdevice (line 316) Matlab

Post by Martyn » Fri Oct 05, 2018 10:42 am

I can see that my colleague is handling this issue through our ticketing system, so we will answer on the ticket.
Martyn
Technical Support Manager

Post Reply