<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: forcing vi execution in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/737318#M337652</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Thanks for the great pointers and yes I tried your example. &lt;/P&gt;
&lt;P&gt;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. &lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2008 20:46:45 GMT</pubDate>
    <dc:creator>labview_beginner</dc:creator>
    <dc:date>2008-07-03T20:46:45Z</dc:date>
    <item>
      <title>forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736613#M337250</link>
      <description>&lt;DIV&gt;I have a VI (Move_PDFs.VI)&amp;nbsp;which I call within my application to move some PDF files from source location to target location.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Along the application execution, the user sets the target directory which is updated to a global variable. My source directory is fixed for each execution and is also stored as a global variable.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;In the VI (Move_PDFs.VI) I basically get the source folder, get teh list of all the PDFs that have been created during the application execution, and then move those files to the user input target directly.&amp;nbsp; If I run this VI as a stand alone (using the run button on the tool bar) it works fine. It moves all the files.&amp;nbsp; But if I include it in the main application, even though it is called, it is not executed. By this I mean that the simple messge box in the VI is invoked during the execution of the main application, but the PDFs are not moved. The "list&amp;nbsp; folder" and "move" vi's are not even called. Can somebody help me understand why this is happening? How can I force this VI to execute in the main application?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks in advance.&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Jul 2008 23:06:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736613#M337250</guid>
      <dc:creator>labview_beginner</dc:creator>
      <dc:date>2008-07-02T23:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736618#M337254</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;How do you call the subVI? It would be much easier for us if you could attach your code.</description>
      <pubDate>Wed, 02 Jul 2008 23:15:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736618#M337254</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2008-07-02T23:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736625#M337258</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;apologies for teh b&amp;amp;w images. i was in a hurry and forgot to dump the color images.&lt;/P&gt;
&lt;P&gt;first image shows how the VI (move_PDF) is called in the main application.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/13781e4ff5cf86afba32e6aa3b92ae1c11f2563b/687474703a2f2f6661726d342e7374617469632e666c69636b722e636f6d2f333138332f323633313738393537355f643463383565306331635f622e6a7067" /&gt;&lt;/P&gt;
&lt;P&gt;The second image shows the details of move_pdfs.vi&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/9a480850bebfb22cf260e552395d8564823857fc/687474703a2f2f6661726d342e7374617469632e666c69636b722e636f6d2f333033332f323633323631333738345f306238373565393430345f622e6a7067" /&gt;&lt;/P&gt;
&lt;P&gt;Like I mentioned in my prevoius post, if I include a simple message box in the move_pdfs vi, then there is a pop up which means Labview does go through the vi.&lt;/P&gt;
&lt;P&gt;But if I probe the filenames array or any other element inside the vi, i think "list folder" or "move" commands are not being executed.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2008 23:37:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736625#M337258</guid>
      <dc:creator>labview_beginner</dc:creator>
      <dc:date>2008-07-02T23:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736632#M337262</link>
      <description>&lt;DIV&gt;Keep the diagram window of the subVI open and enable execution highlighting. Anything interesting?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;On a sidenote, there are a few weird things that don't look right. &lt;STRONG&gt;It would be better if you could attach the VIs intead of pictures.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;In the subVI:&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;The upper shift register has no function, because the data stays the same. Inexing into an array with [i] connected to the index terminal is the same as autoindexing at the loop boundary. (delete the upper shift register, "index array", and "array size"&amp;nbsp;and wire the array across an autoindexing tunnel.&lt;/LI&gt;
&lt;LI&gt;The lower shift register seems disconnected on the left, so what is its purpose?&lt;/LI&gt;
&lt;LI&gt;I&amp;nbsp;would very strongly&amp;nbsp;recommend to operate with paths instead of strings.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Maybe once the code is cleaned up a bit, it is easier to tell where the problem is.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2008 23:52:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736632#M337262</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2008-07-02T23:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736671#M337277</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Is it just me or are the images in black &amp;amp; white?</description>
      <pubDate>Thu, 03 Jul 2008 02:13:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736671#M337277</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2008-07-03T02:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736689#M337286</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Thanks for the feedback. It is very annoying that the VI executes perfectly everytime I run my appliction with "move_PDFs" vi in "highlight execution" mode. If I turn the mode off, then the VI does not even go through "list folder" and "move" commands. I also cleaned up the vi and am attaching it with this post.&lt;/P&gt;
