LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

desperately need help on date and time into textfile

The attached can successfully log the data into a textfile.

i need to log the time and date as well, and if possible divide the textfile into 3 columns (DATE         TIME              DATA).

i really need this to work by this week.

Pls help.

Thank you so much.

 

0 Kudos
Message 1 of 7
(2,931 Views)

I can't open your code right now... 😞

But...

I suppose you're saving your data as a string

there is a VI called get date/time  with give you the date and the time of that moment.

You can add this to your code that saves your data

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 2 of 7
(2,926 Views)

Is it possible if you could do your own vi and attach them to me? 

Thank you so much.

0 Kudos
Message 3 of 7
(2,914 Views)

Use the get date/time VI as ABCPrograms said.

To build this string, there are many ways you can do it.

As you said textfile, you can do the following:

Get Date/Time string and them concatenate it with your actual DATA, and write to a txt file.

To separate everything into columns, you can use commas (,) as a delimiter between the values.

Using a parameter like this, you will be able to export those values do excel later, and separate it into columns automatically.

 

Hope this helps.

 

Mondoni
0 Kudos
Message 4 of 7
(2,904 Views)

Just use Export Waveforms to Spreadsheet File VI


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 5 of 7
(2,898 Views)

Hi guys.As i am very very new to Labview, i don't knwo where to start.

I understand that i can use the get datetime string function, but the problem is that i dont know how to connect who to what.

As i have already done the program where the data is able to sent to a textfile, i'm not sure if i have to edit the whole program back.

If that is so, then i badly need help.

If there is anyone who can help me do their own vi and attached them, i would be very grateful.

As i am running out of time, i desperately need this to work 😞

Thank you so so much in advance.

 

0 Kudos
Message 6 of 7
(2,870 Views)

here is an example, writes to file every second....

Spoiler
wite file_BD.png
Spoiler
write2file_BD.png
Download All
0 Kudos
Message 7 of 7
(2,859 Views)