Is it possible to check the status of an output?

I know I am able to use EnvironmentManager.Instance.SendMessage to both activate and deactivate a output in Milestone from my code. Is it possible to check the current state of an output from my code as well to know if it is currently activated or not?

You can use “MessageCommunication.ProvideCurrentStateRequest” and “MessageCommunication.ProvideCurrentStateResponse”.

You can see this used in the StatusViewer sample where it is used at startup.