LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Representations

HIs there a universally applicable instruction for changing the "Representation," i.e. the datatype of a wire that runs between blocks.  I am trying to change the output of a String to Number block from floating point to U16.  I right click on the terminal and a menu appears, but the word "Representation" doesn't appear in the menu.  And then I saw an instruction in the documentation that said, "control click the terminal," but that doesn't bring up the right menu either.  Can someone help me?
0 Kudos
Message 1 of 3
(6,016 Views)

Yes there is a way to change the representation between different numerical representation. In the functions palette, navigate to Programming >> Numeric >> Conversion. Under this palette, it contains all of the numeric conversions. In order to convert a string to a number, the functions are under Programming >> String >> String/Numeric Conversion. I have added some pictures of how this works for you below:

Conversion.png


Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 2 of 3
(6,003 Views)
Thank you, Jim S.  I figured there had to be another way, and found the datatype translation blocks.
0 Kudos
Message 3 of 3
(6,001 Views)