LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
LabView7734

Add built-in character-to-ASCII code and ASCII-code-to-character functions.

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

In most every text-based programming language there are built-in functions to convert a character to its decimal ASCII code and a decimal ASCII code value to its associated character.  In BASIC, for example, ASC(character) does the former and CHR$(code) does the latter.  In LabView you have to implement these functions yourself from scratch with a CASE structure.  If you want to do the whole 7-bit character set you need 128 cases.  This is a waste of time!  Since many instruments use single ASCII charcters as their commands why not include such functions in LabView?

3 Comments
altenbach
Knight of NI

Why would you need 128 cases?? Just typecast from string to U8 or back.

 

(for multiple characters, we also have string to byte array and byte array to string)

PhillipBrooks
Active Participant

It appears that someone is in LabVIEW 7734 ...


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.