The Daily CLAD

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

CLAD2017 - Hexadecimal String to Number - Spot the Valid Inputs

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

 

Combined.png

Comments
Knight of NI

All

 

I admit I did not know the cluster was valid.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
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.”

Member

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

Member

All.

 

I too did not know that cluster was valid.

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 Sample.pngHexadecimal String To Number SampleHexadecimal String To Number Result.PNGHexadecimal 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
Member

All

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.

Member

Very good question. 

 

All. 

Member

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

NI Employee

All. Nice one.

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. 

Combined.png