Page 1 of 2
App Developer Perfect delay, but not stable Interrupt
Posted: Wed Mar 31, 2021 3:57 pm
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
- delay_irq_2021-03-31_16-42-59.png (103.81 KiB) Viewed 4811 times
Re: App Developer Perfect delay, but not stable Interrupt
Posted: Wed Mar 31, 2021 5:25 pm
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
Re: App Developer Perfect delay, but not stable Interrupt
Posted: Thu Apr 01, 2021 11:15 am
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
Re: App Developer Perfect delay, but not stable Interrupt
Posted: Fri Apr 02, 2021 9:45 am
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.
Re: App Developer Perfect delay, but not stable Interrupt
Posted: Tue Apr 06, 2021 10:23 am
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 (20.22 KiB) Viewed 4744 times
Re: App Developer Perfect delay, but not stable Interrupt
Posted: Tue Apr 06, 2021 5:39 pm
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.
Re: App Developer Perfect delay, but not stable Interrupt
Posted: Tue Apr 06, 2021 6:32 pm
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
- time_event_2021-04-06_19-19-53.png (97.25 KiB) Viewed 4726 times
Re: App Developer Perfect delay, but not stable Interrupt
Posted: Tue Apr 06, 2021 9:33 pm
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.
Re: App Developer Perfect delay, but not stable Interrupt
Posted: Wed Apr 07, 2021 10:08 am
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 (58.7 KiB) Viewed 4708 times
Re: App Developer Perfect delay, but not stable Interrupt
Posted: Wed Apr 07, 2021 12:11 pm
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?