LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

converting date time string to double data

Hi RJ,

 

there's a reason you're not allowed to upload BMP pictures - they are just huge. When converting your BMP to a real JPG it needs 170kb (high quality), converted to more suitable PNG it only needs 81kB - compared with your 3700kB upload!

 

It seems to me you want to use a function that doesn't provide the functionality you need. Maybe you need to program this using ActiveX?

Provide data in a format needed by Excel (as Darin explained) and format the X axis to show Date/Time instead of plain numbers...

Best regards,
GerdW


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

Hi!

 

i do this alot when I'm creating testreports etc. I use ActiveX to get data from my program to Excel. I usually have the graphs on sheet 1 in the excel workbook. In sheet 2 i got all the datapoints from my program. My program adds data to sheet 2 for each object I'm measuring. In the the graphs in Excel automatically expand to use the newly added datapoints. This is an useful articly on how to create graphs in excel automatically. 

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 12 of 15
(1,831 Views)

Though I dint convert the timestamp into double bt ya I successfully plotted my graph in Excel with that timestamp and data only.

No conversion, no coercion nothing.

Feeding the data into Excel from LabVIEW and plotting a chart with that data automatically.

Finally done and I forgot to mention used ActiveX.

🙂

 

Thnx and Regards

Runjhun A.

0 Kudos
Message 13 of 15
(1,809 Views)

I manipulate date time into numbers in 2 ways. 

1.  Subtract the to from the timestamp, now you will get a double numeric in seconds as a double.

2.  Use time seconds to date/time vi, this converts a timestamp to a cluster with each field representing each component of the timestamp in numeric,  I find this useful for making custom time number representations.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 14 of 15
(1,798 Views)

Of course I'll post Time to XL.vi againSmiley Very Happy

don't foget to vote for this idea


"Should be" isn't "Is" -Jay
Message 15 of 15
(1,796 Views)