• 0
Sign in to follow this  
PhilippeN

Data acquisition with Analog Discovery 2

Question

Hello

For a project I have to analyze two analog signals at a frequency of 78.4 kHz. Sampling rate must be at least 1 MHz.

I have a Analog Discovery 2, I generate for now a signal square of 100kHz.

I can observe this signal but only on a few periods. I wish I could get them back on a spreadsheet excel in order to treat them with Matlab. I can get a spreadsheet excel, but only with 8000 values, or I would need 1M values.

Is it possible with a Analog Discovery 2 ?

Edited by PhilippeN

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 1

Hi @PhilippeN,

You can use the Record Mode in WaveForms to take a set of samples at the sampling rate you are hoping for. There are some more details on how to do this on this thread here:

Let me know if you have any questions about this.

Thanks,
JColvin

Share this post


Link to post
Share on other sites
  • 1

Hi @PhilippeN

Note that the recording ensures continuous capture, the repeated/separate captures are sporadic.
In case the 10M samples limit of the WF application is not sufficient, you can use the WF SDK to capture more data.
See: C:/Program Files (x86)/Digilent/WaveFormsSDK/samples/py/ AnalogIn_Record.py

Share this post


Link to post
Share on other sites
  • 0

Hi,

I tried to record it but I don't think that it is the best option. 

For now, the option which is the better for me is in Scope, Repeated Mode. I want to start recording when the power of reception is big enough. Here when the input voltage is up to 2V. And to stop when the signal is ended.

I analyze a beacon message which is 1s message. I achieve to have 130 txt files with the integrality of the message but not in just one file. 

(1s message at 1MHz = 1 M values, so 122 files of 8192 values)

 

I don't think the recording mode is a good solution because I want to let the program run during minutes.

 

Thanks,

 

Philippe

 

Here is the code in the Scope script 

ch = Scope.Channel1
if(ch.measure("Maximum")>2 || Index<130){
Scope.Export("C:/Users/philippe/Documents/Projet/Acquisition/acq"+Index+".txt")
Index++
}

 

Share this post


Link to post
Share on other sites
  • 0

Hi @attila,

10M samples would be enough but I think that I can't let the Record Mode runing durint minutes and waiting the data message. I would like to automatically run it when the voltage is big enough. It works with the Logging option in Repeated Mode in the Scope but only with files of 8192 samples.

I saw the different samples programs but how dit it works ? I can't use it in the script mode in WF ? 

It is just a program which uses the Analog Discovery, isn't it ?

 

Thanks

Edited by PhilippeN

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
Sign in to follow this