11-27-2008 04:33 AM
Hello,
I dynamically change the velocity of a motor in a predefined curve. The motor follows this curve by adjusting it's velocity continually.
Now I want a graph that shows two plots:
1. Predefined curve (1d array)
2. Actual motor velocity (streaming data)
This would allow me to determine visionally how the motor follows the predefined curve.
Solved! Go to Solution.
11-27-2008 08:07 AM
11-27-2008 08:23 AM
Hi,
what is exactly your problem ?
Which version of Labview do you have ?
Did you managed to inport datas ?
Couls you join a little vi which shows your problem ?
Best regards,
Vincent
11-27-2008 09:04 AM
Hello and thank you for your reply.
My problem is that I do not know how to wire a graph to display a array and a stream of data, I'm not even sure what graph to use.
I'm using Labview 8.5
I have pot a VI to futher explain my problem with this message.
Thank you
11-27-2008 09:28 AM
11-27-2008 12:44 PM
Hi Heinen,
when you switch on the context help window and move the mouse over the graph terminal you will get information on how to plot several types of data including how to plot two or more curves on one graph...
Use a shift register to collect the "streaming" data and then wire the static array and the array from shift register to the graph like shown in context help!
11-27-2008 07:35 PM
Hi Heinen;
You can merge signals by using the merge signals tool found on signal express, but you should take on account that since you are inputting steps many samples from your motor, so in the array you should replicate your step values to match the sample numbers obtained from your motor.
Francisco
11-28-2008 01:55 AM
Let me try again.
1. A graph with a curve (1d-array), this curve determines what the motor should do.
2. A signalgraph with the actual velocity of the motor at the current time.
I want to combine these 2 graphs in to one graph with 2 plots, so I can see deviations between the 2 graphs.
The problem is that the first plot is a static, it is always there and never changes.
But the second plot is updated all the time, because time commences.
Hope you understand me know, and thank you for your time!
11-28-2008 02:19 AM - edited 11-28-2008 02:20 AM
Initialize a 2D array, one row containing the expected curve and the other containing all NaN.
For each iteration of the loop, replace one NaN at column [i] with the data. Here's a quick example (LabVIEW 8.0).

11-28-2008 02:26 AM