LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time to spreadsheet

I managed to write out a program that displays the "date/time" every second... so technically a clock.

However, I would like to write this to a spreadsheet file. so that a text file is created with the following output:

06/22/05 13:39:36
06/22/05 13:39:37
06/22/05 13:39:38
...


thanks.
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 1 of 12
(3,534 Views)
You can try inserting each date/time entry into an array and then use "Write to Excel File.vi" to save it in an Excel file.
0 Kudos
Message 2 of 12
(3,523 Views)
Thanks for answer.

Problem is that, I only have labview 6.01, so that function doesnt exist...

And spreadsheet files won't accept strings.
IF i attempt to build an array using the date/time string, it still remains a string and still cannot be saved to spreadsheet...

help! 🙂
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 3 of 12
(3,523 Views)
Take a look at this VI I created few weeks ago.
0 Kudos
Message 4 of 12
(3,515 Views)
In case you don't have the sub VI.
0 Kudos
Message 5 of 12
(3,514 Views)
Write to Spreadsheet can be modified to write strings. Open the VI and look at the block diagram. On the bottom of the screen, there are instructions on how to modify it. I've created a polymorpic VI that will handle either but I can't save it as 6.01 right now. I've got a new pc without 6.1 or 6.0 loaded. If I load either one, I'll post the polymorphic VI but in the meantime, editing the existing one is a simple excersie for a beginner. When you make the modifications, be sure to save it under a new name (i.e. Write Strings to Spreadsheet File) and to a new location - not in the llb with the original or in any of the LabVIEW folders.
0 Kudos
Message 6 of 12
(3,510 Views)
thanks guys, ill take a look at it.
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 7 of 12
(3,506 Views)
Honeywell,

I took a look at your 2 VI's.

I don't understand how your 2D table is relevant to my question... since it doesn't write to a spreadsheet. It only creates a table. (plus its real complex and i'm kinda clueless!)

Also, in the write file + (string) sub VI, I don't really understand how to use it (even with the help...)

I'm sorry to pester you about this, but I'm really really clueless.

thanks a lot!
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 8 of 12
(3,500 Views)
Here. Try the polymorphic VI called Write Anything to Spreadsheet file that's in the attachment. I still think that the editing of the original VI is a good excersise for you to do.
0 Kudos
Message 9 of 12
(3,495 Views)
Take a look at this. Not too sure if this is what you're looking for though.
0 Kudos
Message 10 of 12
(3,493 Views)