Find Geiger counter CPM

6 vues (au cours des 30 derniers jours)
Robert
Robert le 14 Déc 2023
Commenté : madhan ravi le 15 Déc 2023
I am trying to find the counts per minute of a geiger counter signal using Simulink.
I managed to get the signal in a digital/binary form shown below:
I want to figure out how many pulses there are in a given timefram (1-3 seconds)

Réponses (1)

madhan ravi
madhan ravi le 14 Déc 2023
Modifié(e) : madhan ravi le 14 Déc 2023
Let A be your Interval test signal in timeseries format. Then
Pulses_1_3secs = nnz(out.A.Data((out.A.Time >= 1) & (out.A.Time <= 3))
  4 commentaires
Robert
Robert le 15 Déc 2023
By the way, I am using Simulink, so the method that you proposed may not work.
madhan ravi
madhan ravi le 15 Déc 2023
The block under sum block in the second pic is *Unit Delay* block.
The first PWM block *Run at fixed interval* is ticked as model runs at fixed sample time.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by