LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

date & time on data sheet

Hiiii,1958

             Here I am posting you a vi in which, strings can be concatenate as Donald show you but i ve shown that the data also can be write to the file, you can concatenate the data and the time to give it to the file.

Thanks,

Nishant

Message Edited by Nishant on 01-11-2006 10:08 PM

Message 11 of 18
(1,271 Views)

Hi,

Thanks everyone. I do not have labview7.1.  I hope someone can change that to labview 6.0. Anyway my large program does not have a case for saving data. Rather the save data is outside the cases. I have a lot of cases. So whenever it suits me I join the required case with the save data which is all the time outside the cases.

0 Kudos
Message 12 of 18
(1,255 Views)
I am trying to save both info and data on a file. I can save info but no data. Please see attached file.
0 Kudos
Message 13 of 18
(1,218 Views)

In order to save data, you actually have to call a function that writes data to a file. Your last sequence would need to have this and it would actually have to generate data. As it is, there is nothing wired out of the formulat node and nothing out of the for loop. Once you do that, then you can save data. And if you want to write to the same file as the header, pass the file name to the last sequence. The last frame of the sequence should look something like the picture.

Message Edited by Dennis Knutson on 03-09-2006 04:27 PM

Message 14 of 18
(1,215 Views)
I have done as suggested but still I am only getting only the heading but no data. I believe something wrong with the formula node. The file is attached.
0 Kudos
Message 15 of 18
(1,206 Views)


@labview1958 wrote:
I have done as suggested but still I am only getting only the heading but no data. I believe something wrong with the formula node. The file is attached.


1958,

"I have done as suggested ..."

No you did not do as suggested.  
Dennis wrote about passing the filename to the last frame of the sequence and his jpg showed a new sequence local to be used for that. It was shown to be wired to the file path input of Write To Spreadsheet.vi
You wired the concatenated string from your existing sequence local to the format input of Write To Spreadsheet.vi.   If you had looked at the easily available context help for Write To Spreadsheet.vi, you might have determined that what you were doing made no sense.

Dennis also wired True to the append to file? input.  You wired False.

"I believe something wrong with the formula node."
Try o=i rather than i=o.
 
Attached is a very slightly revised version of your vi which I hope may help a bit.
 
 
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 16 of 18
(1,196 Views)
I have got it. It gives both the info and data. But why is the data all 0's? I thought it should be 0,0 1,1 2,2 3,3 ...... 9,9? Is o=i not correct?
0 Kudos
Message 17 of 18
(1,174 Views)
You don't have o=i, you have i=o. And even if you had this correct, your output would not be 0,0,1,1,2,2,etc. It would be 0,1,2,3,etc. Why do you think it would be the other way? And why do you even have a formula node. If you had it correct, it wouldn't do anything that just wiring the iteration terminal (the "i') straight to the file write wouldn't do.
0 Kudos
Message 18 of 18
(1,161 Views)