Demo runs rather better if exported as a Flowcode app....
Martin
Implementing a non blocking delay
-
mnfisher
- Valued Contributor
- Posts: 1824
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 153 times
- Been thanked: 861 times
-
chipfryer27
- Valued Contributor
- Posts: 1877
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 409 times
- Been thanked: 633 times
Re: Implementing a non blocking delay
Hi
Further to all above, I used DSP to delay so unless you are using v10 / v11 or have a DSP license you won't be able to run. Good time to upgrade to v11 then....
This seems to simulate OK and the output reflects input after x-seconds. So if the delay was three seconds and the button was pressed for one-second, after the delay the output would be on for one-second. Similarly if it was on for 300mS then after the delay it would be on for 300mS.
Not quite got the hang of Delay Array but that is probably due to me not having enough practise with it, so here, there are three seperate in / delay / out components, one for each channel.
Didn't use much memory either.
I would need to test in hardware to check the delay is three seconds, and I have just assigned whatever as inputs / outputs.
I think perhaps something like this or the counter comparison approach documented in posts above might be the way. Thoughts?
Regards
Further to all above, I used DSP to delay so unless you are using v10 / v11 or have a DSP license you won't be able to run. Good time to upgrade to v11 then....
This seems to simulate OK and the output reflects input after x-seconds. So if the delay was three seconds and the button was pressed for one-second, after the delay the output would be on for one-second. Similarly if it was on for 300mS then after the delay it would be on for 300mS.
Not quite got the hang of Delay Array but that is probably due to me not having enough practise with it, so here, there are three seperate in / delay / out components, one for each channel.
Didn't use much memory either.
I would need to test in hardware to check the delay is three seconds, and I have just assigned whatever as inputs / outputs.
I think perhaps something like this or the counter comparison approach documented in posts above might be the way. Thoughts?
Regards
- Attachments
-
- Delay_byte_3.fcfx
- (32.83 KiB) Downloaded 4 times