See How to Work With Lists in the Lists section of FAQ
There are two alternatives to sending a sequence:
- All at once
- One item at a time
I don't know which one fits the device you are connected to.
If you control the programming on both sides,
and if you want to send it all at once,
you might try coding
the sequence all in text using the text JOIN block:
'A3,A1,B1,B3,A1,...'
set lblMessage.Text to JOIN(lblMessage.Text, ',A3') in btnChooseA3
and then in btnSend transmit lblMessage.Text.
If you can only send one item at a time, queue up the text items in a list,
adding new items to the list as their button is pressed,
and sending item 1 when the Send button is pressed.
Arrange for the other device to send a message when it is ready for the next message,
and when the OKAY message arrives,
remove item 1 from the queue,
check if the queue is not empty,
if not empty send item 1
Using a queue simplifies the problem, and lets you only need 1 Clock Timer.
Some examples ...
ABG