Hi... Again, I have made some more tweaks... I've added capacitor over-rates, and I've also fixed many NPN transistor over-rate bugs. I added maximum power dissipation for transistors as well (however, I'd like someone else to review that I'm doing it correctly)
One thing I added to capacitors (only fixed capacitors at the moment, maybe variable caps soon) was a polar setting, and a maximum working voltage setting. If the capacitor is polar, then it cannot tolerate more than 2.5 volts backward. (This might be a setting later, but at the moment it's fixed.) If working voltage is exceeded, or the capacitor is run in reverse (when it is polar) an over-rate warning is shown. I also added charge (coulombs), energy (joules) and volts to the tooltip for the capacitor. See screenshot: http://files.getdropbox.com/u/1134084/CapOverRateAndCharge.png I will try to post a patch (and it will be a big patch, because a lot had to be changed to accommodate these additions, which makes KTechLab a more useful program for me, and hopefully others) based on current SVN soon. Tom > Hi again, > > Well, after a lot of fiddling, I actually made a pretty good amount of > progress. I've added tooltips to BJTs informing you if you overrate them > and what specifications have been overrated. > > See screenshot: > http://img268.imageshack.us/img268/934/overnpn.png > > Work needs to be done on separating parts of the drawing code from > calculation code, as it's still a big hack. Then applying it to other > components like ICs, capacitors, and resistors. Finally I need to figure > out how to post a patch, because I haven't really kept track of files I > changed. (Though my editor, KDevelop, leaves backup files like 'main.c~' > which is useful in seeing which files have been modified.) > > I have made a modification which lets components set their own tooltips. > At the moment these tooltips are all, by default, set to the component > name. I was thinking of adding useful info like power dissipation, charge > in a capacitor, etc. to the tooltips. Any other ideas? > > Tom > >> Nice! I'm not a coder, but I love that feature! >> >> tho...@tgohome.com wrote: >>> I have added a feature, just to BJTs at the moment (but I'm planning >>> resistors, capacitors and most ICs soon), which warns you if you >>> overrate >>> the device. The problem being at the moment, is all it does is show an >>> exclamation mark next to the device. >>> >>> I am trying to figure out how to warn the user of the specifications >>> which >>> have been overrated. Any ideas? I was thinking of a tooltip. But how >>> could >>> this be done? Any implementation ideas? >>> >>> See pic for what has been done so far: >>> http://img14.imageshack.us/img14/5653/ktechlaboverratednpn.png >>> >>> If anyone wants the code they can have it, but it is very messy and >>> probably breaks many standards about mixing display code and >>> calculation >>> code... >>> >>> Tom >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Ktechlab-devel mailing list >>> Ktechlab-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/ktechlab-devel >>> >>> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Ktechlab-devel mailing list >> Ktechlab-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/ktechlab-devel >> > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Ktechlab-devel mailing list > Ktechlab-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ktechlab-devel > ------------------------------------------------------------------------------ _______________________________________________ Ktechlab-devel mailing list Ktechlab-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ktechlab-devel