Data type of State Machine outputs

Hello

I’m using State Machine block in PLECS Model to control the switches. However there is no possibility to specify the type of state machine outputs, and it seems they are floating point type.

This is not convenient for code generation - I would like them to be boolean, therefore my question - is it possible to specify the type of outputs of state machine?

As you identified, the State Machine outputs are always floating point type. At this time you cannot configure the outputs to have a different data type. You can cast the output signals to bool in your schematic using the “Data Type” block, although I recognize that is not optimal for code generation.