Acquisition with Analog Discovery 2

22 ビュー (過去 30 日間)
Christophe Combaud
Christophe Combaud 2018 年 11 月 19 日
コメント済み: Brian Hu 2018 年 11 月 28 日
Hi,
In order to acquire analog data, I use the Analog Discovery 2 from Digilent. I used the "Data Acquisition Toolbox" and the "Digilent Analog Discovery Support from MATLAB" package.
I achieve to get data in a tab and want to automatically launch the acquisition when the power is high enough. Maybe using a trigger ?
I also can't use the App, my device doesn't appear and the "Refresh" button doesn't change anything.
If someone already used this device can help me !
Thanks

採用された回答

Brian Hu
Brian Hu 2018 年 11 月 26 日
Hi Christophe,
There are a few workflows that you may be interested in looking into. First, make sure that you can detect the Analog Discovery 2 on a separate Digilent software to make sure that your issue is not due to hardware connection. Please also make sure that you have the correct support package for Digilent Analog Discovery Hardware downloaded. I have included the support package in the link below.
After verifying this, you will want to successfully connect to the Analog Discovery 2 device through MATLAB then transmit and receive data. The examples below might be useful for you to get started.
Lastly, if you are interested in launching acquisition when a certain variable reaches a threshold or triggers, you may want to consider using MATLAB callbacks to accomplish this. An alternative would be to have a control for loop within the code that triggers when the power read from the device exceeds your intended threshold. If you are interested in using callback functions, here are a few links that may be helpful.
  4 件のコメント
Christophe Combaud
Christophe Combaud 2018 年 11 月 28 日
I think that the function 'inputSingleScan(s)' may be a solution but how can we launch it when we have the first emission ? Because if we launch it when there is no emission, we will miss others.
Brian Hu
Brian Hu 2018 年 11 月 28 日
Please refer to the following documentations for the current hardware limitations with Analog Discovery devices.
If you want to use a digital trigger, this example might be helpful for you to get started.
Otherwise, you can also try rapidly triggering inputSingleScan until the first signal is read, then follow with startForeground in order to capture data. Like you mentioned previously, there is currently no functionality for startBackground with the device you are using.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by