From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

concatenate user defined hex code for serial communication

Solved!
Go to solution

I'm wondering about if you have the same hardware as naman25 in this thread:

http://forums.ni.com/t5/LabVIEW/Interface-AC-power-source/td-p/2933200

 

The protocol looks the same.

Are you on the same team/class?

0 Kudos
Message 11 of 16
(584 Views)

@Ermani wrote:

but where the Hex conversion is done for this upper & lower byte?


There is no conversion needed.  Hex is just a way to see the data.  The data is the same as the raw computer format, in this case represented by two bytes that were split from an unsigned 16-bit number.


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 12 of 16
(579 Views)

There is no conversion because there is nothing to convert.

 

All that really exists are groups of boolean 1s and 0s. To make them easier to understand by humans, we group them together and interpret them in ways that are more understandable. Say in binary you have an 8-bit value holding: 10000101.

 

Depending upon the context we could interpret this combination of bits as: 85 (hex), 133 (decimal), 205 (octal) or even "U" (ascii).

 

Nothing has really changed except how we humans choose to interpret the results.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 13 of 16
(570 Views)

Beginner's question. How did you do the cut n paste to show the section of the block diagram in your post? I can print screen a whole page. Do I then use something like "paint" to crop it? or can I capture a "chunk of code" from labview directly?

0 Kudos
Message 14 of 16
(554 Views)

It is called a snippet.  Select your code and then go to Edit->Create Snippet From Selection.  Also with a snippet, you can drag the png file onto your block diagram and you will instantly have code!


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 15 of 16
(547 Views)

Hi.. Yeah it is the same Hardware.. and we are in the same team. As he is on leave due to sickness from last few days so project is handed over to me... 

0 Kudos
Message 16 of 16
(531 Views)