LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reed Solomon Symbol Encoder (Decimal to Binary Converter)

Solved!
Go to solution

Can any body guide me, how to convert the output of Reed Solomon Symbol Encoder from decomal to binary. See attached file for details.

 

I would really much appreciate any help in this regard

 

best 

 

JK

0 Kudos
Message 1 of 21
(5,004 Views)

I am on my phone so I can't look at your VI, but RS encoding is for error correction right? What do you mean by wanting to convert the encoder output from decimal to binary?

 

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 2 of 21
(4,972 Views)

I'm assuming that the output you are getting are numeric, say arrays of U32.  Do you just want to look at the binary representation, or actually translate it into an "array of bits"?  For the former, just right-click the indicator and change Display Format to Binary.  For the latter, try the Number to Array function on the Boolean palette (it gives an array of Boolean, 32 elements for a U32).

 

Bob Schor

0 Kudos
Message 3 of 21
(4,945 Views)

Dear Mike,

 

The output i am getting is in decimal format. But I need to convert it to array of bits in binary.

0 Kudos
Message 4 of 21
(4,918 Views)

Dear Bob,

 

Your second option is not working. I want to convert the output of RS encoder in to array of bits (binary).

0 Kudos
Message 5 of 21
(4,916 Views)
Solution
Accepted by josephkirmani

Try something like this:

 

Capture1.PNG

This is what Bob was talking about...

 

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 6 of 21
(4,910 Views)

Dear Mike, 

 

this solution is not giving me the desire result. I want to get the binary equivalent of the decimal no. generated by the encoder. But what I am getting is shown in the picture below:

 

Untitled1234.jpg

 

As you can only for the Left most digit "3" it gives the right output.

 

 

0 Kudos
Message 7 of 21
(4,895 Views)
Solution
Accepted by josephkirmani

What data type is the RS Encoder outputting?  I'm guessing it is U32, which means you are getting what you should.  Notice that the loner TRUE is the 33rd element.  So you have 32 bits to represent a 3.


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 8 of 21
(4,893 Views)

thank you for the guidance.

0 Kudos
Message 9 of 21
(4,888 Views)

It's like they say,

 

"There's only 10 kinds of people in the world. Those that understand binary and those that don't..."

 

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 10 of 21
(4,842 Views)