Hello,
There is a shipping Flexmotion example that follows a spiral pattern instead of a sinusiod (Two-Axis Contouring (Spiral).vi). That example uses a vi called Spiral Generator.vi to generate the 2D spiral array. All you need to do is to replace that with a subvi that generates a sine pattern instead.
Hope this helps!
Regards,
Yusuf C.
Applications Engineering
National Instruments