How TO????

Posted on 2001-07-02
Last Modified: 2012-06-27
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.

Question by:lansing123

Accepted Solution

gajendra earned 200 total points
ID: 6247348
You will need the programming instruction kit (also reference to as the API) for the device on COM1.

The manual that accompanies the product should generally have these listed.



Author Comment

ID: 6250938
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.


Author Comment

ID: 6250950
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.

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.


Expert Comment

ID: 6251323
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.


You will need you to send the detail commands for a more detailed entry.
LVL 49

Expert Comment

ID: 7147958
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

Expert Comment

ID: 7179065
Comment from expert accepted as answer

E-E Moderator

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now