How can I make it illegal to send commands to any undefined subaddress using BusTools/1553-API?

This is a basic example program that sets up a simple RT Simulation. It simulates RT1 with two subaddresses: SA1 RECEIVE and SA2 TRANSMIT.

All other subaddresses are illegal. For commands to illegal subaddresses, the RT will respond with the MESSAGE ERROR bit set in the status word, and if it was a TRANSMIT command, the RT will not send any data words.

Download this example by clicking the attachments link on the right.