LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA

Dear all,
 
 
I'm using Labview FPGA with the spartan 3E board.
 
I'm started with the LCD example.
Ascii texts no problem, but now I want to place integer values on the LCD.
So, I need to convert integer to a ascii format to display. ( array )
 
 
There is no function available on FPGA level, to write an integer to an array of bytes, in display format of course.
 
So, I'm looking for using a FPGA code block.
Some FPGA libraries have functions to write a integer to an output.
 
My problem : I have a full labview example to place text on the spartan LCD but no solution for converting my integers to ascii.
Passing through the FPGA code block, then I have to move full LCD control to FPGA code. But way using labview then.
 
Can somebody help me?
 
 
Koen Algoet
 
 
0 Kudos
Message 1 of 4
(2,922 Views)
A direct function is available.Hope it supports
0 Kudos
Message 2 of 4
(2,904 Views)
Picture got screwed up.
 


Message Edited by mathan on 07-28-2008 07:13 AM
0 Kudos
Message 3 of 4
(2,900 Views)

Algoet,

This is a very interesting FPGA problem.  To implenet this in FPGA, you can use something like the implementation of the "itoa" function in C.  Wikipedia gives the original K&R implementation.  It is not too hard to follow, and I believe FPGA supports all functions required to build the byte array of characters.  I might try to put this together myself just for fun.

http://en.wikipedia.org/wiki/Itoa

On another topic, as an FPGA developer, are you aware of NI's IPNet for FPGA?  If not, check it out - lots of good tidbits.

http://www.ni.com/ipnet

-cb

0 Kudos
Message 4 of 4
(2,887 Views)