Calling ez Functions from Other Programs

17 views
Skip to first unread message

wyim

unread,
Feb 5, 2010, 5:10:51 PM2/5/10
to ezLCD+ Support Group
Hi,

I was wondering if it would be possible to call call ez functions like
shown below in a precompiled program sending signals through the USB.
For example, would it be possible to be running a MATLAB program and
somehow make function calls like the following:

// examples of ez commands

ez.Cls(BackColor or self.BackColor)
ez.SetBmFont(2)
ez.SetXY(self.X, self.Y)
ez.SetColor(BorderColor or self.BorderColor)
ez.Box(self.X, self.Y, self.X + self.Width-1, self.Y +
self.Height-1)

Is there a library I can add to to my Matlab script so that it can
send the equivalent signals through the USB?

Help would be much appreciated. Thank you.

-wyim

Daniel Fowler

unread,
Feb 8, 2010, 10:10:41 AM2/8/10
to ezLCD+ Support Group
I think Matt mentioned a function that sounds like what you want in
the post: Calling Lua script.

"In the external command mode I am able to call a lua script that is
stored in the user ROM area with the RUN_LUA_ROM (0xA8) command."


http://groups.google.com/group/ezlcd/browse_thread/thread/42a9b52b8012d082

Mason Fischer

unread,
Feb 9, 2010, 1:32:12 AM2/9/10
to ez...@googlegroups.com
Hello,
         You could connect the device to the computer via a serial cable and use this library to send text commands to the device http://www.mathworks.com/products/instrument/supportedio13781.html (untested). You could then eval every message sent using lua eval function. This might actually be quite useful for debugging. Please post back with your results.
Thanks,
-M


--
You received this message because you are subscribed to the Google Groups "ezLCD+ Support Group" group.
To post to this group, send email to ez...@googlegroups.com.
To unsubscribe from this group, send email to ezlcd+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ezlcd?hl=en.


Reply all
Reply to author
Forward
0 new messages