LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open and select specific values in a file

Solved!
Go to solution

Thanks I found the VIs.

I tested it :

Naxmouk_0-1594208931290.png

 

Naxmouk_1-1594208950078.png

I don't understand the values that I'm getting.

Should I wire the 2 colums containing the data somewhere ?

Like if I enter my 2 dates, how can I get the data (column 1 and 2) between those 2 dates?

0 Kudos
Message 11 of 15
(506 Views)

@GerdW wrote:

Hi Bill,

 


@billko wrote:


Does this account for daylight saving (if applicable)?


When you want to avoid any DaylightSaving hassles you should store timestamps as UTC data (also when converting to string).

I guess the OP didn't care about that when creating the data text files…


That is exactly what I do.  Store timestamps as UTC; save any local formatting for when you extract the data.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 12 of 15
(501 Views)
Solution
Accepted by topic author Naxmouk

Hi Naxmouk,

 


@Naxmouk wrote:

 

Naxmouk_1-1594208950078.png

I don't understand the values that I'm getting.


Using those Threshold functions you get a row number in the corresponding timestamp array.

 


@Naxmouk wrote:

Should I wire the 2 colums containing the data somewhere ?


When you want to read data from certain columns of the 2D array then you need to "wire the data somewhere"!

 


@Naxmouk wrote:

Like if I enter my 2 dates, how can I get the data (column 1 and 2) between those 2 dates?


So you want to get a subarray from your large 2D numeric array?

Hmm, maybe using the ArraySubset function might work - what do you think?

(How much basic LabVIEW training did you do before?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 15
(494 Views)

Hello GerdW,

 

Here is my vi !

Naxmouk_0-1594219167890.png

I wired the data to an ArraySubset, and it works !!

When I put my dates, I get the data between them !

Naxmouk_1-1594219276205.png

I just know how the structures work and some basic VI's.

I use LabVIEW for my project where I need to do a UI, the data is coming from an Arduino Uno.

I need to acquire the data, the user has to enter the 2 dates and he get a graph showing the evolution of the data over the period he chose.

 

Thank you for your patience and for your great help !

 

0 Kudos
Message 14 of 15
(485 Views)

Hi Naxmouk,

 

maybe you should also use the "Start" row when selecting data from your numeric array…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 15
(483 Views)