LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to plot the encoder data along with its processing time in an array

Solved!
Go to solution

Hi,

I want to plot my encoder data value along with its processing time simultaneously in an array by fetching real time data. Please help me with some solutions or ideas.

0 Kudos
Message 1 of 6
(2,727 Views)

Hi reshmi,

 

I want to plot my encoder data value along with its processing time simultaneously in an array

How do you plot data in an array?

You can plot data in a chart/graph or store data in an array!

 

by fetching real time data. Please help me with some solutions or ideas.

Fetch those "real time data" and store it with your "encoder data value " in an array.

 

What exactly is your problem?

Can you share a VI to pinpoint the problems?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,723 Views)

I can already plot my encoder data, & also have stored the data in an array. But I want to visualize its timing also. For your simplicity , I am attaching the VI below. My main objective is to simultaneously see the encoder data along with its occurence time.

0 Kudos
Message 3 of 6
(2,700 Views)
Solution
Accepted by topic author reshmi.0989@gmail.com

Hi reshmi,

 

do you thinking about the VI you want to create - before you actually create it?

 

- Both your DAQAssistents are set to "1 value on demand" but you convert the DDT wire to 2D arrays!? Why? Why don't you convert to a scalar value - because that is what the DDT wire carries!

- why do you "insert into an array", when you want to append to (or build up) an array? Use BuildArray instead!

 

To have time values too you need to calculate them: by subtracting start time from current time:

check.png

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,696 Views)

thanks for your suggestion. But do the tick clock provides correct timing?

0 Kudos
Message 5 of 6
(2,689 Views)

Hi reshmi,

 

But do the tick clock provides correct timing?

Define "correctness"!

They are correct within accuracy of the OS milliseconds timer…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,682 Views)