Output is Error as floating

Using C block, i write a code and generate the repeated pulse for the same. But when i was connected to bidirectional switch, error was gate node is in floating…

This is an easy problem to fix. You need to use the on/off switch controller to drive any of the switches in PSIM. You can find this element in ‘Elements->other-switch Controller’, it looks like a little triangle.

For more information about the interface between power circuits and logic circuits please consult section 8.1.3 ‘Interface between Power and Control Circuits’ in the user manual.