LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

auto save spreadsheet file

hello
i have tried to create vi to auto save table to spreadsheet. i am actually the novice of labview.
what vi desired function is the auto saving table to spreadsheet without asking user to key in the file name. i have used time and date to be the file name. but it appears "invalid filename". even it works, it is not what i want. as in real time, no user control. so i have to set the directory and file name automatically. without asking the user to click save file, how am i going to modify this vi?
thanks. in fact, i am already at my wits end.
regards
 
 
0 Kudos
Message 1 of 6
(3,874 Views)
Hi
 
You use the "File Dialog.vi" in the attached vi. This function opens a file dialog - so if you don't want the user to enter a file-name, remove this function.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 6
(3,865 Views)
As becktho already mentioned, you need to leave out the file dialog and built the file path manually. Here is one possibility (this is LabVIEW 8.0 so a few icons look a bit differently...)
 

 
In any case, you should NOT assemble any path with string concatenation functions followed by "string to path" because it will break portability of the code to different platforms. Instead use "built path" as shown above.
 
(Of course you are probably aware that you are not writing any proper excel files with your code.  ;))

Message Edited by altenbach on 01-15-2007 12:07 AM

0 Kudos
Message 3 of 6
(3,861 Views)

Hallo

I want to save automaticlly the file (spreadsheet) under the name of Date/time, so I did like Altenbach's suggestion but it didn't work . it keep telling me no path.

somewhere I read , I should put instead of ":" & "/" ---> "_" . any idea how?

Thanks in advance

Toni

 

0 Kudos
Message 4 of 6
(3,539 Views)
after the "to date and time strings" part wire the strings through a "search and replace"


Message Edited by JeffOverton on 04-10-2008 10:47 AM
Message 5 of 6
(3,536 Views)
thx
0 Kudos
Message 6 of 6
(3,527 Views)