Effacer les filtres
Effacer les filtres

How to increase acquisition frequency in real time? (TI Board F28379D)

17 vues (au cours des 30 derniers jours)
Jesse Paixao
Jesse Paixao le 18 Août 2017
Hello,
I'm using the TI Board F28379D with Simulink to make an acquisition of sinusoidal signal of 100Hz as frequency. Firstly, I try just to create just a signal with a sine wave block and send the signal to an scope to visualize using the external mode. I used a acquisition frequency of 10 kHz that should be sufficient, but when I'm using the external mode I haven't this acquisition frequency . I tried to use the serial communication without the external mode, but the result is similar.
Here the signal obtained using the external mode.
Anyone have a suggestion how to visualize this kind of signal?
Any help will be very appreciated.
Jessé Augusto
  1 commentaire
Hassan Abouobaida
Hassan Abouobaida le 15 Avr 2020
I have a 20kHz frequency signal, I want to sample it at a frequency of 2MHz (100 samples per period), is it possible with DSP cards? if not, what is the appropriate solution in this case?
Thank you

Connectez-vous pour commenter.

Réponse acceptée

Antonin
Antonin le 22 Août 2017
Hi Jessé,
In your previous post , you had set the SCIA baudrate to 9600, which is used for External mode. Make sure to increase the SCIA baudrate for better external mode performance. If using serial over USB, you can go up to 6 Mbps with any value, or exactly 9Mbps or exactly 12 Mbps. On the Launchpad, we can make it work with a desired baudrate of 12e6, though the closest achievable shows as 12.5e6. For some reason the controlCard is less permissive, by lowering the main CPU clock to 192.5 MHz we can achieve serial communication at 12.0313 Mbps on the controlCard, which works good for External mode.
Straight External mode allows you to watch signals at 5kHz (attached example: Extmode_straight.slx), you can try a higher frequency, but you will start seeing data drops. By buffering the data and putting the scope in a lower rate group, you can watch signals at 50kHz without data drops, which is what I show in the attached Extmode_buf.slx, I'm using the buffer block from the DSP System toolbox for that.
I hope it helps,
Cheers,
Antonin.
  5 commentaires
balapanuru obulapathi
balapanuru obulapathi le 31 Jan 2020
Error in 'Buck_closed_test/PI_Controller_ISR/Buffer': All sample times must be discrete. No continuous or constant sample times are allowed.
Hassan Abouobaida
Hassan Abouobaida le 8 Août 2020
Hello, thank you Antonin for your precious help.
To show the validity of the proposed method (in the External mode) and the possibility of acquiring a signal that can reach 50kHz, please insert in the examples you gave an analog to digital converter?
On the other hand, I find the following contradictions:
1- the frequency setting (Oscillator Clock) is 10 MHz then you have set 20 MHz
2- In another station, the recommended frequency for the communication between the COM port of connection between the DSP card and the Host PC is 115200b / S then you put 12Mb / s !!
Thank you
hassanabouobaida@gmail.com

Connectez-vous pour commenter.

Plus de réponses (1)

Venkatesh Chilapur
Venkatesh Chilapur le 20 Mar 2019
Hi Jessé/Taimur,
You can use the 2 model approach when running computation intensive algorithms at high sample rate for data logging. We ship few examples that are based on this approach for data logging/streaming which is an alternate to the external mode.
Please check out the section 'Fast Serial Data Monitoring' at following page:
There is also a video talking about the same at:
For operation details of the 2 model approach please check the following posts:
Hope this helps,
Regards,
Venkatesh C

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by