PicoScope3000Series Streaming Simple Trigger

Post your MATLAB discussions here
Post Reply
Dome1985
Newbie
Posts: 0
Joined: Thu Apr 03, 2014 9:19 am

PicoScope3000Series Streaming Simple Trigger

Post by Dome1985 »

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
Part of Code
Part of Code

Hitesh

Re: PicoScope3000Series Streaming Simple Trigger

Post by Hitesh »

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.

Dome1985
Newbie
Posts: 0
Joined: Thu Apr 03, 2014 9:19 am

Re: PicoScope3000Series Streaming Simple Trigger

Post by Dome1985 »

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

Post Reply