07-03-2008 12:59 AM
There are no errors in any sub VIs. I have checked and re-checked.
07-03-2008 07:28 AM
How can you say that there are no errors when you have not wired the error cluster to all functions within your vi's? Looking at your image, there are many items that are not wired to the error cluster. One of which deals with the file.
R
07-03-2008 10:27 AM
07-03-2008 03:46 PM
Thanks for the great pointers and yes I tried your example.
I think I know where is issue is - I am using PDFCreator to print Excel into PDFs in the subVI Write_PDFs. Then I call the Move_PDFs. But I think there is a certain time required to print the Excel sheet to PDF and the Move_PDF is being called even before the PDFCreator is done writing the PDFs. Hence the "List Folder" function does not find any PDFs in the folder and hence the For loop is not executed.
Any suggestions how I should tackle this issue? Once way is to check the folder before exiting the Write_PDFs subVI that there actually is a PDF file in the folder - which means PDFCreator has finished writing the file. Are there other more elegant ways to do this?
Thanks.
07-07-2008 06:20 PM
07-14-2008 12:28 PM
07-15-2008 11:15 AM
07-17-2008 05:25 PM - edited 07-17-2008 05:26 PM
07-18-2008 01:18 PM
I assume that you're using ActiveX from inside LabVIEW in order to use the PDFCreator. Another option that you might have would be to monitor the print job number. There's a specific property that you can select from the property node titled "cCountOfPrintjobs". I would imagine that you could monitor this number until the number of jobs returns to zero. Until then, you know printing is still under way.
One idea to investigate,
Kevin S.
Applications Engineer
National Instruments