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

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:

  1. How do I write this substring code in Visual Basic? Robert Nesta M asked: I am writing a Visual Basic...
  2. Can anybody send me some notes for MS visual basic programming? Jaya asked: I am a biginer of in programming in...
  3. Visual Basic? Yahoo Manager asked: How would I write a visual basic...
  4. Do you know Visual Basic Programming? ismashkhy asked: I want to create a warehouse maintenance and...
  5. 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 , ,

Comments

3 Responses to “how to make a visual basic program to record a 2 pin connection on a serial port?”

  1. Richard H on May 20th, 2009 9:54 pm

    check for examples.

  2. plez on May 24th, 2009 6:25 am

    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.

  3. justme on May 26th, 2009 9:43 am

    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.