From: umut arioz on 16 Jan 2010 07:17 my problem was : ************************************ hi, comp_rate, comp_region2 and comp_region1 are inputs of the simulink real time block. code was : comp_ratio=comp_rate/100; comp_range=comp_region2-comp_region1; t=0:(comp_range*comp_ratio/comp_range):(comp_range*comp_ratio); and error message was "Operands must be constants." is there any other ways to write the "t" ? or isnot possible to write smt with the inputs? ************************************** but, after your message : I changed my codes. I summed all the algorithms of the blocks to one embedded block. so no same inputs and outputs. all calculations were made within the block. comp_ratio=comp_rate/100; comp_range=comp_region2-comp_region1; t=0:(comp_range*comp_ratio/comp_range):(comp_range*comp_ratio); And I defined the problematic data (comp_ratio, comp_region2, comp_region1) as parameter with non-tunable check from ports and data manager : but now, the error message was Embedded MATLAB Runtime Error: Error evaluating Embedded MATLAB parameter data 'comp_rate' (#157) in its parent workspace. what could be the wrong with my way ? thanks umut
|
Pages: 1 Prev: convert m file (bwlabel inside) to c++ Next: cognitive radio |