NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to limit number of reports

Hi,
 
The production testers which run under TestStand has been accumulating many reports.  I'm looking for a solution to this problem.  Can TestStand limit the number of reports it put in the directory?  (automatically erased the oldest ones... )
 
I welcome any suggestion/advice regarding this matter.  It will help me as well if you could tell me how you had solved this issue.
 
Thanks
Rafi
0 Kudos
Message 1 of 6
(3,568 Views)
Rafi.
 
There a couple of ways that you could go around deleting old reports, due to TestStand not including an automatic method of deleting reports generated before a certain date.
 
First, you could not save old reports at all.  (I do not know what you would like to do with the reports that TestStand generates, so I am not sure if this solution will work for you)  If you would like to just see reports once they are generated and not store them for future use, I would recommend going to TestStand Report Options and selecting the "Use Temporary File" checkbox.  By selecting this option the report will be generated, but once the execution is terminated the report will be deleted.
 
The second option is to add a step to your test sequence that automatically deletes old reports when the test executes.  You could create a snippet of code that deletes all files in your report directory that are older that X days old and call the code from a code module at the beginning or end of your test sequence.
 
 
Regards,
 
Santiago D
0 Kudos
Message 2 of 6
(3,543 Views)

Hi Santiago and thank you very much.

1) I like the second options.  (I know how to generate just one report with same name so no multiple reports are generated).

   

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

Hi Santiago and thank you very much.

1) I like the second options.  (I know how to generate just one report with same name so no multiple reports are generated).

    U

0 Kudos
Message 4 of 6
(3,536 Views)

Woops...., don't know what happened....

 

Anyway...can you point me to an example that delete files according to some X days or date criteria?  Or, can you attach some sample example.  I don't think I know how to do that.

 

Thank you in advance

Rafi

0 Kudos
Message 5 of 6
(3,538 Views)
Rafi,
 
LabVIEW has a number of different VIs that you can use to manipulate and read the properties from files.  In particular, you would be interested in the Open, Delete, File/Directory Info, and Close File I/O VIs.  Although you can find the reference for these VI's in the LabVIEW help, you can also find it on the web at the following URL.
 
[http://zone.ni.com/reference/en-XX/help/lv/71/glang/Advanced_File_Functions/]
 
With these VI's you will be able to write the LabVIEW VI to delete files that have been created before a certain date.
 
 
Regards,
 
Santiago D
0 Kudos
Message 6 of 6
(3,522 Views)