LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Concecating 2 bytes into one

Want to combine 2 bytes into one.  Having a brain fart.

 

Please help..........................

0 Kudos
Message 1 of 12
(2,879 Views)

I think you want to AND your two bytes.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 12
(2,878 Views)

if numbers are aa & bb and you want number as 'aabb'. 

 

Then multiply aa by 100 and add bb.

 

Hope this will help

 

number = aa * 100 + bb

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 12
(2,848 Views)

hi.low.png


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 4 of 12
(2,839 Views)

Yep, you want the Join Numbers.  It can be found in the Numeric->Data Manipulation palette.  From 2 U8s, this will give you a U16.


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
0 Kudos
Message 5 of 12
(2,833 Views)

All those posting join will not address the OP's question. In his VI he indicating he would have one byte which was 0x2F and another byte which was 0x02. He said his expected response was 0x22. Therefore he would need to AND the values, not join them.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 12
(2,814 Views)

No, the front panel says he wants 022F.

0 Kudos
Message 7 of 12
(2,811 Views)

@Dennis_Knutson wrote:

No, the front panel says he wants 022F.


I could swear that I saw 0x22. If not I stand corrected and I should go get my eyes checked. Smiley Very Happy



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 8 of 12
(2,808 Views)

@Mark_Yedinak wrote:

@Dennis_Knutson wrote:

No, the front panel says he wants 022F.


I could swear that I saw 0x22. If not I stand corrected and I should go get my eyes checked. Smiley Very Happy


Then stand corrected.

 


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
Message 9 of 12
(2,800 Views)

@crossrulz wrote:

@Mark_Yedinak wrote:

@Dennis_Knutson wrote:

No, the front panel says he wants 022F.


I could swear that I saw 0x22. If not I stand corrected and I should go get my eyes checked. Smiley Very Happy


Then stand corrected.

 


Anyone know a good eye doctor?



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 10 of 12
(2,792 Views)