• 0
QuaternionGang

Can I control the voltage output of an Analog Discovery 2 via MATLAB

Question

I wish to use the Analog Discovery 2 as a power supply for a set up which will involve variable currents through a helmholtz coil configuration in order to model the Upper Atmosphere's Magnetic Field. I will be running a real time model in Simulink that will contain values of the magnetic field in several directions. I have the coils set up so that a known current, and thus voltage, should be able to create the magnetic field in the center, which will be detected by a magnetometer. I would like to send the Simulink values to the Analog discovery to alter the voltage output of the Analog Discovery accordingly so that the current in the coil setup can vary in real time, thus spoofing the magnetic field for the magnetometer. Is this something that is possible with the Analog Discovery 2.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi @QuaternionGang

I just notice the Analog Discovery 2 is also supported by MatLab.
https://www.mathworks.com/hardware-support/digilent-analog-discovery.html

Unfortunately I don't have MatLab installed to try it out.

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.

 

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