05-07-2013 04:45 AM - edited 05-07-2013 04:52 AM
Hi ni and member
I try to make this vi that do this function
I need it to use in academic research
I have stream of bits have length=100bitsmove in serial
and I want a selector that select between ratio 0.1 0.2 or 0.05 that represent error ratio
its ratio of bit that much flip (0 to 1) and (1 to 0)
for exqmple
for 0.1 ratio 10 bit of stream must randomly chosen and flipped
for 0.5 ratio 50 bit of stream must randomly chosen and flipped
any help please
best regards
05-07-2013 04:53 AM
05-07-2013 05:03 AM - edited 05-07-2013 05:17 AM
@GerdW wrote:
Hi mangood,
- use a ring or enum for your selector
- depending on the selector value create a boolean array containing randomly set bits
- XOR your boolean array with your stream bit array
Done...
thank you with kudos
i did not understand the stament """use a ring or enum for your selector"""
can you make a pic for the vi
best regards
05-07-2013 05:38 AM