LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stepper motor 8SMC1-USBhF and power meter PM100D: how to merge the two VIs into one and make a XY graph of the current position and the power

Hi there,Smiley Happy

 

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!

Download All
0 Kudos
Message 1 of 3
(3,144 Views)

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?

 

XY Cluster.png

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,095 Views)

Thank you very much, Issac!

 

It makes much sense now. Seems like I can not make it happen.

0 Kudos
Message 3 of 3
(3,081 Views)