mcode in system generator

4 views (last 30 days)
shiyamala
shiyamala on 22 Jan 2012
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
Kaustubha Govind
Kaustubha Govind on 23 Jan 2012
You may have better luck contacting Xilinx Support forums regarding this question.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!