I came across an issue while programming using the Python SimConnect interface library.
The command:
event_to_trigger = Event(b'TURBINE_IGNITION_SWITCH_SET1', sm)
event_to_trigger(2)
Works fine and the switch moves accordingly. The variable is K:TURBINE_IGNITION_SWITCH_SET1 requires one value.
However, when dealing with a K variable that requires two values the program crashes, K:ELECTRICAL_BUS_TO_CIRCUIT_CONNECTION_TOGGLE variable for example.
If I try:
event_to_trigger = Event(b'ELECTRICAL_BUS_TO_CIRCUIT_CONNECTION_TOGGLE', sm)
event_to_trigger(11, 1)
It catches an exception and crashes.
Is there any way to pass two values for a K variable? Passing them in a row didn’t work (two separate event_to_trigger commands with different values).