LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting column of Dates

I want to extract the DD/MM/YYYY from the excel file attached into LabVIEW

LED47_1-1684179502244.png

 

The example I attach uses variant- however I'm open to using anything- I merely want to convert a date form which I can use as an X axis for my graphs.

 

 

 

 

 

 

 

Download All
0 Kudos
Message 1 of 14
(1,750 Views)

Followed Converting Excel Date/Time Values to DIAdem and LabVIEW Values but not sure why it is off by four hours or a day.

ZYOng_0-1684185142633.png

 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 14
(1,728 Views)

Hi,

 


@ZYOng wrote:

not sure why it is off by four hours or a day.


Timezone settings may apply…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 14
(1,691 Views)

@ZYOng wrote:

Followed Converting Excel Date/Time Values to DIAdem and LabVIEW Values but not sure why it is off by four hours or a day.

ZYOng_0-1684185142633.png

 


Note: The For Loop is unnecessary:

paul_a_cardinale_0-1684239525000.png

 

Same:

paul_a_cardinale_1-1684239542382.png

 

Message 4 of 14
(1,667 Views)

Thank you very much, very kind of you know show me that..

 

I was wondering if I could impose upon you folks once more..

 

I've attached the same excel spreadsheet but I've added an extra column for Y axis data would you be kind enough to modify the same VI and include an XY display where the X axis is the date?

 

It's probably trivial but that's where I'm struggling 

0 Kudos
Message 5 of 14
(1,658 Views)

Hi LED,

 


@LED47 wrote:

I've attached the same excel spreadsheet but I've added an extra column for Y axis data would you be kind enough to modify the same VI and include an XY display where the X axis is the date?


  1. Convert the first column to timestamps.
  2. Convert the 2nd column to an array of DBL.
  3. Use Bundle to create a cluster of [timestamp array, DBL array].
  4. Wire that cluster to a XY graph…

 

What have you tried and where are you stuck?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 14
(1,654 Views)

LED47_0-1684255452037.png

Everything's going fine as far as adding the timestamped X axis

I almost feel embarrassed to ask this now but if you could turn me on to one more thing I would very much appreciate it.

I want to be able to display multiple graphs in either XY graph or waveform chart maintaining the X axis time in either case.

 

0 Kudos
Message 7 of 14
(1,618 Views)

Hi LED,

 


@LED47 wrote:

I want to be able to display multiple graphs in either XY graph or waveform chart maintaining the X axis time in either case.


When you want to plot mot than one plot in your graph then you should create an array of plots…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 14
(1,598 Views)

The LabVIEW Help system is (or, "used to be" -- I'm currently using LabVIEW 2019) pretty complete.  If you look up Graphs and Charts, it discusses how to plot multiple "channels" (it's pretty straight-forward).  There are also multiple Tutorial materials available, including links on the first page of this Forum, and the Web.

 

You can "look it up" ...

 

Bob Schor

0 Kudos
Message 9 of 14
(1,575 Views)

okay thank you   🙂

0 Kudos
Message 10 of 14
(1,529 Views)