LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I save my data and the date,the time into the same file when I run this VI at different times?

I use a translation stage for the experiment.For each user in the lab the stage position (to start an experiment) is different.I defined one end of the stage as zero. I want to save the position , date and time of the stage with respect to zero.I want all these in one file, nd everytime I run it it should save to the same file, like this:
2/12/03 16:04 13567
2/13/03 10:15 35678

So I will track the position from day to day.If naybody helps, I appreciate it.Thanks.
0 Kudos
Message 1 of 3
(2,698 Views)
evolution wrote in message news:<506500000008000000CE750000-1042324653000@exchange.ni.com>...
> How can I save my data and the date,the time into the same file when
> I run this VI at different times?
>
> I use a translation stage for the experiment.For each user in the lab
> the stage position (to start an experiment) is different.I defined one
> end of the stage as zero. I want to save the position , date and time
> of the stage with respect to zero.I want all these in one file, nd
> everytime I run it it should save to the same file, like this:
> 2/12/03 16:04 13567
> 2/13/03 10:15 35678
>
> So I will track the position from day to day.If naybody helps, I
> appreciate it.Thanks.

Hi,
I know the function "write to spreadsheet file.vi"
can append the data
to file. You can use the "concatenate strings" to display the date,
time as well as data... Hope this help.

Regards,
celery
0 Kudos
Message 2 of 3
(2,698 Views)
From File I/O use "Write characters to File" and set "append to file" to TRUE.
If you opened the file with "Open/Create/Replace File" use "Write File" and set pos mode to 1 which will write at the end of the file.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 3 of 3
(2,698 Views)