Page 1 of 1

Rds text and sleep function

Posted: 27 Jan 2022 17:09
by Bob Van Dongen
Hello all
Does anyone have a tip or an example how I can program the following in proppfrexx? When I press a button on my D&R Airence, it writes several lines of text to a .txt file with a pause between the lines and then the new line overwrites the old one. I already got this working in the Events & Commands with the Sleep function, but I can set that time to a maximum of 2 seconds and I would like to set it to 30 seconds and 60 seconds, thank you so much for your responses and thinking along

Re: Rds text and sleep function

Posted: 27 Jan 2022 20:59
by radio42
FIRST make sure to start any of these commands with the ASYC command, this to make sure, that the subsequent commands run in their own thread and do not block other commands.
But you are right, today a SLEEP command has a limit (actually 10 seconds currently - I can increase that value in a next version.
So today, you need to add multiple subsequent SLEEP commands, e.g.:

Code: Select all

ASYNC
...
SLEEP 10000
SLEEP 10000
SLEEP 10000
...
SLEEP 10000
SLEEP 10000
SLEEP 10000
SLEEP 10000
SLEEP 10000
SLEEP 10000
...
So where the dots (...) are you can place your text command.

Re: Rds text and sleep function

Posted: 27 Jan 2022 22:46
by Bob Van Dongen
Thank you for your response I will work on this. If it is possible in a new version to extend the sleep function, I would like to hear about it or read it in the update info. good evening

Re: Rds text and sleep function

Posted: 24 Jan 2024 19:17
by radio42
The ASYNC keyword is only recognized if it is the first command. Only then, all subsequent commands are executed in an extra thread in a non-blocking mode.
Ie. it can not be used somewhere in the middle.

Re: Rds text and sleep function

Posted: 01 Feb 2024 15:54
by radio42
I guess you can/must specify this in the RDS text yourself.
As those functions depend on the RDS encoder, which ProppFrexx doesn’t manage.