&lt;P&gt;Help would be appreciated.&lt;/P&gt;
&lt;P&gt;I forgot to add that after the main application exits with "move_PDFs" not executing correctly,&amp;nbsp;if I just hit the "run" button on front panel of the "move_PDFs" vi it moves all the PDFs to the correct location perfectly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by labview_beginner on &lt;SPAN class="date_text"&gt;07-02-2008&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:20 PM&lt;/SPAN&gt;</description>
      <pubDate>Thu, 03 Jul 2008 03:20:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736689#M337286</guid>
      <dc:creator>labview_beginner</dc:creator>
      <dc:date>2008-07-03T03:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736697#M337290</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;When you turn on execution highlighting and something works, that's a pretty sure indicator that you have a race condition and race conditions are caused by use of global and local variables. From what you have shown, using a global to set the final destination is just silly. You could easily pass the value directly. Do you know if the main is even setting the path correctly? Your problem is in the main and you did not attach that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And, as already mentioned, you should be working directly with paths - not strings. Just use the Build Path function to add a file name to a path.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2008 03:53:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736697#M337290</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2008-07-03T03:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736710#M337299</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Unzip the attached zip file into its own hierarchy (don't run from within the zip file!).&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;It contains a folder with:&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;PathsGlobal.vi&lt;/STRONG&gt;: The global for the paths (I would not do it like that, just duplicating your scenario here)&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;CallMover.vi&lt;/STRONG&gt;: The toplevel VI that lets you move pdf file between two folders ("from" and "to")&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;Move_PDFsMOD.vi&lt;/STRONG&gt;: The subVI tha does the moving (bascally your's, but cleaned up!)&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;Folder "From":&lt;/STRONG&gt; containing three empty and fake&amp;nbsp;pdf files.&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;Folder "to":&lt;/STRONG&gt; that where me move the files.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Just open and run "CallMover.vi". It will show the pdf filed in the two folders.&lt;/DIV&gt;
&lt;DIV&gt;Now select the direction with the enum and press "move" &lt;STRONG&gt;Everything seems to work.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I agree with Dennis that you have a &lt;STRONG&gt;race condition&lt;/STRONG&gt; somewhere in the&amp;nbsp;calling VI.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by altenbach on &lt;SPAN class="date_text"&gt;07-02-2008&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:38 PM&lt;/SPAN&gt;</description>
      <pubDate>Thu, 03 Jul 2008 04:38:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736710#M337299</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2008-07-03T04:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736737#M337311</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;In the two images that I have sent, the first image shows part of the main application.&lt;/P&gt;
&lt;P&gt;i have a flat structure: the first frame is where the PDFs are created. The second frame is where I force the global variable to be updated. And the third frame is where I call the move PDFs.&lt;/P&gt;
&lt;P&gt;I thought this would be logical, and it seems that labview does move through them sequentially. just that it does not call the move_PDFs explicitly. &lt;/P&gt;
&lt;P&gt;I wil try to shy away from globals and will send the path into the VI as input. And will update tomorrow on how things go. &lt;/P&gt;
&lt;P&gt;Thanks for all the help.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2008 05:28:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736737#M337311</guid>
      <dc:creator>labview_beginner</dc:creator>
      <dc:date>2008-07-03T05:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736743#M337314</link>
      <description>&lt;DIV&gt;We really need all your VIs. Could it be that writePDF keeps the file open and thus they cannot be moved, for example?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What does the error ouputs say in the subVI?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;You really should wire the errors and connect them to terminal so the error is propagated to the calling VI.&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jul 2008 05:42:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736743#M337314</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2008-07-03T05:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736746#M337317</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;There are no errors in any sub VIs. I have checked and re-checked. &lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2008 05:59:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736746#M337317</guid>
      <dc:creator>labview_beginner</dc:creator>
      <dc:date>2008-07-03T05:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736976#M337434</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;How can you say that there are no errors when you have not wired the error cluster to all functions within your vi's?&amp;nbsp; Looking at your image, there are many items that are not wired to the error cluster.&amp;nbsp; One of which deals with the file.&lt;/P&gt;
&lt;P&gt;R&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2008 12:28:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/736976#M337434</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2008-07-03T12:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/737171#M337559</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The "list" files will NOT give you an error if it cannot find any matching files, because that is a &lt;U&gt;valid result&lt;/U&gt;. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;If the file list is empty, the FOR loop will be skipped and you don't get an error from the move primitive either.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;One horrible flaw in your code that can lead to errors is the fact that you list the file from a location that is hardwired into the VI, while later you try to move the list of files from a location that you get from a global variable (Default_PDF_Location). Maybe you can do an "equal" on the two and see if they differ when the code is running in your vvarious scenarios.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Have you tried my example?&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jul 2008 15:27:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/737171#M337559</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2008-07-03T15:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/737318#M337652</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Thanks for the great pointers and yes I tried your example. &lt;/P&gt;
&lt;P&gt;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. &lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2008 20:46:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/737318#M337652</guid>
      <dc:creator>labview_beginner</dc:creator>
      <dc:date>2008-07-03T20:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/738910#M338344</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;That's the first thing that comes to mind - continually poll to see when the file exists.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Kevin S.&lt;/DIV&gt;
