Jump to content
  • 0

Data acquisition with MATLAB


Benedetta Talone

Question

Goodmorning, 

I'm using Analog discovery to perform microscopy measurements and I need to acquire data from a photodiode while moving the sample. I developed a basic interface on MATLAB but I'm struggling to synchronize the sample movement with the data acquisition since it takes 1.7 seconds to execute the read() function to acquire data from Analog discovery. 

I tried with start() function to acquire data in background but it gives me this error: "Background operations not supported for Digilent hardware."

It could be a trigger problem, but I'm not able to change it, and if I try it gives me this error: "Unable to set the 'DigitalTriggers' property of class 'DataAcquisition' because it is read-only".

Is there a way to get the acquisition to start immediately, without waiting 1.7 seconds, once you give the read() command?

Thanks a lot for your support,

Benedetta

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi Benedetta, 

As the error stated, the old MATLAB toolbox didn't support background operations with our hardware. 

The Digilent software team has been working on our own MATLAB plugin to support our hardware. This new plugin has improvements and updates to address the limitations found in the current MathWorks created plugin. 

(Including supporting background operations). 

I know this answer is a much past the time of your original question, but we’re looking for users to beta test the plugin. If you are interested in joining this beta, please sign up here —> https://mautic.digilentinc.com/matlab-beta-a-landing-page



Please note: this beta is only open to windows users. 

New functionality included in this beta:

Continued support for Analog Discovery/Analog Discovery 2 devices and added support for Analog Discovery Pro 3000 series

Sample rates are no longer artificially limited

Background operations are now supported (non-blocking operations in MATLAB)

Static IO for digital ports is now supported

Support for WaveForms SDK 3.18

 

Link to comment
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
×
×
  • Create New...