I'm now looking for way to use this board as ADC board.
I'd like to use synchronized 4 analog inputs at the rate of 100 kHz.
The spec of this says slow AI works up to 100kHz, however, there are no setting for this rate.
How can I ensure the sampling rate of the slow AI?
I saw some examples of rate setting for IN1 and IN2 as ACQ, but not for slow AIs.
Also checked SCPI command list, but there are no setting command for slow AI sampling rate.
http://archives.redpitaya.com/devel/SCP ... elease.pdf
Realtime (Periodic) Input from Slow AI ports
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: Realtime (Periodic) Input from Slow AI ports
The 4 channels of the slow ADC are set to work at a fixed rate of 100kHz each, there is no configuration option to change it.
It is a bit difficult to actually read the samples at the correct rate, as they are not buffered. If you don't read a sample before a new one is acquired, it's gone. If you read too fast, you'll get the same sample twice (or more).
It is a bit difficult to actually read the samples at the correct rate, as they are not buffered. If you don't read a sample before a new one is acquired, it's gone. If you read too fast, you'll get the same sample twice (or more).
-
- Posts: 3
- Joined: Thu Apr 14, 2016 9:52 am
Re: Realtime (Periodic) Input from Slow AI ports
Thank you for helpful information.
I understand the point.
So if I want to read it correctly (meaning, no loss and no duplicate), what would be options besides polling it at correct rate?
Is there any interruption for it or some method to make buffer?
I understand the point.
So if I want to read it correctly (meaning, no loss and no duplicate), what would be options besides polling it at correct rate?
Is there any interruption for it or some method to make buffer?
-
- Posts: 1
- Joined: Tue Mar 09, 2021 12:05 pm
Re: Realtime (Periodic) Input from Slow AI ports
Digging out this thread, because I'm also interested in the answer how to make use of the slow ADCs. I saw the Interrupt output from XADC is connected to the PS (v0.94 Project), so maybe there is a way to see if a new sample is ready? I didn't find the purpose of this connection in the documentation nor the files.
cheers
Urs
cheers
Urs
- redpitaya
- Site Admin
- Posts: 902
- Joined: Wed Mar 26, 2014 7:04 pm
Re: Realtime (Periodic) Input from Slow AI ports
Please note that the slow inputs initial idea was that it is used for monitoring and not for data acquisition, rather for monitoring.
The data is slower and multiplexed by FPGA, it doesn't have buffer functionality or for example triggering.
The data is slower and multiplexed by FPGA, it doesn't have buffer functionality or for example triggering.
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 40 guests