Attached to this response I am sending you a pseudocode for a simple one axis straight line move with s-curve. I have seen it work on my side without any issues. Please code this afte your initialize routine and let me know if the s-cruve is still not being executed.
In the NI-Motion API, Vector Spaces are numbered starting with 17, or hex 11. Therefore in this pseudocode, when "Vector Space 1 (17)" is referenced, the number in parenthesis is the actual value of the Vector Space Resource.
Information about the NI-Motion functions or VIs can be found in the Software Reference Manual or the VI Online Help.
Reset the position to 0 on all 4 Axes on Board ID 1.
The NI-Motion function that should be used is:
Reset Position
The following code applies to Boar
d ID 1.
Move Constraints
To load the move constraints, set the acceleration to 100000 counts/sec/sec, the deceleration to 100000 counts/sec/sec, the velocity to 10000 counts/sec, and the s-curve time to 32767 sample periods.
The NI-Motion functions that should be used are:
Load Acceleration/Deceleration
Load Velocity
Load S-Curve Time
1D Straight Line Move - "Straight Line Move"
Set the operation mode for axis 1 to Absolute Position mode. Set the target position to 10000 counts/steps. Start motion on the axis.
The NI-Motion functions that should be used are:
Set Operation Mode
Load Target Position
Start Motion
Repeat the following until move is complete on the axis, following error is exceeded, the motor is off, or there is a function error:
Wait 100 ms.
Read Axis Status.
The NI-Motion function that should be used is:
Read Axis Status
Check for function and modal errors on Board ID 1.
The NI-Motion function that should be
used is:
Motion Error Handler