Stampw.exe and Command Line Execution
Ok So I understand that you can use Stampw.exe to tokenize source code and then download it to the the basic stamp ala USB cable. But can you then use it to execute this command on the stamp?
Is this what the /PIPE flag is for? Nothing in any of the documentation seems to indicate that you can execute downloaded files from a command line interface. Does anyone know how to do this. It seems like there *was* a Linux application that let you do this, is there something like the bstamp_run for Windows?
I'd really like to have an program that loads the up different Basic Stamp applications and runs them while the USB cable is connected to my "Board of Education". Am I over thinking this?
Thanks in advance for your help!
Is this what the /PIPE flag is for? Nothing in any of the documentation seems to indicate that you can execute downloaded files from a command line interface. Does anyone know how to do this. It seems like there *was* a Linux application that let you do this, is there something like the bstamp_run for Windows?
I'd really like to have an program that loads the up different Basic Stamp applications and runs them while the USB cable is connected to my "Board of Education". Am I over thinking this?
Thanks in advance for your help!
Comments
I think you can use the "compile to downloadable code" option to create several applications that reside on the PC that can be downloaded on-the-fly to the BS2 from Perl or a batch file that "shells" out a PC executable.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
This creates the program "stamploader.exe", and a .obj version of your file.
Now, from your PC program, you can 'shell' a command line:
stamploader myfile.obj /NoInfo /COM3
This will download your compiled "myfile.bs2" program "myfile.obj" into the BS2 attached at COM3, and start the BS2 code executing.
I'm not sure what the "/Pipe" option does on this one.
I was asking originally if the code executes ON the basic stamp once it is put there. The answer is "Yes". However this was not immediately apparent from the documentation (to me). After playing around with it some this weekend, I did find this to be the case. Seems like I was over-thinking it a bit this weekend. Thanks a ton!