You are talking about a behavior of a software button, but then mention hardware (cRIO). Is this a physical button connected to a digital input or a software button on the front panel of the User interface.
Assuming the UI runs on a PC that communicates with the headless cRIO code, I don't understand the questions. Can you describe the entire software architecture?
Of course any mechanical action (any!) can be emulated in software in the same way LabVIEW does it under the hood. Can you explain in a few more words what's running where, how the user interacts with the code, and what should happen in response?