41 Electric Circuits - Reloaded
|
06-19-2014, 03:46 PM
(This post was last modified: 06-20-2014 08:39 AM by Ángel Martin.)
Post: #1
|
|||
|
|||
41 Electric Circuits - Reloaded
Like me, you may have also missed the excellent article in the old forum by Guillermo Castarés with programs to solve electric circuits:
http://www.hpmuseum.org/software/41/41elcirc.htm The approached he followed was remarkable in two aspects – first it had a precise usage of the PVT routine from the Math Pac using complex matrices; which wasn’t documented at all in the flimsy manual that was provided with that module. More interesting was his idea of using ASCII files to define the circuit topology: type, elements, values, etc. This approach allows a very effective use of the system capabilities, without the need to re-enter all data each time allowing quick what-if scenarios for component value changes. Not to mention that you could build up a library of circuits in X-memory very nicely. For example, these are the files for the Math Pac and the Advantage Pac manuals (Remember student “AC Dimmer”?), listed with their respective solutions. Code:
I’ve taken the opportunity to update the program, replacing the PVT call with the much faster MSYS in the Advantage Pac (or in the SandMatrix, of course); an splendid example of the MCODE advantages. And to round up the task a new data-entry program is also provided, which builds the ASCII file from the scratch in an interactive way just entering the information in the prompts. The new data-entry program “EEE” is completely independent, and its end result is an ASCII file to use as input for “EEA”, the circuit solver program. Raw files are attached if you want to take them for a spin. Note that they use functions form the AMC_OSX module for a more convenient UI – but you can replace them with those in the CCD with the same names. Code:
Modified EEA Program follows - maintains the same logic as the original to read the circuit file and create the system matrices, only slightly modified the data output routine to account for the differences between PVT and MSYS. Refer to the original article for user instructions and documentation. Code:
Hope you enjoy it - Many thanks to Guillermo for the original contribution! "To live or die by your own sword one must first learn to wield it aptly." |
|||
01-24-2018, 01:43 PM
Post: #2
|
|||
|
|||
RE: 41 Electric Circuits - Reloaded
Hey,
i am trying to bring this on my calculator. Two questions: in the EEA program, there are some lines with "E", for example Line 77: E3. is this "1E3", as in 1 EEX 3? Also in line 92, there is a single "E". is this the EEX key, and if so why do you use it in this place? secondly, the EEE program uses "PMTK" and "PMTA". I guess these are CCD module functions. is there a good way to replace them with standard, advanced, or ex.func functions? thanks! |
|||
01-24-2018, 02:49 PM
Post: #3
|
|||
|
|||
RE: 41 Electric Circuits - Reloaded
(01-24-2018 01:43 PM)damaltor Wrote: in the EEA program, there are some lines with "E", for example Line 77: E3. is this "1E3", as in 1 EEX 3? These are synthetic commands, which are both shorter and faster than the 'normal' version of their respective commands, but otherwise functionally the same. You can enter them the normal way and the program will work the same. E3 is the same as 1.00E3 ([1] [EEX] [3]), E is 1.00E1, etc. Any of the normal synthetic resources can explain how to create these commands, but likely it's not worth the effort (though it is fun). --Bob Prosperi |
|||
01-24-2018, 04:30 PM
(This post was last modified: 01-24-2018 04:32 PM by Massimo Gnerucci.)
Post: #4
|
|||
|
|||
RE: 41 Electric Circuits - Reloaded
(01-24-2018 02:49 PM)rprosperi Wrote:(01-24-2018 01:43 PM)damaltor Wrote: in the EEA program, there are some lines with "E", for example Line 77: E3. is this "1E3", as in 1 EEX 3? E is 1E0=1, methinks Greetings, Massimo -+×÷ ↔ left is right and right is wrong |
|||
01-24-2018, 08:04 PM
Post: #5
|
|||
|
|||
RE: 41 Electric Circuits - Reloaded
(01-24-2018 04:30 PM)Massimo Gnerucci Wrote:4(01-24-2018 02:49 PM)rprosperi Wrote: E is 1.00E1, etc. Youthinks correctly, my mistake. E = 1E0 = [1] [EEX] [0]. Sorry 'bout that. --Bob Prosperi |
|||
01-26-2018, 08:20 AM
(This post was last modified: 01-26-2018 08:21 AM by damaltor.)
Post: #6
|
|||
|
|||
RE: 41 Electric Circuits - Reloaded
Ok, great. Thank you very much.
I had a second problem: I could not get the command MSYS into barcode form with the barcode generator at http://rwiker.github.io/hp41barcode/# because the command was not recognized. after looking through the source code of the barcode generator, i found out that the command was coded as MSVS instead of MSYS. i wondered why that would be the case, and found that the error is already present in the "official" xrom code list: http://www.hpmuseum.org/software/xroms.htm after googling around i found that spelling error in some other locations too, probably picked up from the hpmuseum xrom list. i wonder why that mistake was never found? i will replace the synthetics with the "usual" commands, thats fine for me still, how about PMTK and PMTA and such? as far as i recognize they are just alpha mode addons, which probably arent even really needed for the program to run and can be replaced by simpler commands, but if there are known direct replacements i would be happy to use them. |
|||
11-28-2018, 07:39 PM
Post: #7
|
|||
|
|||
RE: 41 Electric Circuits - Reloaded
Hello Ángel Martin and everybody.
I'm here again after several years and I just discoverer your kind words about my old electric circuit program. Happy that someone found it interesting or useful. Thanks a Lot. You did my day! Regards. Guillermo Castarés |
|||
12-11-2018, 10:26 AM
Post: #8
|
|||
|
|||
RE: 41 Electric Circuits - Reloaded
(11-28-2018 07:39 PM)morex Wrote: Happy that someone found it interesting or useful. It's great to have you back, many thanks again for sharing your original work. Saludos, ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)