What is a "LibIsSampleHit" function and why can't PLC Coder generate code for it?
Mostrar comentarios más antiguos
Hi!
I'm working with the PLC Coder demo "Cruise Control" (plcdemo_cruise_control.mdl) and when I run the "Check Subsystem Compatibility" of the PLC Coder menu on the "Controller" module using the default configuration parameters (Ode5 and fixed step size of 0.05) the subsystem passes the check.
But! if I change the step size to 0.01 I get the following error message after running the "Check Subsystem Compatibility":
"Block 'plcdemo_cruise_control/Controller/PID Controller' is configured to operate as function LibIsSampleHit. PLC Coder does not support this function."
I guess this is because the "PID Controller" module has a Discrete Time integrator with a sample time of 0.05.
What is a "LibIsSampleHit" function and why can't the PLC Coder generate code for it??
Thanks, Ferchots.
1 comentario
Electro Ham
el 2 de Sept. de 2020
Editada: Electro Ham
el 2 de Sept. de 2020
I have a same issue in 2020a and my model, but now the error is: "Block '....' is configured to operate as function rand. PLC Coder does not support this function."
The PLC coder was generating the code fine in 2018b for this model.
What is rand, and why I can't generate the code? The error is really confusing.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Simulink PLC Coder en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!