example: Sending text from LK202-25 with Visual Basic 6

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
ourstreaming
LCD?
Posts: 7
Joined: Mon Sep 12, 2011 11:58 am

example: Sending text from LK202-25 with Visual Basic 6

Post by ourstreaming » Tue Sep 13, 2011 8:22 pm

I am learning Visual Basic. I just want to attach commands to the keypress using visual basic without learning c programming.
I want to send serial commands to serial devices such as ipod,projectors stepper motors, etc.
Has anyone used Visual Basic to do this?
Thanks
Leon

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark » Wed Sep 14, 2011 9:02 am

Hi Leon,

Let's see what all-wise Google says...yes, Microsoft has a support page for that. Please take some time to learn the code you wish to deploy in your project; it will help you discover the limitations of your design and build on it's strengths.

Thanks,
~Troy
Troy Clark
Design & Development
Matrix Orbital

Ray
Matrix Orbital
Matrix Orbital
Posts: 729
Joined: Thu Dec 13, 2001 4:00 pm
Location: Earth.... I think..
Contact:

Post by Ray » Wed Sep 14, 2011 11:10 am

Thats vb.net though, vb6 got released in 1999, microsoft's official support ended somewhere in 2005. You might be better off learning vb.net instead since thats still a supported product.

ourstreaming
LCD?
Posts: 7
Joined: Mon Sep 12, 2011 11:58 am

Assign Keypad Codes 0xfe oxd5[KDown][KUp]

Post by ourstreaming » Wed Sep 14, 2011 3:00 pm

I am almost afraid to post again because you keep sending me some where else.
I promise that this is my last try.

When I press the up arrow key on the keypad, yes it does send a 'H' to the serial port. That is why I brought your product in the first place.
I want to change that 'H' into "Hello world"

MSComm1.Output = Chr$(&HFE) +Chr$(&HD5) [KDown][KUp] + ("Hello World") + Chr$(13)
Thanks
Leon

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark » Thu Sep 15, 2011 9:23 am

Hi Leon,

The LCD will only ever respond with one byte, your host will receive that byte and initiate a desired action; sending hello world to the screen or another device perhaps.

Thanks,
~Troy
Troy Clark
Design & Development
Matrix Orbital

ourstreaming
LCD?
Posts: 7
Joined: Mon Sep 12, 2011 11:58 am

The LCD will only ever respond with one byte

Post by ourstreaming » Thu Sep 15, 2011 12:27 pm

Thanks Troy,
Now I understand.
Leon

ourstreaming
LCD?
Posts: 7
Joined: Mon Sep 12, 2011 11:58 am

new lk204-25

Post by ourstreaming » Wed Apr 23, 2014 10:09 am

Just purchased a lk204-25 from mouser.
The screen lights up but there is no logo text nor can I send text.
Is there something that you can suggect before I send it back.

Thanks
Leon

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Re: example: Sending text from LK202-25 with Visual Basic 6

Post by Clark » Wed Apr 23, 2014 11:15 am

Hi Leon,

If you haven't tried it already, I would recommend the manual override procedure outlined in your manual. And, if you aren't already, I would also recommend testing with a known good piece of software. For an alphanumeric unit, uProject is a good place to start.

Finally, if this turns out to be a hardware fault, please send an email to support@matrixorbital.ca with the serial number of your unit (##M##-####) and a reference to this thread, then we can get started on an RMA for repair.

Cheers,
Troy
Troy Clark
Design & Development
Matrix Orbital

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests