mcode in system generator

Am modeling bpsk system using xilinx-system generator block set. while in mcode block, i had written the matlab coding as
function done = bpskmultiplex(mod_sig, m1, m2);
if mod_sig == 1;
done = m1;
else
done = m2;
end
where 'done' is the modulated output,'m1' and 'm2' are the sine and cosine wave inputs and 'mod_sig' is the modulating signal input. But the mcode block didn't give the output.In the coding I had given "BPSKmultiplex", but at the mcode block it didn't change to "BPSKmultiplex".I think thats why i didn't get output.
Can anyone help me how to change it to "BPSKmultiplex"?

1 Comment

You may have better luck contacting Xilinx Support forums regarding this question.

Sign in to comment.

Answers (0)

Asked:

on 22 Jan 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!