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 Commento

Kaustubha Govind
Kaustubha Govind il 23 Gen 2012
You may have better luck contacting Xilinx Support forums regarding this question.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Simulink in Centro assistenza e File Exchange

Richiesto:

il 22 Gen 2012

Community Treasure Hunt

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

Start Hunting!

Translated by