r_a_c_a_4_u
Newbie level 6
i have implemented blocks in simulink using xilinx blocksets
my all blocks are working with sample period of 769e-9
now i want my black box to work with this sample period what should i do
i think i need to edit this code of the black box
help ...needed ...
thanx in advance!!!
my all blocks are working with sample period of 769e-9
now i want my black box to work with this sample period what should i do
i think i need to edit this code of the black box
% -----------------------------
if (this_block.inputRatesKnown)
inputRates = this_block.inputRates;
uniqueInputRates = unique(inputRates);
outputRate = uniqueInputRates(1);
for i = 2:length(uniqueInputRates)
if (uniqueInputRates(i) ~= Inf)
outputRate = gcd(outputRate,uniqueInputRates(i));
end
end % for(i)
for i = 1:this_block.numSimulinkOutports
this_block.outport(i).setRate(outputRate);
end % for(i)
end % if(inputRatesKnown)
% -----------------------------
help ...needed ...
thanx in advance!!!