converting bernouli binary signals into decimal signal in simulink

edited November 2008 in Science & Tech
Hi,
I am trying to convert binary signals from (bernouli binary generator block) into decimal values in simulink. If anyone know how to do that please let me know!
Thanks
Riaz

Comments

  • shwaipshwaip bluffin' with my muffin Icrontian
    edited November 2008
    no one who posts here uses simulink.

    you're probably looking for some block called a decoder or something.
  • edited November 2008
    Hi,
    Thanks for your reply.
    Yes I am looking for block which is kind of encoder. I used embedded Matlab function block to produce decimal output from binary inputs of Bernouli binary block. But I dont know exactly what code be written in embedded matlab function block to produce required output.
    N.B Embedded Matlab block has input port which will take input data from bernouli binary and produce decimal data in output port.
    shwaip wrote:
    no one who posts here uses simulink.

    you're probably looking for some block called a decoder or something.
  • edited November 2008
    I am also interested in finding that out. The only difference is that I am trying with dSpace, which uses simulink to start with.
    Did you have any luck?
  • edited November 2008
    sk09 wrote:
    I am also interested in finding that out. The only difference is that I am trying with dSpace, which uses simulink to start with.
    Did you have any luck?

    Actually binary 1 and 0 are same as decimal 1 and 0 so there is no need to such conversion. I did not realized that before!
    But if you want to convert binary data to decimal data use the command bi2de in embedded matlab function block.
    thanks
Sign In or Register to comment.