App Developer Perfect delay, but not stable Interrupt

Discuss PC Developer and Web Developer projects and features here.
stefan.erni
Valued Contributor
Posts: 738
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

App Developer Perfect delay, but not stable Interrupt

Post by stefan.erni »

Hi Steven

I wrote a small App to check delay time and Interrupt time.
The delay is really nice. For 1 Sec I get 1000mSec. Not so good is the Interrupt. I get a lot of different times so I checked 5 times the value.
Each value should be 1000mSec and all together 5000mSec.


regards

Stefan
FC9_simple delay_test_milisec_2.fcsx
(44.04 KiB) Downloaded 164 times
delay_irq_2021-03-31_16-42-59.png
delay_irq_2021-03-31_16-42-59.png (103.81 KiB) Viewed 4743 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: App Developer Perfect delay, but not stable Interrupt

Post by medelec35 »

Hi, Stefan.
I would defiantly not use an interrupt with App Developer.
There is a much more accurate way to obtain time delays.
Take a look at this topic
Martin

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer Perfect delay, but not stable Interrupt

Post by stefan.erni »

Hi Martin

Thank you for your info
I just tested both command icon, how exactly these work in the App developer. When I tested the delay, I wanted to know how many milliseconds of deviation it has. When I tested the interrupt, I wanted to know what frequency deviation it has. Since I noticed that the frequency very strongly wobbled with +-20%. This does not make it possible to determine the frequency. This interrupt works well on my computer and otherwise and I need it for the DSP components. These DSP components don't care if the interrupt wobbles . :) The DSP components still deliver the correct values and filter works correctly (maybe). Only if I control the recording duration and sample rate I get strange result. I hope there is a way to make the interrupt in the App developer stable

regards

Stefan

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: App Developer Perfect delay, but not stable Interrupt

Post by Steve-Matrix »

Hi Stefan,

I've made a note to investigate this, but I have a few other priorities at the moment and so I don't expect this to be fixed soon. So for now you may need to find an alternative way of timing if the interrupt method is not suitable for you.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer Perfect delay, but not stable Interrupt

Post by stefan.erni »

Hi Steve, Hi Martin

I suspect there is no other way to trigger an interrupt in the App Developer
At the moment I can work with the timer interrupt with a tolerance of + -20%. Thank you that this little problem is on the to do list

regards

Stefan
irq_2021-04-06_10-57-16.png
irq_2021-04-06_10-57-16.png (20.22 KiB) Viewed 4676 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: App Developer Perfect delay, but not stable Interrupt

Post by medelec35 »

Hi, Stefan.
Is the Timed Event trigger not suitable for you?
That acts the same as an interrupt as at the pre-set time of 1 second for example, it keeps trigging a call macro, regardless.
Depending if Auto Reset is enabled or not.

Currently the minimum time duration is 1 second.
Martin

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer Perfect delay, but not stable Interrupt

Post by stefan.erni »

Hi Martin

I like your idea.

So I included the time event trigger in my test. But that acts the same as an interrupt!
Varible result and instead of 1000 milliseconds sometimes only 578 milliseconds

I am not sure if I did all this test correct. But it cannot be compared with a Swiss watch :)

regards
Stefan
FC9_simple delay_test_milisec_2.fcsx
(51.06 KiB) Downloaded 163 times
time_event_2021-04-06_19-19-53.png
time_event_2021-04-06_19-19-53.png (97.25 KiB) Viewed 4658 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: App Developer Perfect delay, but not stable Interrupt

Post by medelec35 »

Hi Stefan,
Try the attached.
The time will count every second from -5
Use a stopwatch and start it as soon as seconds reach 0.
Leave for a period of time, e.g half an hour.
Then compare stop watch with the time elapsed on the display.
Attachments
Timed Event Trigger Seconds Test.fcsx
(17.09 KiB) Downloaded 171 times
Martin

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer Perfect delay, but not stable Interrupt

Post by stefan.erni »

Hi Martin

With your program everything works fine, I let it run about 94 minuten (still running) and less than 1 second difference
So I will check whats wrong on my stuff.

regards and thank you

Stefan

_stop_stopwatch_2021-04-07_10-43-48.png
_stop_stopwatch_2021-04-07_10-43-48.png (58.7 KiB) Viewed 4640 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: App Developer Perfect delay, but not stable Interrupt

Post by medelec35 »

Hi, Stefan.
I'm glad my example is working for you.
Accuracy for Timed event component is on the nose.
Thanks for the update.
Do you believe a higher resolution than 1 second would be required?
Martin

Post Reply