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.
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?
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.
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…