LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excel save as

Solved!
Go to solution

This is a 2 part question:

1. I have a VI that writes data to excel but i want to leave my original file intact and save as different name, i keep getting an error

2. for the new name i want to append a timestamp but cannot find how to get the PC current time

 

any help would be appreciated, i've attached the VI and a sample spreadsheet

 

i'm using LV 2012 and office 2007

Download All
0 Kudos
Message 1 of 7
(3,176 Views)

Check your filename.  You have some '/' which are invalid characters.  Remove the random number generator...not necessary.

aputman
0 Kudos
Message 2 of 7
(3,171 Views)

Here's one way to generate the PC date and time string.

 

Ben64

 

filename using PC time date.png

0 Kudos
Message 3 of 7
(3,166 Views)
Solution
Accepted by topic author at2bob

Simpler way

 

Ben64

 

filename using PC time date.png

Message 4 of 7
(3,161 Views)

thanks, got it working

0 Kudos
Message 5 of 7
(3,116 Views)

Good afternoon,
 
How do I write values from a chart in labview to Excel by pressing a button in labview ? When i press another button the stop to grab values.

In the final the values stay in directory when i can consult.
 
I would appreciate help please.
 
FASP

0 Kudos
Message 6 of 7
(3,041 Views)

You could always drop a property node to get the values from the chart and then write to a csv file.  Or, you can also always right click on a chart in LabVIEW and choose to export to Excel.

Jesse S.
Applications Engineer
National Instruments
0 Kudos
Message 7 of 7
(3,000 Views)