I am trying to use matlab to compare bus voltages of different toplogy. I would like to know how I could fix my transformer tap value. For example, set all taps to 1, is there any easy way to do it? Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, there is a way. First, you need to select the windng and then set the tap, for example:
Transformer.XY.wdg=2 tap=1
That will force the tap to 1 at winding 2 for transformer XY. If you want to do it for all the transformers at the same time you can use the "BatchEdit" command.
Best regards
Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks! I used DSS.Text.Command=['BatchEdit Transformer..*wdg=2 tap=1'];
and then used 'show taps' . It still remains as previous tap. Did I do something wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you so much! I finally make it. I used DSSSolution.Solve() and it did not work.
After I changed it to DSSText.Command=['solve'], it works perfectly! Could you give me some hints about those two's difference?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to use matlab to compare bus voltages of different toplogy. I would like to know how I could fix my transformer tap value. For example, set all taps to 1, is there any easy way to do it? Thanks.
Hello,
Yes, there is a way. First, you need to select the windng and then set the tap, for example:
That will force the tap to 1 at winding 2 for transformer XY. If you want to do it for all the transformers at the same time you can use the "BatchEdit" command.
Best regards
Davis
Thanks! I used DSS.Text.Command=['BatchEdit Transformer..*wdg=2 tap=1'];
and then used 'show taps' . It still remains as previous tap. Did I do something wrong?
Hi,
For using batchedit you will have to go property by property, like this:
Also, please disable the contol actions so if you have regulators they will not change the taps. to do it, use the following command;
Let me know how it goes.
Best regards
Davis
I did set control mode off before solve and rewrite BatchEdit acoording to your suggestions and it still did not change tap.
Did you leave the RegControls active and execute a solve command? That will change the taps.
Tom,
Could you share your dss file? I can have a look.
Best regards
Sure. Thank you so much for your time.
I think I got it,
for the batchedit command, leave a space between the * and the property to modify as follows:
I've just tested and it works nice.
Best regards
Davis
Davis,
Thank you so much! I finally make it. I used DSSSolution.Solve() and it did not work.
After I changed it to DSSText.Command=['solve'], it works perfectly! Could you give me some hints about those two's difference?
Tom,
They are the same, there is nothing else behind the property at the solution interface. Anyway, I'm glad it worked.
Best regards
Davis