VB Express to Stamp Companion thread
Catspaw
Posts: 49
Out of respect to Unsoundcodes thread and the desire to focus on the code rather than the VB, I am starting this thread. I had a hard time using the primary attached file. I have just started exploring VB...literally about a week ago. I am also waiting for my first stamp (should be here wednesday.) So what may have seemed obvious, there were a number of things regarding VB that just didn't work for me. I really had to do alot of research to figure out how to get the first code together.
Consequently, I have re-upped the file with an appendix that describes what actually needs to be done from the VB perspective.
My intention is to generate what I was looking for orginally and to help the absolute beginner.This is for VB Express 2010. Hopefully, this will add just one more bit of knowledge to expand the braintrust on this site.
Consequently, I have re-upped the file with an appendix that describes what actually needs to be done from the VB perspective.
My intention is to generate what I was looking for orginally and to help the absolute beginner.This is for VB Express 2010. Hopefully, this will add just one more bit of knowledge to expand the braintrust on this site.
Comments
What I may put here is what I am experiencing. It doesn't necessarily mean what I say is gospel. Since I don't even have my BS yet, I can only work in the theoretical.
As I perused the BS spec.s I came to the conclusion that the BS is good for having a function, but, it isn't a substitute for a PC or for data storage. So I needed to know how to make a PC the brains and have one or more BS modules execute the will of the PC.
We'll see.
http://www.agaverobotics.com/serialportdemo.zip
It's pretty easy to use and like VB 2010 it is written against the .NET framework. It works with a standard Propeller serial port objects or the stamp's SEROUT command.
I'm a bit more familar with VB2005 than 2010...and not that great with 2005 to begin with...but I seem to be missing where in your code it's determined what port the BS2 is using so that VB2010 can open the correct one.
Did that make sense?
http://forums.parallax.com/showthread.php?96973-VB-Express-to-Stamp-Template
The object here is to go thru that thread and make the basic Form1, Form2, Module model as presented by Unsoundcode. The blog takes that, figures a few things out, then (tries to) explain what's going on so that someone can have a solid base for writing their own PC/Stamp system without having to think about the interface....but, just writing PC apps that will talk to their Stamp.
I posted two blogs. The first one exceed the character count. So I split it up into two. The second blog has the code without all the explanations for cut and paste. I'm going to check whether the second blog appeared or not. It's the first time doing this for me, so, I don't know if I posted right or have made things accessible as I intended. The code contained therein is for Form1 and not the whole thing (since the rest of the model is fine as it stands.) I really only made changes in the Form1 code except for defining one new variable as noted in the text, which hopefully will be simple for even the new programmer can handle.
After going thru the above thread, you'll find that Form1 is the main window. Then you will have made a Form2 that allows the user to set the Com port and Baud rate. It will be different for everybody depending on equipment.
Since I just started learning VB a couple of weeks ago, I can't say what the differences would be between 2005 and 2010.
I'm hoping that all this will provide noobies with some info on a generic interface. With others who know more joining in, I think it will eventually all get cleared up.
...ok, understood.
Thanks!