06-01-2013 08:32 PM - edited 06-01-2013 08:36 PM
Hi there,
I have a stepper motor (8SMC1-USBhF) and a power meter (PM100D). I want to measure the power while the stepper motor is moving, and obtain an XY graph with the current position on x axis and the power on y axis. So I just merged the two VIs together by copying and pasting, and created local variables for current position and readout value, and changed them to read, and then linked them to the XY graph, but apparently it doesnt work.
So could you please instruct me how to merge them and obtain an XY graph appropriately?
Attached are the two VIs.
Thank you!
06-03-2013 05:32 PM
Hello,
The XY graph requires that each datapoint on the X axis corresponds to a datapoint on the Y axis. To create XY data you will need to creat two arrays of X data and Y data with the same amount of elements then cluster the two arrays together to wire into the XY graph. As an example take a look at the VI snippet below. Is there a specific error being thrown?
06-04-2013 03:42 PM
Thank you very much, Issac!
It makes much sense now. Seems like I can not make it happen.