LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Date/Time in Numerical form?

Hey Dev,

as per ur reference i ve trid to see the examples but i dont find the proper thing i want, the 1st of the examples Read datalog file example doesnt run and i dont no how 2 assign a file to it and which file to assign to it, coz it is also not taking the file .lvm which is already a file of labview, so i am not sure whether how to work with them and another example i ve find but it is not taking the continuos date or time coz i cant write the Date and time in numerical format in the storage files, if that is possible it also can solve my this problems.

 

Thanks,

Nishant

Message 11 of 39
(1,433 Views)
Hi Nishanth,
 
First write data using write datalog file VI (From examples )
 
Then read data from it using read datalog file VI
 
This read Vi is customized to read data that is logged using the write VI
Try using the same logic to achieve the type of logging you want
 
Regards
 
 
Download All
Message 12 of 39
(1,435 Views)

Hi Nishant,

Converting a date and/or time string (or timestamp) to a numerical value is no problem.

You forgot to attach your VI in reply 9. Can you post your VI and i will look at it.

 

0 Kudos
Message 13 of 39
(1,426 Views)

Hey KC,

                Here i am sending you the file which i am coding right now, i have reach upto certain mark, but not at the concluding results, currently i am getting the hour of the time and date of the whole date format, but i want it in whole format so i am finding the format, just see it u will udstand wat i m trying to say, and if ucan suggetst me any other method it is also regarded.

      Hey Dev,

                    That example isnt helping me coz i want to store data in the excel file so that user can see it and i also want that date and time should be displayed on the X-axis of the graph, instead of numerical random time.

Thanks,

Nishant

 

Message 14 of 39
(1,416 Views)
Where's the VI ?  Smiley Sad
0 Kudos
Message 15 of 39
(1,414 Views)
Sorry Man,Smiley Mad
 
I m really sorrySmiley Happy, i ve send it in hurry & forgot  to send the vi.
 
Here it is now atlast.
 
Sorry & Thanks,
Nishant
Message 16 of 39
(1,411 Views)

Still don't understand what you want. In your VI you are trying to generate date&time an add this to a file Smiley Surprised

Can you show me in a spreadsheet (textfile) what you want.

0 Kudos
Message 17 of 39
(1,404 Views)
Hi Nishanth,
 
Modified your VI,
 
is this what you are looking for?
 
regards
Dev
 
Message 18 of 39
(1,403 Views)

Hi Nishant,

in the attached VI,

since you are doing only one date/ Time query along with each 2D array data set in each iteration, your excel file will contain only one stamp for each chunk of 2d array data.

regards

Dev

 

Message 19 of 39
(1,403 Views)

Thanks Dev,

Ya its a really nice solution, and that is want i want. it will solve my problem for sure. thank you very much and thanks to the KC for guiding me what to do, i will send you my vi, after getting perfect solution with the data.

Smiley Happy

Smiley Happy

Thanks,

Nishant

Message 20 of 39
(1,395 Views)