Are you sure you posted the right VI? I ask because your MathScript doesn't contain a "cd" function that you described in your message.
As for the code, you're incurring more overhead by using MathScript than you shouldfor such a simple operation. You can do it in LabVIEW like this:

Message Edited by smercurio_fc on 02-26-2007 09:40 AM