LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i get the time to appear on my stored data in notepad

Hi all,

I was wondering how can i get the time to appear on my stored data in notepad? I saw an example before but i forgotten which example was it..Smiley Sad Any ideas??

holla
0 Kudos
Message 1 of 4
(2,852 Views)

Your question is lacking a lot of detail.  What kind of VI do you have right now and how is it not doing what you want?  Your attached text file already shows the time in it.

Perhaps you want the Get Date/Time String VI on the timing palette and append the time string to the data you write out to your text file?

 

0 Kudos
Message 2 of 4
(2,842 Views)
Hi

Im using Labview 8.2. Currently it just shows the data without the time. Im not sure what to do. It works perfectly though. I just want the time to appear on my notepad along with my data

holla
Download All
0 Kudos
Message 3 of 4
(2,840 Views)

You are not acquiring the time anywhere so you don't have that information to  Use on of the date/time functions to get the time in whatever format you want and generate this with each iteration of the loop. Pass this out of the loop so that you have an array of time data (i.e. enable auto-indexing). Convert this array to a string array if the data is not already a string. Convert the Y data to a string array. Combine thes two arrays into a 2D array and wire this to the Write to Spreadsheet File set for string input.

Message 4 of 4
(2,793 Views)