&lt;DIV&gt;Applications Engineer&lt;/DIV&gt;
&lt;DIV&gt;National Instruments&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Jul 2008 23:20:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/738910#M338344</guid>
      <dc:creator>Kevin_S</dc:creator>
      <dc:date>2008-07-07T23:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/743572#M340708</link>
      <description>&lt;DIV&gt;I just randomly assigned a 2 second delay before the move_PDFs will execute and everything works fine. In worse case I would live with a 2 sec delay but was wondering of the best way to do this. There could be 1 or 2 or 4 or 8 PDF files which could be written to the folder before the move_PDFs should be executed. So I will have to keep polling the folder and counting the # of PDFs before I can execute the move_PDFs subVI. I am wondering whether this logic would take the same amount of time (~2 sec) to execute and would I be wasting unnecessary time writing the code without making it more efficient. With 2 sec delay I have tested that all 8 files are in the folder (worse case) before move PDFs is executed.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Jul 2008 17:28:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/743572#M340708</guid>
      <dc:creator>labview_beginner</dc:creator>
      <dc:date>2008-07-14T17:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/744441#M341108</link>
      <description>You might run in to problems if your PDF creation takes longer than two seconds.&amp;nbsp; Like Kevin_S said, polling is probably the best and easiest way.&amp;nbsp; You might want to have a timeout in your polling loop in case your PDF creation were to fail.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Jul 2008 16:15:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/744441#M341108</guid>
      <dc:creator>Jeremy_B</dc:creator>
      <dc:date>2008-07-15T16:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/746581#M341999</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Ok!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I keep bugging everybody but I have still not been able to elegantly tackle the issue of race condition between PDFCreator actually printing the PDF and a subVI "movePDFs" trying to move these printed PDFs to another location.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I tried to use following two methods:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;1) keep polling the folder where PDFCreator is writing the PDFs. The moment I have 'n' (known number)&amp;nbsp;files in the folder, come out of the while loop and then execute subVI "movePDFs" ---- i think if i can implement this correctly, will be the most elegant solution. But it seems that there is a time lag between a the last PDF showing up in the folder and the PDFCreator actually finishing printing the last PDF. So movePDFs is still invoked a tad bit earlier than I would like it to be.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;2) looked up a "folder size" functionality in the the forums and found one which will give me the total size of the folder. &lt;/DIV&gt;
&lt;DIV&gt;Make sure there are 'n'&amp;nbsp;PDF files in the folder&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Then I check for a ballpark size (to be greater than a certain number of bytes) of the folder&lt;/DIV&gt;
&lt;DIV&gt;the invoke movePDFS. &lt;/DIV&gt;
&lt;DIV&gt;In this case too I am facing the same issue. The folder size funtion is being called before PDFcreator actually finishes printing the last file. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Any hints on how to check whether PDFCreator has actually finished printing? &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by labview_beginner on &lt;SPAN class="date_text"&gt;07-17-2008&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:26 PM&lt;/SPAN&gt;</description>
      <pubDate>Thu, 17 Jul 2008 22:26:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/746581#M341999</guid>
      <dc:creator>labview_beginner</dc:creator>
      <dc:date>2008-07-17T22:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: forcing vi execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/747241#M342277</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I assume that you're using ActiveX from inside LabVIEW in order to use the PDFCreator.&amp;nbsp; Another option that you might have would be to monitor the print job number.&amp;nbsp; There's a specific property that you can select from the property node titled "cCountOfPrintjobs".&amp;nbsp; I would imagine that you could monitor this number until the number of jobs returns to zero.&amp;nbsp; Until then, you know printing is still under way.&lt;/P&gt;
&lt;P&gt;One idea to investigate,&lt;BR /&gt;Kevin S.&lt;BR /&gt;Applications Engineer&lt;BR /&gt;National Instruments&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2008 18:18:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/forcing-vi-execution/m-p/747241#M342277</guid>
      <dc:creator>Kevin_S</dc:creator>
      <dc:date>2008-07-18T18:18:33Z</dc:date>
    </item>
  </channel>
</rss>

