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
(212 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.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 12 of 16
(207 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..."
0 Kudos
Message 13 of 16
(198 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
(182 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!


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 15 of 16
(175 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
(159 Views)