code examples.

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

Moderators: Henry, Mods

xull1x
LCD?
Posts: 8
Joined: Sat Dec 01, 2001 4:00 pm
Location: markham, on
Contact:

Post by xull1x »

=) so far i've coded the core.. =) coded overflow protection etc. what manual are you looking at? can you paste a url? =) thanks man.
relix
Uber Slave
Uber Slave
Posts: 222
Joined: Wed Nov 14, 2001 4:00 pm
Location: Knokke, Belgium
Contact:

Post by relix »

On 2001-12-02 02:38, xull1x wrote:
a bomb :wink: jk.. just a really good interface.. that works @ 19200 bps.. and does a lot of stuff.. like oscilliscope etc.

it's like the programs out there, but will be better. honestly.. those programmers don't know how to give an lcd the looks :wink:
I know how :razz:
Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

Well, look at any manual...

http://www.matrixorbital.com/manuals.htm
Henry J.
President
Matrix Orbital
Shawn Tartaglia
LCD?
Posts: 9
Joined: Thu Apr 24, 2003 8:26 am
Location: Florida
Contact:

Set Cursor Position **NOT WORKING**

Post by Shawn Tartaglia »

I am having a problem with any command I sent to the LK204-25 that has more than just the CMD_PREFIX CMD format. For example the Set Cursor Position command.

In VB, if I send at 19200 to COM1...

MyComm.Output Chr(254)
MyComm.Output Chr(71)
MyComm.Output Hex(dspColumn)
MyComm.Output Hex(dspLine)

Regardless of the dspColumn and dspLine values, the cursor always positions itself at 1:1

I have tried to send the dspColumn/dspLine as Chr() with the same result. The dspColumn/dspLine values are passed to the function as integers.

Thank you.

In the middle of difficulty lies opportunity. - AE
dtorner
LCD Geek
Posts: 36
Joined: Fri Aug 23, 2002 6:00 pm
Location: Zaragoza, Spain

Post by dtorner »

Use This :

MyComm.Output Chr$(dspColumn)
MyComm.Output Chr$(dspLine)

You can use Byte instead of integer,all values are less than 256
Shawn Tartaglia
LCD?
Posts: 9
Joined: Thu Apr 24, 2003 8:26 am
Location: Florida
Contact:

Set Cursor Position **NOT WORKING**

Post by Shawn Tartaglia »

For some reason the addtion of the $ on Chr worked. In debug it seems to produce the same character but I guess in the black box of VB the $ makes a difference. Thank you very much.

Just to be clear....

Use Chr$() instead of Chr() when sending commands via VB.

In the middle of difficulty lies opportunity. - AE
Shawn Tartaglia
LCD?
Posts: 9
Joined: Thu Apr 24, 2003 8:26 am
Location: Florida
Contact:

Sending Commands

Post by Shawn Tartaglia »

When sending commands to the MO (LK204-25) should I send them one at a time or can I send them as one command? e.g.

In VB,

MyComm.Output Chr$(254)
MyComm.Output Chr$(71)
MyComm.Output Chr$(dspColumn)
MyComm.Output Chr$(dspLine)

-or-

MyComm.Output Chr$(254) & Chr$(71) & Chr$(dspColumn) & Chr$(dspLine)

In the middle of difficulty lies opportunity. - AE
Miles
Matrix Orbital
Matrix Orbital
Posts: 1105
Joined: Mon Mar 04, 2002 4:00 pm

Post by Miles »

Hello...

You should be able to send it as one command...
Miles Y.
Head of Technical Support
Product Manager
Matrix Orbital
Post Reply