Thank you for your reply. I was successful to flash the arduino uno with the myarduino_hc04_test model. However, when I try to build it I get the error message
### Unable to find build success string.'***Created* in build log.
Can you please help on this
I also want to not that in order to flash my own model to the arduino board, I had to copy and paste the model in the myarduino_hc04_test model and flash it. If I copy the SR04 block into my model, it does not work.
When I try to use the HCSR04 block to download on arduino uno board I get the following error
Error: Simulink Coder Error in block: "untitled/HC-SR04", block type "S-Function": Unsupported function parameter: untitled_ConstP.HCSR04_p4
This is a great PSO toolbox. But can anyone please help me out in the folowing problem:
In DemoPSOBehavior.m file at lines 89 - 95 I see
% errgoal=0.97643183; % max for f6 function (close enough for termination)
% errgoal=0; % min
errgoal=NaN; <------ Will it be 0 ?
Error using plot3
Vectors must be the same lengths.
Error in goplotpso (line 23)
Error in pso_Trelea_vectorized (line 295)
eval(plotfcn); % defined at top of script