A method of controlling electrical actuators of a shed-forming device on a loom in which a setpoint data set (V N) is generated for each pick and for each actuator or actuator group while taking account of predetermined shed parameters (D 1), the method being characterized in that it comprises, for a given pick and actuator or actuator group, steps consisting in: a) determining, as a function of the shed parameters (D 1), remarkable points (P 1 -P 5) of a movement profile of a heddle driven by the actuator or actuator group, at least for the given pick, the preceding pick (N-1)and the following pick (N+1); b) determining a parameterized approximation function (f k) of the movement profile that passes via certain remarkable points (P 1, P 2, P 3), at least for the given pick, the preceding pick (N-1)and the following pick (N+1); c) calculating at least four accelerations, namely: a first acceleration (γ ND) of the heddle at the beginning of its movement (θ 1), on the basis of the approximation function (f N) determined in step b) for the given pick; a second acceleration (γ NF) of the heddle at the end of its movement (θ 2), on the basis of the approximation function (f N) determined in step b) for the given pick; a third acceleration (γ( N-1)F) of the heddle at the end of its movement (θ 2) 1 on the basis of the approximation function (f N-1) determined in step b) for the preceding pick (N-1); and a fourth acceleration (γ (N+1)D) of the heddle at the beginning of its movement (θ 1), on the basis of the approximation function (f N+1) determined in step b) for the following pick (N+1); d) calculating a fifth acceleration (γ N-1/N) as a function of the first and third accelerations, and a sixth acceleration (γ N/N+1) as a function of the second and fourth accelerations; e) determining (108, 110) a movement law (y = L(θ)) of the heddle for the given pick, with a profile passing via certain remarkable points (P 1 -P 3) and such that the acceleration of the heddle at the beginning of its movement is equal to the fifth acceleration (γ N-1/N) and the acceleration of the heddle at the end of its movement is equal to the sixth acceleration (Y N/N+1); and f) generating the setpoint data set (V N) for the given pick and for the actuator or actuator group from the movement law (y = L(θ)) determined in step e). a) determining, as a function of the shed parameters (D 1), remarkable points (P 1 -P 5) of a movement profile of a heddle driven by the actuator or actuator group, at least for the given pick, the preceding pick (N-1)and the following pick (N+1); b) determining a parameterized approximation function (f k) of the movement profile that passes via certain remarkable points (P 1, P 2, P 3), at least for the given pick, the preceding pick (N-1)and the following pick (N+1); c) calculating at least four accelerations, namely: a first acceleration (γ ND) of the heddle at the beginning of its movement (θ 1), on the basis of the approximation function (f N) determined in step b) for the given pick; a second acceleration (γ NF) of the heddle at the end of its movement (θ 2), on the basis of the approximation function (f N) determined in step b) for the given pick; a third acceleration (γ( N-1)F) of the heddle at the end of its movement (θ 2) 1 on the basis of the approximation function (f N-1) determined in step b) for the preceding pick (N-1); and a fourth acceleration (γ (N+1)D) of the heddle at the beginning of its movement (θ 1), on the basis of the approximation function (f N+1) determined in step b) for the following pick (N+1); a first acceleration (γ ND) of the heddle at the beginning of its movement (θ 1), on the basis of the approximation function (f N) determined in step b) for the given pick; a second acceleration (γ NF) of the heddle at the end of its movement (θ 2), on the basis of the approximation function (f N) determined in step b) for the given pick; a third acceleration (γ( N-1)F) of the heddle at the end of its movement (θ 2) 1 on the basis of the approximation function (f N-1) determined in step b) for the preceding pick (N-1); and a fourth acceleration (γ (N+1)D) of the heddle at the beginning of its movement (θ 1), on the basis of the approximation function (f N+1) determined in step b) for the following pick (N+1); d) calculating a fifth acceleration (γ N-1/N) as a function of the first and third accelerations, and a sixth acceleration (γ N/N+1) as a function of the second and fourth accelerations; e) determining (108, 110) a movement law (y = L(θ)) of the heddle for the given pick, with a profile passing via certain remarkable points (P 1 -P 3) and such that the acceleration of the heddle at the beginning of its movement is equal to the fifth acceleration (γ N-1/N) and the acceleration of the heddle at the end of its movement is equal to the sixth acceleration (Y N/N+1); and f) generating the setpoint data set (V N) for the given pick and for the actuator or actuator group from the movement law (y = L(θ)) determined in step e).