Hi Su,
The MATRIXx help has more information on this (you can type "help mod" into the XMath window) but mod is the function to use.
Remember to post to the MATRIXx forum for faster response times.
Richard
Field Sales Engineer, New Jersey
National Instruments