Hi Bill,
You are mostly correct as far as using the sine wave as a setpoint. The way that PID control works, you are actually comparing the current value to a setpiont value to generate your output. This is done in a loop, so the setpoint can change from one iteration of the loop to the next. The output that is computed is based on the difference and your PID gains, but it is not necessarily an accurate representation of the actual position difference (although it would be if your I and D gains were set to zero).
I have a couple other concerns though. First, if you are using the 9263 in a cRIO chassis running realtime, you should have the determinism to find if this will work. If the 9263 is in the cDAQ chassis, your measurements might not be deterministic enough for accurate response.
Also, you will not be able to directly compare the setpoint position to the accelerometer value. You could integrate the acceleration twice to obtain position, but the position still cannot be explicitly determined from acceleration, and there will likely be quite a bit of error in calculating this. A better approach would be to use enoders to get position values.
Hopefully this gets you started. Please let us know if you have any further questions.
Regards,
Brandon M.
Applications Engineer
National Instruments