Hello everybody,
I have written an application for my LCD2041, so that it works like a clock.
Everything works fine but every day around 08:15 my computer crashes, everything blocks. So the computer doesn't shut down but doesn't react anymore.
I'm using following initialisation for the LCD2041.
PS: The LCD 2041 is connected through a EZL200F RS232 to Ethernet converter.
moRS232Com0 = New Rs232
Try
With moRS232Com0
.Port = 4
.BaudRate = Int32.Parse("19200") '(19200)
.DataBit = 8
.StopBit = Rs232.DataStopBit.StopBit_1
.Parity = Rs232.DataParity.Parity_None
.Timeout = Int32.Parse("0")
End With
moRS232Com0.Open()
moRS232Com0.Dtr = True
moRS232Com0.Rts = True
////////////////////////////////:
For writing the time to the LCD screen i'm using following code
Dim bArray() As Byte = {254, 88}
moRS232Com0.Write(bArray)
Dim bArray9() As Byte = {254, 71, 1, 2}
moRS232Com0.Write(bArray9)
moRS232Com0.Write(tijdweergave)
Is there something i have to do so that my LCD2041 stays active or can someone tell me why my computer blocks every day. (Same thing on XP PRO or Windows 2003 SERVER)
Thanks
LCD2041 with VB.NET
-
- Matrix Orbital
- Posts: 745
- Joined: Thu Dec 13, 2001 4:00 pm
- Location: Earth.... I think..
- Contact:
This is a weird one, does the computer 'freeze' as in 'not even the mouse cursor is moving any more' or more 'I can click anything I want with the mouse just nothing happens when I do it' ? Does the clock in the lower right of the desktop still update when your computers is in this state?
Does the computer also stop responding if your application is not running?
Does the computer also stop responding if your application is not running?
-
- LCD?
- Posts: 5
- Joined: Thu Jul 05, 2007 2:01 am
The computer blocks, as such that mousemovement is not seen on the screen, CTRL TAB DEL doesn't put the taskmanager on screen, ALT TAB doesn't switch screens. The computer freezes so i have to do a warm restart by pressing the ON/OFF button for X seconds.
When i don't stop the LCD screen every 3 hours)
--> STOP rs232 connection
--> INITIALISE the RS232 connection
--> SEND time
I get a different obstacle.
So I'm putting the time on the LCD screen (8:54) and after a while i get the following on my LCD screen
8:54 8:54 8:54 8:54
So the time keeps appearing after each other but i'm not changing my code, so normally i do a clearscreen en then i send the time?
Best regardss
When i don't stop the LCD screen every 3 hours)
--> STOP rs232 connection
--> INITIALISE the RS232 connection
--> SEND time
I get a different obstacle.
So I'm putting the time on the LCD screen (8:54) and after a while i get the following on my LCD screen
8:54 8:54 8:54 8:54
So the time keeps appearing after each other but i'm not changing my code, so normally i do a clearscreen en then i send the time?
Best regardss
-
- Matrix Orbital
- Posts: 745
- Joined: Thu Dec 13, 2001 4:00 pm
- Location: Earth.... I think..
- Contact:
You can clear the screen or send the cursor coordinates you want to have the text displayed before you send the actual text. See the manual for the precise commands.
But your problems sound like bad hardware or a bad driver somewhere, can you try running the unit without the ethernet->serial convertor? does it make a difference? Can you run it on a completely different system for a day?
But your problems sound like bad hardware or a bad driver somewhere, can you try running the unit without the ethernet->serial convertor? does it make a difference? Can you run it on a completely different system for a day?
-
- LCD?
- Posts: 5
- Joined: Thu Jul 05, 2007 2:01 am
Hello,
Before i send the new text i always clear the screen and set the cursor position right.
But Now i was thinking that it isn't my LCD2041 that makes my computer crashes, but my EZL200F converter.
Is it possible that I send so much information that the EZL200F converter blocks, something of system overloads or something like that.
Thanks
Before i send the new text i always clear the screen and set the cursor position right.
But Now i was thinking that it isn't my LCD2041 that makes my computer crashes, but my EZL200F converter.
Is it possible that I send so much information that the EZL200F converter blocks, something of system overloads or something like that.
Thanks