LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I convert single element array to integer

Solved!
Go to solution

Hi,

 

I have extracted a single element/character from a string using "String Subset Function". I want to convert this to a number eg U8.

The output from "String Subset Function" produces a 1 character string. If I convert it to U8 it produces an array of U8 with one element.

 

How can I convert it to a non-array variable?

 

Many thanks

Andy

 

PS originally posted in wrong Forum. Apologies.

0 Kudos
Message 1 of 5
(3,066 Views)
Solution
Accepted by topic author AndyNC

snip.png

 

Hope this helps!

 

Christian

0 Kudos
Message 2 of 5
(3,061 Views)

Andy,

Post a snippet of your code if Christians answer is not what you are looking for. 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 3 of 5
(3,060 Views)

If you want to interpret the text to a number you'll need to use the Decimal String to Number and similar from a sub-pallete in string-pallette.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 5
(3,056 Views)

Hi,

 

Christian's answer was perfect.

 

Many Thanks

 

Andy

0 Kudos
Message 5 of 5
(3,049 Views)