LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

print report vi problem

Hi

When I used the Print Report.VI , it automatic generate a report in a \temp folder everytime when called. When the automatically controlled test stand has been run for a while, it almost generated about 1000 files. And, it happened once the generated file had the same name as a existing file, trigged the dialog appeared(asking for replacing or cancel), cause the program hauled over night. Should we change the default setting of this VI?
Thanks
Lian
0 Kudos
Message 1 of 2
(2,042 Views)
You should use a unique name for the file, then you would not get the dialog. Get current time and data and change to a string. Append this string to the file name. When report vi is called, the file will be unique and no dialog will appear. The report vi will generate a file eveytime it is called. If you feel that there are too many files, you will have to code the main vi to call the report vi something other than every time it loops. You can use Quotient & Remainder function with a case structure to call the report vi every 5th loop or so (Divide iteration number by 5 and call report vi only when remainder is 0).
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 2
(2,036 Views)