in short, my Matlab-program is suppose to control an electric machine (Not feedback-controlling) and it should be compatible with both delta and wye connected machines. (manual switch managed by the user)

At first it asks the user for a requested rms stator current. From there it transform it into dq-current and calculates the dq-voltage and does a Park and Clark inverse transformation to get the equivalent phase voltages.

Questions are as follows:

1)How should I interpret the given voltage?

-By now, I've interpreted that as the respective line-to-neutral voltage, by that I mean the voltage in each line independent of the load and the other lines.

2)If my interpretation of the voltage in question one is true then, is there a factor difference of the output voltage depending if the load connection is delta or wye?

-In my head, it shouldn't be, because the line to line voltages will be different for delta and wye because of the structure, right? Then again, by this time I've read too many articles about this topic without getting any clarification and my head can't be trusted.

3)If the voltage is straight up stator voltage, which also makes sense somehow, what's the factor difference going from delta to wye connected load?

Attached to this thread is pictures of my program to maybe help clarify exactly what my problem is. If additional clarification is needed, let me know.

Thanks in advance

Regards,

Oivind Harket Bakke

1)Matlab model. Don't mind the epsilon, I only simulate. The vorsteuerwinkel is set to an arbitrary number for simulation purposes only. (Id gets a value)

2)My calculated RMS line voltage.

3)First harmonic of the first line voltage filtered out. Correspond to rms voltage of [2].