Visual Basic
Porter
Posts: 9
·I have a BS2 project in mind that will require Visual Basic·to communicate with either the serial port or a USB port.· What product am i looking for·with the mscomm routines included.· The learning version dose not include them, I'm sure the·development version does but it's expensive.· What about the Student edition.·
Another thing has Visual Basic be replaced by Visual.net··What version do i need if that is the case.· Need the help don't want to over or under buy and waste money.·
Another thing has Visual Basic be replaced by Visual.net··What version do i need if that is the case.· Need the help don't want to over or under buy and waste money.·
Comments
I think you can download mscomm and install it in the learning version.
VB.NET has replaced VB 6, but MANY people still use VB 6. VB.NET is kind of a different animal (and VB.NET doesn't have MSComm either).
I would stick with VB 5 or VB 6 and try to get MSComm installed.
Bean.
I have VB 6, which I bought on E-bay a couple of weeks ago. It has the serial comms, but isn't cheap. I think you can DL the serial comm and add it to the Student edition.
I have written a very basic GUI for the hydrogen fuel cell robot, and can do simple serial stuff pretty easily. I am using an EB500 bluetooth module to communicate with the robot. The app can so far monitor the fuel cell, change settings and has a remote control mode to drive the robot and use the pan/tilt sensor array with the keyboard.
Right now though, I am pounding my head trying to figure out how to download and display a picture from a CMUcam.
Jonathan
www.madlabs.info
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
I bought a CMUcam a couple of months ago and have yet to hook it up to anything (tells you how busy I am), but if I recall the docs correctly, the cam can only serve up a static buffer representative of some aspect of the image (red, edges, luma, full-frame, etc.). Once you request the image, it will spit it out at the BS2 as a stream of bytes and the Stamp will have to throw those over BlueTooth for the PC to present in a pleasing fashion. I don't know what timing issues you might run in to. Hopefully, I'll get a chance to "play" at some point and can offer some real help. If you are looking for real-time pictures (for tele-operation and the like), I would recommend a simple "spy-cam" setup (got one off of E-bay for under $30).
Good Luck!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed
...you're about average...
Or just a different flavor of VB?
To use the comm control you have to add the component library to your project:
1) Project menu->Components
2) Find Microsoft Comm Control (MSCOMM32.OCX) and check the box.
Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
I can vouch for that. I have a copy of the Enterprise edition, and yes that is one of the controls installed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Buck Rogers
www.gregg.levine.name
http://www.martin2k.co.uk/vb6/ocxs/mscomm32.zip
Mike
Is there someplace I can read about this?
·· Thanks
·· And, oh yeah... if you're just learning VB, Try to get version 5. It'll be cheap, and the Help files are far more straight forward! You try a search in VB6 Help, you might as well just go do a google search and sift through the results...
··
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office