a simple model is attached.
when I coder the model without datatype block, it happens "Error during signal evaluation in component 1/FET1: This switch must be controlled with a Boolean signal. If the control signal comes from a PWM Capture, consider replacing this switch with a suitable Power Module in "Sub-cycle average" mode."
why?
Is there other ways that make it work expect using datatype?
thanks