From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert integers to equivalent characters in string - NOT ASCII code character

Solved!
Go to solution

I have to output my data and associated string information to a string array and then to a spreadsheet file.

 

I want to do this by converting integers (and other numbers) to an identical string of characters.

 

I have tried Type Cast with a string constant as the type input but it DOES NOT WORK.  Instead, I get the ASCII character whose numerical designation matches the integer, e.g. integer "50" become capital "P".

 

I want integer "50" to be string "50".

 

Please advise and no, I do not want to make arrays of clusters.

0 Kudos
Message 1 of 2
(2,503 Views)
Solution
Accepted by topic author wildcatherder

I found my answer but only after searching for "Number" conversion rather than "Integer" conversions.

 

In the Programming palette  - String Functions - String/Number Conversion - Number to Decimal String:

 

"Converts number to a string of decimal digits at least width characters wide or wider if necessary. If number is floating-point, it is rounded to a 64-bit integer before conversion."

 

 

0 Kudos
Message 2 of 2
(2,499 Views)