LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Represent graphically interval of measurement file

Hi all,

I have created a VI to get data from an Arduino board and write it into a .tdms file like i attach below. It has 3 columns, with date, time and data. I would like to represent it graphically, but not the whole file. My aim is to use a control where the user introduces two different dates and the program represents a graph with the data in that time interval.

Any idea? thanks in advance.

0 Kudos
Message 1 of 4
(1,378 Views)

Hi juanillo,

 

some simple steps:

- load the file.

- Then search for the start time and stop time.

- Then use ArraySubset to get the data between start and stop.

- Display those data in a graph…

 

What have you tried so far? Where are you stuck?

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 4
(1,369 Views)

thank you very much for your answer. Yes, i understand the point about to generate a sub array. The problem is that I need an index, and i dont know very well how I can convert the date to an index in order to pick the samples that I need.

0 Kudos
Message 3 of 4
(1,345 Views)

Hi juanillo,

 

in the first column you have your timestamps.

When you search for the start time in this column your search results in an index. The same applies for the stop time: now you have two indexes you can use for an ArraySubset function…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 4 of 4
(1,340 Views)