Closed kst-ttt closed 6 years ago
Thank you! I will incorporate it as soon as possible!
Thanks for the fast response.
For the sake of completeness I further have to suggest following two minor changes:
regards KST
circuitSymbols_semiconductors.inx:
Line 104:
<param name="FET_VGSname" type="string" _gui-text="v_GS label (no $...$ needed)">v_{cb}</param>
<param name="FET_VDSname" type="string" _gui-text="v_DS label (no $...$ needed)">v_{ce}</param>
<param name="FET_VDGname" type="string" _gui-text="v_DG label (no $...$ needed)">v_{be}</param>
<param name="FET_IDname" type="string" _gui-text="i_d label (no $...$ needed)">i_e</param>
<param name="FET_ISname" type="string" _gui-text="i_s label (no $...$ needed)">i_c</param>
<param name="FET_IGname" type="string" _gui-text="i_g label (no $...$ needed)">i_b</param>
change default values to:
<param name="FET_VGSname" type="string" _gui-text="v_GS label (no $...$ needed)">v_{gs}</param>
<param name="FET_VDSname" type="string" _gui-text="v_DS label (no $...$ needed)">v_{ds}</param>
<param name="FET_VDGname" type="string" _gui-text="v_DG label (no $...$ needed)">v_{dg}</param>
<param name="FET_IDname" type="string" _gui-text="i_d label (no $...$ needed)">i_d</param>
<param name="FET_ISname" type="string" _gui-text="i_s label (no $...$ needed)">i_s</param>
<param name="FET_IGname" type="string" _gui-text="i_g label (no $...$ needed)">i_g</param>
circuitSymbols.py:
Line 1649:
if drawVGS:
if mirrorEC:
pos = [position[0]+15,position[1]-15]
ang = +45
else:
pos = [position[0]+15,position[1]+15]
ang = -45
self.drawVoltArrowSimple(group,pos,name=VGSname,color=self.voltageColor,angleDeg=ang,
invertArrows=True, size=10.0, invertCurvatureDirection=mirrorEC, extraAngleText=angleDeg)
change arrow position to
if drawVGS:
if mirrorEC:
pos = [position[0]+15,position[1]-16]
ang = +45
else:
pos = [position[0]+15,position[1]+16]
ang = -45
self.drawVoltArrowSimple(group,pos,name=VGSname,color=self.voltageColor,angleDeg=ang,
invertArrows=True, size=10.0, invertCurvatureDirection=mirrorEC, extraAngleText=angleDeg)
line 1679:
if drawIGarrow:
if mirrorEC:
pos = [position[0]-5 ,position[1]-11]
else:
pos = [position[0]-5 ,position[1]+11]
self.drawCurrArrowSimple(group,pos,name=IGname,color=self.currentColor,
angleDeg=0,invertArrows=False,size=7.5,invertTextSide=not mirrorEC,extraAngleText=angleDeg)
change arrow position to:
if drawIGarrow:
if mirrorEC:
pos = [position[0]-5 ,position[1]-9]
else:
pos = [position[0]-5 ,position[1]+9]
self.drawCurrArrowSimple(group,pos,name=IGname,color=self.currentColor,
angleDeg=0,invertArrows=False,size=7.5,invertTextSide=not mirrorEC,extraAngleText=angleDeg)
Thanks again!
Updated version has been uploaded. I decided to not change Ig position. It would be too close to the circuit line. However, I made changes on v{gs}. I changed the distance between the arrow and the text on function drawVoltArrow and changed the orientation from +-45 to +-20 degrees. Now I_g and V_gs are much more spaced apart than before. Unless you use a very long i_g name, I don't think they will overlap now.
Please let me know if the changes suits you.
Yes, this looks much better now...
Thanks again for the fast response.
regards KST
Hi
I added MOSFET support and thought maybe you want the code to include it in you plugin...
regards KST