• 0
pgarde

Setting DC power supply in AD2 from Matlab

Question

Hi,

I'am currently using my AD2 in Matlab 2018b and altough I'm capable of using some functionalities (the ADCs, for ex), I couldn't find a way of setting the power supply. Which, by the way, is doable in Waveforms. Does anyone know how can I set the DC power supply from Matlab?

Thank you in advance for your time!

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @pgarde,

I moved this thread to a section where more experienced AD2/waveform engineers look.  If the MatLab toolbox does not allow you to control the power supplies then I would suggest looking into using the WaveForms SDK to control the Analog Discovery 2.

thank you,

Jon

Share this post


Link to post
Share on other sites
  • 0

Hi @pgarde,

Here is a non-digilent pdf that goes through using the AD2 with MatLab  Here is the MatLab site for using the AD2. Unfortunately, I don't have MatLab nor have used MatLab with the AD2.

In case you need more features than this "Data Acquisition Toolbox support package for Analog Discovery" provides you can use the WaveForms SDK to control the Analog Discovery 1 & 2, Electronics Explorer, Digital Discovery.

thank you,

Jon

 

 

 

 

Share this post


Link to post
Share on other sites
  • 0

Thanks @jpeyron, I've read the articles you pointed but sadly they don't cover how to set the power supplies from Matlab.

The reason why I'm trying to do that is because I have a huge piece of code in Matlab which uses the ADCs and does some post-processing. The only thing I couldn't do was to set the power supply to replace an external source (Although I'm capable of using the scopes and the power supply simultaneously in Waveforms).

Any hint on this will be highly valued.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now