LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hi lo byte with nxt toolkit

Solved!
Go to solution

Sorry if this seems a simple question but i am limited in my labview exp. i am trying to get a hi.lo byte value but can't seem to figure this simple thing out. I know that labview has a function but i am limited to the functions in the NXT toolkit that does does support this feature.

 

many thanks for you guidance

 

rosjen

 

0 Kudos
Message 1 of 7
(3,265 Views)
You may want to post in the LabVIEW Fans of LEGO forum.
0 Kudos
Message 2 of 7
(3,249 Views)

I have tried, but there has not been one single view of my question, hence me posting it here in case somebody has the toolkit installed and knows how to get around the limitations.

 

regards

rosjen

0 Kudos
Message 3 of 7
(3,226 Views)
Solution
Accepted by topic author rosjen

If dealing with 16 bits integers, couldn't you divide by 256, then use respectively the integrer part of the result as hi-byte, and the decimal part x 256 as lo-byte ?

With 32 bits integers, same solution with 65536. 

Chilly Charly    (aka CC)
Message 4 of 7
(3,200 Views)

Yes you can, if you buy the 800$ data manipulation toolkit. Just jokingSmiley Very Happy You find the functions you need in the data manipulation palette. Then you are in this palette take some time to explore the other functions.

Se posted example



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 5 of 7
(3,196 Views)

Sorry did not catch the ntx part. You may try the flatten to string function and the string to byte array function. I see the type cast function is not in the nxt function list.

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 6 of 7
(3,186 Views)
Thanks CC, seems so simple now works a treat regards rosjen
0 Kudos
Message 7 of 7
(3,164 Views)