Bldc needs square wave current ideally. So how to set this kind of waveform in current excitation? I tried to use pwl function but I don't know how to vary it for each phase and also how to assign it properly. It would be very helpful if you could explain how to assign current excitation correctly for bldc motor. This is where my confusion exists. Thanks in advance.