I didn't have the VI to look at when I posted that, but yeah it is OK. I didn't word wrap the last line because if it goes over the character limit, I just let it go. 🙂
erm...hey Morgol...i followed what u just taught me n modified the VI for a 16x2 LCD display... but seems like its not working...is it anything wrong?? i uploaded the VI n let u check.. by the way, i wana ask that how was it when u adjust ur variavle resistor? it the display lines all goes dark n white all together, or they will become darker line by line? bcoz when i adjust mine, the second line display will goes off 1st and then followed by the second line...
The VI you modified is working exactly how I would expect it to. At first it looked like it was cutting off the last line, but it was just out of view because the indicater needed to be wider. 🙂 As far as the contrast issue, my contrast changed all at once. If you want to display more than the limit of characters on the LCD, I would put the main VI in a While Loop with some shift registers to pass the end string (after another word wrap) back to the start, and a delay timer on the While Loop. Put the Init. LCD SubVI outside the loop though. This should make it start over at the top line after the delay time has elapsed. Good luck! 🙂
oh isit? then need to thanks to u also, without your help i cant do it also... oh ya,my LCD when i power up...n when i adjust my variable resistor....the contrast goes line by line.... and when i get this, i am unable to initialize the LCD and cant see the cursor at home... but sometimes i manage to get the contrast running on all lines together, and at this time i can get to see the cursor there... do you know what is the problem?
Actually, I have a benchtop power supply. Try adjusting your contrast to the appropriate level, then just cycle power to the display. If it will not work properly after just being powered, I don't know what is wrong with it.
hey Morgol.... izit that there is a problem with the Write LCD SubVI ?? i run the program i modified....and it does not writes anything to the LCD... the cursor just switch from 1st line to 2nd line... but the array indicator have the words display out, instead of displaying on my LCD display...