LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reed Solomon Symbol Encoder (Decimal to Binary Converter)

Solved!
Go to solution

One more thing If I want to convert boolean array back to decimal in the attached VI? Can any body guide me how to do it?

 

 

0 Kudos
Message 11 of 21
(1,747 Views)

Boolean Array To Number.  It is right next the the Number To Boolean Array and in the same palette as the Boolean To (0,1).


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 21
(1,734 Views)

I already did this myself but it gives only one decimal number in the output. But I want to get all the decimal numbers one after the other. Since there are more than one decimal no.s in the input of number to boolean part.

0 Kudos
Message 13 of 21
(1,728 Views)

@josephkirmani wrote:

I already did this myself but it gives only one decimal number in the output. But I want to get all the decimal numbers one after the other. Since there are more than one decimal no.s in the input of number to boolean part.


Looking at the code again...What's wrong with the Reed Solomon Encoder Output?  Isn't that data what you are looking for?


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 14 of 21
(1,725 Views)

There is nothing wrong in the above VI. It is correct, but I want to make some modifications in it. 

 

I want to convert boolean array back to number and want to get same result as i am getting at the "Reed Solomon Encoder Output" in the above attached VI.

 

 

0 Kudos
Message 15 of 21
(1,721 Views)

In that case, you will need to use Reshape Array to turn the Boolean Array into a 2D array of Booleans.  The number of columns will be 32 and you will need to calculate the number of rows.  Then use the Boolean Array To Number (may need to be in a FOR loop).


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 16 of 21
(1,714 Views)

I tried but it is not working, probably i am making some mistake. Can you plz guide me what is the mistake? (see attached screen shot)rs .jpg

0 Kudos
Message 17 of 21
(1,710 Views)

You need to tell the Reshape Array the dimension sizes...


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 18 of 21
(1,698 Views)

Still not working. I am going to attach my file below. Please look and guide me.

0 Kudos
Message 19 of 21
(1,689 Views)

Where in my example did I use the Remainder output of the Quotient & Remainder.  Look closely at the code I gave you and the code you wrote.  And think about what you are trying to do and what each function does.


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 20 of 21
(1,687 Views)