LCD2041 with VB.NET
Posted: Wed Mar 26, 2008 2:35 am
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
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