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 »

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 »

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: 742
Joined: Thu Dec 13, 2001 4:00 pm
Location: Earth.... I think..
Contact:

Post by Ray »

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 »

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 »

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 »

Thanks Troy,
Now I understand.
Leon

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

new lk204-25

Post by ourstreaming »

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 »

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