PicoScope AWG in matlab.

Come here to introduce yourself, who you are, and what you do
Post Reply
1610769038
User
User
Posts: 9
Joined: Fri Jul 03, 2020 6:39 am

PicoScope AWG in matlab.

Post by 1610769038 »

Hallo i'm working on a project and i want to use picoscope 5444B AWG in matlab however, from the examples in "picotech-picosdk-ps5000a-matlab-instrument-driver", i cant seem to find a way to display any siganal in matlab. In addition to that, i cant find a way to control the channels despite going through the programmers guide (each edit gave me errors) (in the end, i want to create an AWG function in matlab).

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

Re: PicoScope AWG in matlab.

Post by NeilH »

Hi

In MATLAB you have to use the functions from the programmer's guide to control the scope, there isn't a GUI available to MATLAB.

What exactly are you trying to do in MATLAB?

Neil
Neil
Technical Support Engineer

1610769038
User
User
Posts: 9
Joined: Fri Jul 03, 2020 6:39 am

Re: PicoScope AWG in matlab.

Post by 1610769038 »

Hello Neil,
I'm trying to create a function for the Arbitrary waveform generator. and call it in the main program (unfortunately im not able to attach pictures). However, i'm not sure how to initialise the ps5000aEnuminfo beacause when i run the code i get an error. My end goal is to make it work and build an app to use in my experiments.
Last edited by 1610769038 on Fri Aug 21, 2020 6:25 am, edited 1 time in total.

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

Re: PicoScope AWG in matlab.

Post by NeilH »

Can I check whether this error is occuring when running it in the main workspace or if it is in an app?
Neil
Technical Support Engineer

1610769038
User
User
Posts: 9
Joined: Fri Jul 03, 2020 6:39 am

Re: PicoScope AWG in matlab.

Post by 1610769038 »

The error is in the main workspace because i don't know to which value i should initialise Ps5000aEnuminfo since the fuction is depending on it.

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

Re: PicoScope AWG in matlab.

Post by NeilH »

The PS5000aConfig script loads the ps5000aEnuminfo along with other required items into the main workspace
Neil
Technical Support Engineer

1610769038
User
User
Posts: 9
Joined: Fri Jul 03, 2020 6:39 am

Re: PicoScope AWG in matlab.

Post by 1610769038 »

Solved thanks. :D

Post Reply