PDA

View Full Version : Visual Basic 6 and Pic com



shawn
- 14th September 2005, 04:18
Hi
Does anyone have a link that would be good for making a Program to open up the serial port on a PC to comunicate with a pic. I have very basic skills with VB and cannot find any understandable info. I'm trying to make a very basic data logger. Or could anyone suggest another program to use.

Thanks
Nick

Melanie
- 14th September 2005, 08:32
Well, if you're not happy with VB or any of the other PC based programming options, then why not simply use Hyperterminal to grab and save your Data, and program your PIC to output the Data already pre-formatted in the format you want to use it. If you want to import into Excel for example, you can have your PIC output in a format that Excel will accept. If it's going to be printed, then again the PIC can be programmed to output pre-formatted pages.

Conventionally, folks just dump data out of the Data-Logger and use the program on the PC to format and manipulate the data in a desired way... there's nothing to say you can't do that processing onboard the PIC.

rhino
- 15th September 2005, 03:15
Here's (http://www.rentron.com/VisualBasic.htm) a link. Get familiar with Bruce's site... there's a wealth of information there. Also, give the forum search feature here a shot.

Bruce
- 15th September 2005, 05:21
Thanks for the link Rhino.

Nick. You might also want to take a look at Jan Axelsons serial links page here http://www.lvr.com/serport.htm

If you're looking for a good book on the subject, Jan's book Serial Port Complete is 2nd to none.

You can download the VB source code from her book here http://www.lvr.com/files/spc.zip

The .zip file contains a few template VB applications ready to run. The devlink app has the ability to log incoming data to file, and is very easy to modify.