Attendance swiper
Archiver
Posts: 46,084
Re-subjected to reflect the completely different topic:
I'm not sure I understand where the "two" tasks at once are in this.
In most card readers, the data is read and sent out in a stream of data
(serial normally). Your task with the stamp would be to read that data,
parse it, and store it. If it is indead a serial connection, you would just
read it as you would any other serial comms. Probably you'd have three
messages, Last name, First name, and employee number - each seperated with a
return character ($13). Parse out the relevant data and store it away as you
see fit.
The files section has some examples - StampDaq comes to mind. It lets the
stamp talk to Microsoft Excel, you could check out the stamp serial code.
Another place to look would be this site
http://www.rentron.com/VisualBasic.htm. It explains how to talk between a
stamp and visual basic - though the stamp side of things is actually
generic, it doesn't have to be VB that your talking to. They explain whats
needed quite clearly.
Of course, this only applies if your card reader uses regular RS232 serial
communications. If not, you'll have to refer to the reader's manuals etc to
figure out how to talk to it.
>
Original Message
> From: Charles Wood [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=tgNRaUFC8h1TH4d3WpMUJSxMgHl03tWc8HnpRlzBzCqfzesfHCbNvj7LFBxU6solGB32xO3cphn6vDkbsXQf]cwood6@h...[/url
> Sent: April 10, 2004 6:17 PM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]basicstamps] two stamps triggering same LED
>
>
> BS2 Pe Attendance project. I am wondering if there is a way to write a
> program to accept two different signals and log it at the same exact
> time. Example I am trying to keep track of my employees when they
> arrive to work with there id badges being swiped in the office reader.
> It should store the first track that consist of their first and last
> name and also at the same time log their employee number that is on the
> second line and store it. Could this be possible? If so could someone
> give me a example of doing different task at the same time? Please?
>
I'm not sure I understand where the "two" tasks at once are in this.
In most card readers, the data is read and sent out in a stream of data
(serial normally). Your task with the stamp would be to read that data,
parse it, and store it. If it is indead a serial connection, you would just
read it as you would any other serial comms. Probably you'd have three
messages, Last name, First name, and employee number - each seperated with a
return character ($13). Parse out the relevant data and store it away as you
see fit.
The files section has some examples - StampDaq comes to mind. It lets the
stamp talk to Microsoft Excel, you could check out the stamp serial code.
Another place to look would be this site
http://www.rentron.com/VisualBasic.htm. It explains how to talk between a
stamp and visual basic - though the stamp side of things is actually
generic, it doesn't have to be VB that your talking to. They explain whats
needed quite clearly.
Of course, this only applies if your card reader uses regular RS232 serial
communications. If not, you'll have to refer to the reader's manuals etc to
figure out how to talk to it.
>
Original Message
> From: Charles Wood [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=tgNRaUFC8h1TH4d3WpMUJSxMgHl03tWc8HnpRlzBzCqfzesfHCbNvj7LFBxU6solGB32xO3cphn6vDkbsXQf]cwood6@h...[/url
> Sent: April 10, 2004 6:17 PM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]basicstamps] two stamps triggering same LED
>
>
> BS2 Pe Attendance project. I am wondering if there is a way to write a
> program to accept two different signals and log it at the same exact
> time. Example I am trying to keep track of my employees when they
> arrive to work with there id badges being swiped in the office reader.
> It should store the first track that consist of their first and last
> name and also at the same time log their employee number that is on the
> second line and store it. Could this be possible? If so could someone
> give me a example of doing different task at the same time? Please?
>