02-03-2023 04:27 AM
I have to continue on a code made by someone else.
Solved! Go to Solution.
02-03-2023 11:44 AM
Please dear all,
Can you help me?
02-03-2023 01:07 PM
Most of the forum users here contribute their input voluntarily. Don't expect a swift response.
Anyway, I managed to come out with a simple demo for your use case.
Two things to point out:
1. The START and STOP text should be reversed when using the event structure. The button displays START at False value so that the START or TRUE event is generated.
2. The play waveform should be done at a separate while loop so that the code does not have to wait until the end of the music.
02-03-2023 01:36 PM
02-09-2023 08:23 AM
02-09-2023 08:50 AM - edited 02-09-2023 08:58 AM
What remains to be done;When the user clicks on Start and the timer counts down to 5 minutes, I want the timer to restart at zero and count down to 5 and then it should play the first audio.And the second audio starts when after 20 minutes.
The reste of the state machine I can do it
So you want to play the first audio after 10 mins (count down to 5, then restart timer and count down to 5 again)?
And you want to play the 2nd audio after 10 mins?
All you need is a "global" timer that only counts up. When hitting the 10 mins limit you play audio1, when hitting the 20 mins limit you play audio2...
Btw. did you discuss this topic with your co-student Lena?
02-09-2023 09:14 AM