LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot a position-torque graph?

Hi,
 
Now I measured the encoder data from counter and torque data from analog input simutaneously. For analysis the relationship between position and torque, I want to plot a graph in which x axis is angular not the time, y axis is torque. Finding from the example xy graph.vi, its x axis is time. So how can I draw a graph of encoder --force sensor?
 
I am appreciated your help!
0 Kudos
Message 1 of 5
(3,651 Views)
The default x axis label is time. You can change it to anything you want. Use the text tool to highlight the label and change it or right click on the graph, select Properties, go to the Scales tab, select the X axis, and change the name.
0 Kudos
Message 2 of 5
(3,650 Views)
Thanks for your kindly reply.
 
But I don't know why there is no display on xy graph. I can get all of the data, and display X and Y seperately. But when I put position as X, put force as Y, there is no display.
 
Whta's wrong with my VI?
 
Alyssa
0 Kudos
Message 3 of 5
(3,623 Views)
You are passing a single xy pair to the graph and with each iteratation of the loop, the graph is being reset so it doesn't keep a history of previous points. You don't need any of that code that builds an array from the single measurement and then converts to dynamic data. Just wire the scalars to the inputs of the express sy graph and wire a false constant to the reset input.
0 Kudos
Message 4 of 5
(3,620 Views)
Thanks, I got it.
 
 It works.
0 Kudos
Message 5 of 5
(3,611 Views)