Link to home
Start Free TrialLog in
Avatar of lansing123
lansing123

asked on

How TO????

hi experts,

I have a MSE630 ENCODER connected to COM1. My problem is I want create a VB program that will read and write data into a card using that encoder but i dont know the command that im going to use. kindly help me on this. Im willing to give up to more points for this.
also kindly let me know how to read and write by TRACK. there are 3 tracks on this encoder.

thanks in advance.

lansing123
ASKER CERTIFIED SOLUTION
Avatar of gajendra
gajendra

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lansing123
lansing123

ASKER

hi gajendra,

I already have the command, by the way the device is a magnetic stripe reader/writer. my problem now is how can i make a program n VB that will wait for the card to be swiped. pls help. im willing to add more points.

thanks
hi gajendra,

I already have the command, by the way the device is a magnetic stripe reader/writer. my problem now is how can i make a program n VB that will wait for the card to be swiped. pls help. im willing to add more points.

thanks
Ok here goes.

1. Launch VB

2. Add "Microsoft Comm Control" from the Components dialog box to the tool box.

3. Drop the MSComm Control to your form.

4. Open the properties window and configure the properties...
   CommPort   - 1 for com1, 2 for com2
to indicate the port where the device is connected.
   Settings   - 9600,n,8,1
change as necessary depending on the manufacturer's specification. if nothing is specified this will do fine.

5. Now you can send out messages to the reader/writer using
   MSComm1.Output = themessage
and read from it
   themessage = MSComm1.Input

6. There are other properties like OutBufferSize, OutBufferCount, InBufferSize, InBufferCount and the event CommEvent use these as needed.

HTH

You will need you to send the detail commands for a more detailed entry.
Avatar of DanRollins
Hi lansing123,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept gajendra's comment(s) as an answer.

lansing123, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
Comment from expert accepted as answer

Computer101
E-E Moderator