Passing Variables to Stamploader?
Paul
Posts: 263
·Would it be possible to set a text variable to some value from the STAMPLOADER program? Here's the senerio: I have a Stamp program that is used in many models of our equipment and I would like the Stamp program to know what model it is and would be able to report the model number to the user or even run different parts of the program. Currently each model gets its own compiled version the only difference in all the programs is the 4-6 character model number.
·By entering this value our production folks would set the model number whenever they programmed the units. ( And I wouldn't have to maintain all these programs!)
·I know this is more of an ARGV,ARGC thing from my C programming dayz but it was so handy.
Is it possible to build a modified STAMPLOADER like this from the Tokenizer software?
Thanks, Paul
·
·By entering this value our production folks would set the model number whenever they programmed the units. ( And I wouldn't have to maintain all these programs!)
·I know this is more of an ARGV,ARGC thing from my C programming dayz but it was so handy.
Is it possible to build a modified STAMPLOADER like this from the Tokenizer software?
Thanks, Paul
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Jon: Yes, Im in the pre-compiled .obj rut today. I have 20 or so .obj files I have to maintain. If we add a feature each program has to be recomplied and retested. ugh.
So Lets see, if I have the image in the .obj file, I could put dummy text in the area that goes into the DATA space. Right _before_ running StampLoader I could do a search and replace on (a copy of) the object file.
Search for "XXXXXX", replace with "1234AB"...or whatever the guy loading the program puts in there. Once the program is loaded it would check the DATA area for the new Model Number...
Unfortunately if the .obj has a CRC (or similar) check this probably won't work...
Thanks for the input guys! As always the best support around!
Paul
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Thanks!!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax