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,
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!
Attachments:
PM100D Simple Example.vi ‏42 KB
StepperMotor.vi ‏97 KB

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?
Regards,
Isaac S.
Applications Engineer
National Instruments

Similar Messages

Maybe you are looking for

  • RE: Using CORBA as Middleware with Forte'

    This is one solution when the two sides want to be somewhat independent of each other.. To use Forte messaging the environments have to be connected, identical Forte versions, probably identical versions of all objects involved (rather than just corr

  • Bootcamp program? and Anime Studio 5 Installing help.

    Bootcamp program. Hi i downloaded bootcamp. I have a mac book. When i try extracting the .dmg file and when the new finder window opens. The .pkg icon didnt show up. It wont open and says choose application to open it. I can read the readme files. Bu

  • Having trouble with Airport Base Station

    Hello, I am having a problem with getting a base station configured correctly. I am new with working on Apple networks. Currently, there is a communication problem between one of the base stations and the network. I cannot get an Internet connection.

  • 2010 Mac Pro OSX 10.6.8 Screens Randomly Turn Off, Wont Come Back On

    My work computer has been having this issue for some time now. A few times a day my screens will just go black, the power lights on them will stay on, but nothing will show up on the screens, causing me to force restart my machine and lose progress o

  • Installing Enhancement Package in portal x backend

    Hello, Please kindly help this colleague. Miroslav is facing an issue in his system. He has some mismatch in the components of his portal and backend. He wants to be in Enhancement Package 3. Please kindly help him to install the correct sp levels in