LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview report generation

how to append data in a report generation when i run labview it overwrites the previous data in a save file i want that each time i run labview it apends the results in a file not to replace it

0 Kudos
Message 1 of 10
(4,002 Views)

ranazeeshanali a écrit :

how to append data in a report generation when i run labview it overwrites the previous data in a save file i want that each time i run labview it apends the results in a file not to replace it


We can't tell you why your code is overwriting the data without seeing it.

 

Ben64

0 Kudos
Message 2 of 10
(3,975 Views)

for example i use string control as a input and want to save in file using report generation. for example ist write rana and run the program and then in file rana is saved. but now i change the rana to ali and again run the program now ali is saved and rana is disappear. i want to save rana as wel then ali should also included and similary each time i run it should be append in the file i hope u understand my question

0 Kudos
Message 3 of 10
(3,897 Views)

We understand your question but unless you post your code we can't tell what you're doing wrong.  If you are actually re-naming your second file (ali), it should NOT erase rani.  

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 4 of 10
(3,878 Views)

no in a same file for example name the file abc.txt. now i run the program and rana save in abc.txt. but now again i put ali in control string and ali is saved in abc.txt means i want that in my file abc.txt now data should be rana ali and some thing whic i again run

example if i run my program ten times then my file should contain rana ten times means i want to apend data in existing file in report generation. i have done that work in files vis but i want to do that work in report generation

0 Kudos
Message 5 of 10
(3,845 Views)
After a couple of requests, you still have not shown your code. What is so secret that you can't attach even a small example?
0 Kudos
Message 6 of 10
(3,842 Views)

sory its not secret there is no labview installed in my system its in the university system

0 Kudos
Message 7 of 10
(3,838 Views)
Are you prevented from taking screen shots? Using a thumb drive? Using email to send an attachment?
0 Kudos
Message 8 of 10
(3,836 Views)

ok i wil try to give u snap. but i was thinking its not a big issue and simple u can tel me easily ok i wil try but my prgoram is so simple sir

 

0 Kudos
Message 9 of 10
(3,824 Views)

What kind of report generation? Word? Are you using the VIs from the report generation toolkit (I guess yes) or plain File I/O functions?

 

Still guessing, you're using the New Report.vi and the Save Report To File.vi. You have wire the path of the report to the report file path input of the Save Report To File.vi and the prompt to replace input is left unwired and use its default false value. In this configuration you will overwrite an existing file. If you want to append the data to an existing file you have to wire the file path to the template input of the New Report.vi (but if your report is not Word or Excel this input will be ignore). To use this input you need to have the Report Generation Toolkit installed.

 

Ben64

0 Kudos
Message 10 of 10
(3,817 Views)