Design and Programming of a Multifunctional Device for Accelerator Beam Profile Measurement and Beam Stop | Synapse