From: Daniel Ragonesi on
Can I send a command through RS-232 only when the program stops? I need to send a command to stop data flow.

I currently do a similar thing to start the data flowing. I need to send the command once at the beginning. To do this I have the command connected to a switch block. The middle switch in connected to a 0 'Constant' block through a 'Send Command Once Block'. The bottom of the switch in connected to a 'Ground'.

Is there any way, possibly using CallBack StopFcn to send a command at the end?

-Dan Ragonesi
University of Delaware