ΣSigmaStudio Ask AI Русский Log in

Signal Detect alg. trigger time value format

SigmaDSP & SigmaStudio Brettcoupe Oct 15, 2014 00:00 2 replies Original on forum ↗
Subscribe
Brettcoupe Question
Oct 15, 2014 00:00

Hi does anyone know what format the TRIGGER TIME is in for the SS LevelDetectors/Signal Detection block

ie the one below

https://wiki.analog.com/resources/tools-software/sigmastudio/toolbox/leveldetectorslookuptables/signaldetectionhttp://

the Minimum is 2secs and the max is 200secs

2 secs = 0.999942183494568 (as shown is the capture window)

3 secs = 0.999961495399475

4 secs = 0.999971151351929

I am trying to create a function that generates the value need from the Time required. ie "float convert_time(int secs)"

Any help really appreciated

Thanks

Brett

ADIApproved Reply
Oct 15, 2014 00:00

HI Brett:

If I'm not mistaken the mechanism uses a counter that starts at zero when looking at the number as an integer value. Where for every counter you add 1 to a 28.0 number. So depending on your sampling frequency, you can calculate the value you need to write to achieve a given time.

Let me know if this helps.

Miguel

Brettcoupe Reply
Nov 14, 2014 00:00

Hi MigCha

Sorry been away

yes that calculation works out approximatly correct.

They did say that its not exactly the time specified.
Thanks

Brett