Relays status in SITL

Hi all,
Is it possible to monitor the relays’ status in the SITL, Plane?

In MissionPlanner I’m using a way point with DO_SET_RELAY 1 1
and I’m monitoring ch9_out

and tried the following configurations but failed:

1- RELAY_PIN = 50 (AUXOUT1)

2- RELAY_PIN = 50 (AUXOUT1)
SERVO9_FUNCTION = 59 (RCIN9)

3- Same as 2 but set:
BRD_PWM_COUNT = 0 (no PWMs)

4- Same as 2 but set:
BRD_PWM_COUNT = 4 (4 PWMs)

Any help?

https://github.com/ardupilot/ardupilot/blob/master/Tools/autotest/apmrover2.py#L470

Hi Peter,
Thanks for your reply.
According to the code you sent, I tried also:
DO_SET_RELAY 0 1
But with no changes in all chxx_out

Did the SIM_ mask change?

Sorry, what’s the SIM_mask?
I’m a newbie in Ardupilot

Read through the test carefully. The way the simulation indicates the
status of the relays is via a magically-updated-parameter (don’t blame me,
it was like that when I got here :wink: )