Test and Measurement Forum

PicoScope3000Series Streaming Simple Trigger

Post your MATLAB discussions here

PicoScope3000Series Streaming Simple Trigger

Postby Dome1985 » Tue Apr 08, 2014 6:57 am

Hello all,

I am using the PicoScope 3206B to get and analyse data with Matlab.
I also have the Instrument Control Toolbox and I am working with Matlab 2014a.
I downloaded the SDK Version: PS3000asdk_r10_5_0_28.zip
I am trying to understand the following example of the PicoScope 3000Series Matlab Generic Instrument Driver:
- PS3000a_IC_Generic_Driver_2buffers_Streaming_SimpleTrig.m

The Problem is the following part of the code -> PartofCode.png

The function adc2mv.m expect 3 input parameters, but if you look into the code it calls the function with 4 parameters, so that won´t work.

If anybody have an idea regarding this problem, it would be perfect.

Thank you.

Dome1985
Attachments
PartofCode.PNG
Part of Code
Dome1985
Newbie
 
Posts: 0
Joined: Thu Apr 03, 2014 9:19 am

Re: PicoScope3000Series Streaming Simple Trigger

Postby Hitesh » Tue Apr 08, 2014 8:23 am

Hello Dome1985,

The adc2mv function was updated after the scripts for the PicoScope 3000 were created as one of the parameters was deemed unnecessary.

You can update the example script to use the newer adc2mv function e.g.

Code: Select all
buffer_a_max = adc2mv(bufferMaxChA, voltage_range_chA, ps3000a_obj.maxValue)


The scripts will be updated in due course and an update uploaded to the MATLAB Central File Exchange site.

Hope this helps.
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: PicoScope3000Series Streaming Simple Trigger

Postby Dome1985 » Tue Apr 08, 2014 8:45 am

Thank you very much, i was thinking about this solution without calling this function:

Maybe anybody aggree with that or find a reason why this version will not work correctly.
Attachments
oneline.PNG
OneLineCalc
(6.92 KiB) Not downloaded yet
Dome1985
Newbie
 
Posts: 0
Joined: Thu Apr 03, 2014 9:19 am


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 0 guests