LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph problem

Solved!
Go to solution

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.

 

 

 

 

--------------------------------
The Enrichment Center is required to remind you that you will be baked, and then there will be cake.

0 Kudos
Message 1 of 10
(3,642 Views)
Can somebody please help me? I would realy appreciate your help. Thank you 🙂
--------------------------------
The Enrichment Center is required to remind you that you will be baked, and then there will be cake.

0 Kudos
Message 2 of 10
(3,617 Views)

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

V-F
Message 3 of 10
(3,613 Views)

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 

--------------------------------
The Enrichment Center is required to remind you that you will be baked, and then there will be cake.

0 Kudos
Message 4 of 10
(3,604 Views)
Hey,
I'm not sure to understand what you want... See attached file, or describe exactly what you would like !
Best regards,
Vincent
V-F
Message 5 of 10
(3,600 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 10
(3,587 Views)

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

 

 

Francisco Arellano

National Instruments Mexico
Field Systems Engineer - Energy Segment
www.ni.com/soporte
Message 7 of 10
(3,567 Views)

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! 

 

 

--------------------------------
The Enrichment Center is required to remind you that you will be baked, and then there will be cake.

0 Kudos
Message 8 of 10
(3,549 Views)
Solution
Accepted by topic author SectorEffector

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).

 

 

Message Edited by altenbach on 11-28-2008 12:20 AM
Download All
Message 9 of 10
(3,534 Views)
Thank you very much!!! 🙂 
--------------------------------
The Enrichment Center is required to remind you that you will be baked, and then there will be cake.

0 Kudos
Message 10 of 10
(3,529 Views)