annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Concecating 2 bytes into one

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

 

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

0 Compliments
Message 1 sur 12
4 086 Visites

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 Compliments
Message 2 sur 12
4 085 Visites

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 Compliments
Message 3 sur 12
4 055 Visites
0 Compliments
Message 4 sur 12
4 046 Visites

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.



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 Compliments
Message 5 sur 12
4 040 Visites

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 Compliments
Message 6 sur 12
4 021 Visites

No, the front panel says he wants 022F.

0 Compliments
Message 7 sur 12
4 018 Visites

@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 très heureux



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 Compliments
Message 8 sur 12
4 015 Visites

@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 très heureux


Then stand corrected.

 



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 sur 12
4 007 Visites

@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 très heureux


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 sur 12
3 999 Visites