Hello,
Thanks you very much guys!
RUN command works very well! (but is it possible to catch entries with RUN?)
The DELAY period command instead of WAIT FOR also seems to work well!
The goal of the program is that it must record a maximum of data for x seconds even if a security error is detected.
Next challenge is to find which variable corresponds to which parameter (for example, I have associated CUR_TORQUE[n] to a REAL variable but the value is still 0 in the log file... same thing for CUR_DIS_TRQ[n]. The only variables I record well are CURRENT_ANG[n]).