Programming on i41CX+
Posted: Sat May 08, 2021 8:59 pm
I am completely new to HP41CX & it's programming language (does it have an official name?) via i41cx+. I kindly ask for help with the keystrokes for branching which tests alpha characters; I do understand branching when using numbers or data but I have not been able to figure out how to branch with alpha characters. (I would like add that I do not have an engineering or coding background and therefore learned basic programming via the HP manuals. I am a veterinarian an using the i41cx+ (iPhone) for calculating Intravenous fluid rates, constant rate infusions, tricky drug dosing for managing blood pressure etc in an ICU setting).
Knowing that the Prompt command can take alpha input, how does one test the alpha input. For Example this is how far I can get:
Cat ? Y or N?
AON
Prompt
AOFF
ASTO 01
How does one get the x=y command to test the alpha response, either Y or N? If the input is Y, the calculations would be done for cats and if the Input was N, the calculations would be for dog. (Dogs and cat parameter values are different).
Or may be there another to accomplish this type of branching without using alpha characters? I ask this, because these steps could suck a lot of memory. When I view other posts, I see people cutting down on steps to make program so frugal it isn't funny, likely similar to programming the AGC, aka Apollo Guidance Computer where, of course, memory was super limited.
I have gone pretty much done my best to figure this out -- searching programs for examples, reading several HP41* manuals -- before resorting to ask for help on this form. This query is likely 'trivial' for pro-HP41 users, so please be gentle on me for I do feel inadequate for engineers like yourselves have programmed Ingenuity to fly on Mars completely autonomously, send back images and sound (Perseverance recording Ingenuity's rotor blade whirling sound) and I can't figure how to handle alpha character branching sitting at my desk on Earth.
Sincerely, AJ
Knowing that the Prompt command can take alpha input, how does one test the alpha input. For Example this is how far I can get:
Cat ? Y or N?
AON
Prompt
AOFF
ASTO 01
How does one get the x=y command to test the alpha response, either Y or N? If the input is Y, the calculations would be done for cats and if the Input was N, the calculations would be for dog. (Dogs and cat parameter values are different).
Or may be there another to accomplish this type of branching without using alpha characters? I ask this, because these steps could suck a lot of memory. When I view other posts, I see people cutting down on steps to make program so frugal it isn't funny, likely similar to programming the AGC, aka Apollo Guidance Computer where, of course, memory was super limited.
I have gone pretty much done my best to figure this out -- searching programs for examples, reading several HP41* manuals -- before resorting to ask for help on this form. This query is likely 'trivial' for pro-HP41 users, so please be gentle on me for I do feel inadequate for engineers like yourselves have programmed Ingenuity to fly on Mars completely autonomously, send back images and sound (Perseverance recording Ingenuity's rotor blade whirling sound) and I can't figure how to handle alpha character branching sitting at my desk on Earth.
Sincerely, AJ