LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurment Display(Graph Indicator)

Hello 

Iam using an Encoder to measure the position of the motor....what can I do in labview to get the graph of angle in rads   versus Time once the motor finishes rotating.

0 Kudos
Message 1 of 11
(3,301 Views)

Do you have a specific question?

 

Have you looked in the example finder for examples on waveform charts, waveform graphs, and XY graphs?

 

Do any of the messages in this thread ring a bell?

0 Kudos
Message 2 of 11
(3,296 Views)

You question is quite vague but hope the following helps.

 

You can save the encoder angles in an array of a predefined length (if you know the amount of data that you want to plot) by replaying the value in the array with an incrementing index and using a shift register. You should convert the angles into your preferred units before sotring in the array.

 

Place a graph outside your for/while loop and once your program exits the loop, the array will be displayed in the graph.

 

Cheers!!

0 Kudos
Message 3 of 11
(3,292 Views)

ok what you said does give me some hope...but can you be little bit more specific when you say " replaying the value in the array with an incrementing index..I know how shift register works...also but how can I get the plot of angle Versus time

0 Kudos
Message 4 of 11
(3,287 Views)

Sorry, it should be 'replacing' instead of replaying.

 

Moreover, what is your data format for the angle? Does it have a time stamp on it. If not, then you'll only see the angles vs the data point number in the graph.

 

If the angle is a dynamic array , then you have the time stamp already in the data.

 

Can you post your vi or a snap of the block diagram. Then I can hopefully provide a better suggestion.

 

 

Cheers!!!

0 Kudos
Message 5 of 11
(3,285 Views)

sure I dont have the VI right now, but when do you usually check the forum so that I can send it you.

 

Thanks

0 Kudos
Message 6 of 11
(3,281 Views)

Whenever you will upload the vi/snap, I'll get an email notification.

 

Cheers!!

 

The best thanks is a kudo:)

0 Kudos
Message 7 of 11
(3,276 Views)

Ok here is the snapshot of the encoder VI...so what Iam trying to do is get the plot of  angle versus time..just to know what times the angle show up.

0 Kudos
Message 8 of 11
(3,247 Views)

The DAQ assistant provides a timestamp with the data that you have removed by using the 'Convert form dynamic array' function. Your  Your 'formula node' in its present form is not required and you can remove it.

You can use the 'Get dynamic data attributes' to get the timestamp that you can display in an indicator. Moreover, to plot the data, you can use a chart or a graph (uncheck the 'ignore timestamp' option) by directly wiring the DAQ assistant to the chart.

 

It would also be helpful to you if you go through some LV examples. They are an excellent source to learn.

 

Cheers!

0 Kudos
Message 9 of 11
(3,243 Views)

Iam using the formula node to calibrate the reading because the encoder resolution is different so I have stepper motor...and this encoder gives me the angle after every 12 steps so what I have trying to get is plot of angle versus time... more like a scatter plot....Iam looking for is a graph that shows the times at which the angles appear...I can do this by hand..how will I need to do it by using the chart or graph function...

 

 

like if I connect a graph directly to the daq then all I see is a straight line that moves up and down.

0 Kudos
Message 10 of 11
(3,238 Views)