To run a Hardware-in-the-Loop (HIL) simulation, I need to generate C++ code file from the circuit in the figure, which represents a model of a conveyor belt (Solver=ode14x):
The Simulink simulation works fine, but when I transfer the generated C++ code in the HIL platform, the host computer crashes with DRIVE_VERIFIER_detected_violation error. Note that when I replace the Belt Drive block with the Simple Gear block, the HIL simulation is then OK. Current setting of Belt Drive block:
- Drive type: Open belt
- Belt type: Flat band
- Longitudinal stiffness: 1e+4 [N/m]
- Longitudinal damping: 1e+5 [N/(m/s)]
- Pre-tension: 21 [N]
- Pulley radius (Pulley A and B): 0.1 [m]
- Friction velocity threshold: 0.001 [m/s]
Any idea? I thank you in advance.
Best Answer