Disable/Enable Communication to an I/O Module via GUI

Hello,

I’m curious if there is a way to disable and enable communications to an I/O module via GUI button? My goal is to press a button I have created to open a GUI, have it enable communications to a particular I/O module, and then start the charts associated to that GUI. I have already made it to where my button opens my desired GUI and starts the appropriate charts, do y’all have an tips on enable/disabling comms to an I/O module? Thank you for your time.

Respectfully,

Chad Story

Can you have the chart enable communication?

That would work. Is there an EnableComm/DisableComm command?

EnableCommunicationToIoUnit and DisableCommunicationToIoUnit

They are under the Simulation Commands.

Thank you sir, I appreciate the intel.