English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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.

2007-01-13 10:04:55 · 4 answers · asked by baseballman999 1 in Computers & Internet Programming & Design

4 answers

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.

2007-01-14 01:23:13 · answer #1 · answered by justme 7 · 0 0

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.

2007-01-13 18:42:58 · answer #2 · answered by rod 6 · 0 1

you take advantage of the MScomm gadget (mission>>factors>>controls tab>>Microsoft comm administration 6.0) to 'hear' to the serial port. After that it really is an straightforward count number type of counting the kind of circumstances an illustration became into received from the port. in conserving with probability divide by 2 to account for coming and going of shoppers.

2016-12-02 05:41:17 · answer #3 · answered by ? 4 · 0 0

check http://www.pscode.com for examples.

2007-01-13 13:37:22 · answer #4 · answered by Richard H 7 · 0 1

fedest.com, questions and answers