The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: CLAD2017 - Hexadecimal String to Number - Spot the Valid Inputs

SercoSteveB
Active Participant

Which of the following are valid inputs to Hexadecimal String to Number?

 

NOTE:  More than one answer may apply.

 

CAUTION:  Some of the snippets may have (or may not have) been modified through the power of GIMP or by more sneaky methods.

 

a)

Hexadecimal String to Number Valid Inputs A.png

 

b)

Hexadecimal String to Number Valid Inputs B.png

 

c)

Hexadecimal String to Number Valid Inputs C.png

 

d)

Hexadecimal String to Number Valid Inputs D.png

 

Comments
crossrulz
Knight of NI

All

 

I admit I did not know the cluster was valid.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
GladysToMeetYou
Member

A, B, C, and D

 

Per the Help documentation:

string can be a string, a cluster of strings, an array of strings, or an array of clusters of strings.”

A_rid
Member

I would have said A,B. Didn't know about the possibility to use clusters as inputs

nik35324
Member

All.

 

I too did not know that cluster was valid.

Tsjabrantes
Member

Hello guys!

 

All options (A,B,C,D), are valid inputs to Hexadecimal String to Number, however on account of invalid characters in the string, the output result always will be 0 as shown in the following example that I did to demonstrate the function characteristics.

Hexadecimal String To Number SampleHexadecimal String To Number SampleHexadecimal String To Number ResultHexadecimal String To Number Result

As "g" is an invalid Hex character, Hexadecimal String To Number function stops the conversion there. Like in our string (SteveLikesLabVIEW)...

See you soon

Tarciso Junior
+55 (11) 996-282-103
Skype: Tarciso.junior2
Email: Tsjabrantes@gmail.com
http://br.linkedin.com/pub/tarciso-junior/23/a83/463
Ellie90
Member

All

qubirt
Member

A, B, C, D

 

However, I admit that I only suspected that C and D were valid, and I did not know this for sure.

Matt-A.
Member

Very good question. 

 

All. 

SravanKumarAtla
Member

A,B,C,D all are correct......As per my knowledge hexa decimal string to num takes any kinda string as a input.......

Sravankumar Atla
CLD || CTD
CataM
NI Employee (retired)

All. Nice one.

SercoSteveB
Active Participant

Answer: A, B, C & D.  Nice one all.

 

From the LabVIEW Help.  string can be a string, a cluster of strings, an array of strings, or an array of clusters of strings. 

istan0227
Member

ABCD