Code for nexsysy3 board as controller board and event creation for controller