how to make a visual basic program to record a 2 pin connection on a serial port?
baseballman999 asked:
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.
Related posts:
- How do I write this substring code in Visual Basic? Robert Nesta M asked: I am writing a Visual Basic...
- Can anybody send me some notes for MS visual basic programming? Jaya asked: I am a biginer of in programming in...
- Visual Basic? Yahoo Manager asked: How would I write a visual basic...
- Do you know Visual Basic Programming? ismashkhy asked: I want to create a warehouse maintenance and...
- I really don’t get how people understand Visual Basic Programming Language? Jordan F asked: I have watched many tutorials and had...
Filed Under Programming & Design |
Tagged With Laptops, Magnet Switch, Visual Basic Program
Comments
3 Responses to “how to make a visual basic program to record a 2 pin connection on a serial port?”
check for examples.
You use the MScomm tool (project>>components>>controls tab>>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.
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.