04-27-2011 09:07 AM
I have some code which is deployed a realtime target which I call dynamically. I also want to use the same code dynamically on a PC in the same project.
This all works fine when running the code in interpreted form. However, I cannot add the dynamically called VI for a build specification on my PC if the VI is under the RT target in the project. I can only include it in the build specification which is associated with the RT target's software.
How can I use this VI dynamically in both places and ad it to the build specifications without having two copies of it?
Solved! Go to Solution.
04-28-2011 05:14 PM
Hi kgolden,
There is not going to be a way to run the vi on a PC if is on the RT target. You will need a copy of the vi on the RT target and the PC.
<Brian A | Applications Engineering | National Instruments>
04-29-2011 08:59 AM
I actually found a way by using a static vi reference:
So instead of supplying a path to the file to the "open vi reference," I just load the VI statically and then supply its name to open a re-entrant instance of it. This solution has the added advantage of treating the dynamically called VI as if it were dropped onto the block diagram - in that I don't have to explicitly include the vi file in the build specification.