LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -21872 occurred at mod_Validate RS code prms.vi

I am receiving the error message "Error -21872 occurred at mod_Validate RS code prms.vi"  Can any body guide me how to fix it. See attached VI for further details.

 

JK

0 Kudos
Message 1 of 3
(2,517 Views)

I would to like add that this error  is related to reed solomon encoder. 

 

If I usen n = 15 and k = 11, it works fine. But if I use n = 64 and k = 32, it does not work and gives error.

 

Can anyboody guideme how to fix it.

 

 

JK

0 Kudos
Message 2 of 3
(2,477 Views)

Hello JK,

 

You have entered an invalild n value. As the error explains, “The relation n-k=2*t (where t is the error correcting capacity in symbols) must be satisfied for any valid RS code. For a "normal" RS code, n must be a valid power of two minus one."

 

n = 15 works, since log2(15+1) = 4, and 4 is an integer number.

 

n = 64 does not work, since log2(64+1) = ~6.022367, and ~6.022367 is not an integer number.

 

 

Matthew R.
Field Applications & Systems Engineer
National Instruments

Certified-LabVIEW-Developer_rgb.jpg

Certified-TestStand-Developer_rgb.jpg


0 Kudos
Message 3 of 3
(2,439 Views)