Sunday, August 2, 2009

How to make a visual basic program to record a 2 pin connection on a serial port?

I run a retail store and i would like to know how many people come into my store by counting number of door openings. Using a magnet switch on the door and running it to a laptops serial pins and writing a program to record it all. Any help would be thankful.

How to make a visual basic program to record a 2 pin connection on a serial port?
the serial port cant read a switch like that. the serial port expects 8 bits of data, with a start bit and stop bit, (total of 10 bits). also the baud rate needs to be set to a particular rate. that cant be done with just a switch.
Reply:check http://www.pscode.com for examples.
Reply:You use the MScomm tool (project%26gt;%26gt;components%26gt;%26gt;controls tab%26gt;%26gt;Microsoft comm control 6.0) to 'listen' to the serial port. After that it's a simple matter of counting the number of times a signal was received from the port. Maybe divide by 2 to account for coming and going of customers.

graphics cards

No comments:

Post a Comment