ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to simulate an lcd using labview

hi
i need to simulate a graphical lcd in pc using labview?(7.1).
i have posted this earlier and got replies.but i  wish to know how to create the lcd screen?
i think i can make use of booleans.but i need the  exact details for creating the graphical screen.
and on how to make each pixel glow(i.e., ON and OFF)
can anyone help me out in this issue..
regards
mahi
0 Kudos
Message 1 of 21
(7,923 Views)
Hello Mahi,

just make up an array of LEDs and switch them on/off as needed...
You can also use an array of color controls, this way you can control the color more easily.
Or you use an intensity graph (with a predefined color scale). So many possibilities...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 21
(7,922 Views)

go on this site you will get the LCD Font just install it and then you can use simple String control to show LCD data. i think this option will much simple to use and much more light weight than using picture control, 3D intensity graph etc.

http://www.twyman.org.uk/Fonts/

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 3 of 21
(7,914 Views)

hi GerdW

i have some sample VIs.i shall send u them.can u tell me how are they created using booleans.

i couldn find it out.kindly send me ur id so that i can send them.

regards

mahi

0 Kudos
Message 4 of 21
(7,907 Views)
Hello mahi,

when you write a forum entry there is a "Attachment" field below the text input.
Just add your vi (or several vi's saved as llb) so all forum participients can have a look at them.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 21
(7,904 Views)
You could do this with a 2-D array of booleans.
Put an array placeholder on the front panel and put a boolean indicator in
it and add a dimension to the array. Make the border of he indicator
transparent and resize the indicator to the smallest size possible. See
http://www.morechemistry.com/lcd/lcd.html for sample vi's in LabVIEW 6.1.

"maheswaris_tr@hcl.in" <x@no.email> wrote in message
news:1149664209402-375221@exchange.ni.com...
> hi
> i need to simulate a graphical&nbsp;lcd in pc using labview?(7.1).
> i have posted this earlier and got replies.but i&nbsp; wish to know how to
create the lcd screen?
> i think i can make use of booleans.but i need&nbsp;the &nbsp;exact details
for creating the graphical screen.
> and on how to make each pixel glow(i.e., ON and OFF)
> can anyone help me out in this issue..
> regards
> mahi


0 Kudos
Message 6 of 21
(7,900 Views)
GerdW
herewith i have attached those VIs.kindly let me know about the details of the booleans.
regards
mahi
0 Kudos
Message 7 of 21
(7,900 Views)
Hello mahi,

as suggested elsewhere, I changed the cluster to a control and (by using Unbundle function) had a peek at the cluster format definition.
This LCD vi uses a 9×6 points scheme for each char. Each char is composed of 9 clusters, each containing 6 booleans. The ASCII-DMD.vi is converting the ASCII code to the LCD/cluster representation of the char.

I think my approach of using a 2d array of booleans is much simpler. It also allows for proportional chars and scrolling 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 21
(7,890 Views)
Hello Mahi,
I just jumped into this thread and remembered, that a few years ago I had a project to generate c-sources (actually header files to be included into c sources) to show custom made characters on an lcd display. As a side effect it creates what you need, a 3D- boolean array, where every 2D- portion holds a character.
With this program you can define the size of the character and alter it the way you need it. You can import a bmp- file with characters you need (e.g from a screen copy, must be a 1-bit bmp, black&white) and copy little frames from it to make work easier. If you click in the menu at "Fonts->Save Bool Spreadsheet" a text-file will be created which is in spreadsheet-style, where every cell (if you open it in Excel) consists of 0 and 1 according to the character. If you scroll down the front panel, you will find the 3D- Bool array which represents this data.
Just try it, the top-VI is "Fonts V2.vi", it should run properly. I put some screen-copy-bmp file and *.h- files into the zip to make the test easier for you.
I hope this helps,
Dave
Greets, Dave
0 Kudos
Message 9 of 21
(7,853 Views)

hi dave

am using labview version 7.1 an d 6.So am unable to view the VIs you have attached.

So can you plz send me the VIs in any of these lower version.

regards

mahi

0 Kudos
Message 10 of 21
(7,839 Views)