Signal Detect alg. trigger time value format
Hi does anyone know what format the TRIGGER TIME is in for the SS LevelDetectors/Signal Detection block
ie the one below
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
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
Hi MigCha
Sorry been away
yes that calculation works out approximatly correct.
They did say that its not exactly the time specified.
Thanks
Brett
Please log in to reply.