Rds text and sleep function

You have a question or need an advice about how to do something? Ask it here!
Post Reply
Bob Van Dongen
Posts: 43
Joined: 10 Nov 2020 17:36
Rds text and sleep function

Post 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
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Rds text and sleep function

Post 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.
Bob Van Dongen
Posts: 43
Joined: 10 Nov 2020 17:36
Re: Rds text and sleep function

Post 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
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Rds text and sleep function

Post 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.
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Rds text and sleep function

Post 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.

Post Reply