Hello,
I modified a phase shift dcdc demo file (mostly just took out the custom magnetic model and changed turns ratio) and am trying to run the simulation, but keep getting a zero order hold terminal mis-match error. Looking at the relevant blocks (which were also unchanged), I can’t find an issue. The input and output to the ZOH both look like they should be scalars.
Any suggestions?
Image attached.
The issue is telling you that one of those signals is a vector of width 2. If the blocks are unchanged, perhaps the inputs to the blocks are changed or a parameter is now a vector instead of scalar.
A useful debugging technique is to disconnect the ZOH block, disabling the error message. From there you can add Scope/Probe blocks to observe the width of the signals and zero-in on where the problem was introduced.