05-24-2007 07:22 PM
05-24-2007 09:06 PM
05-24-2007 10:29 PM
Thanks.
But generating the correct file path is not my problem. My problem is that the invoke node returns an invalid file path error for a path that is proven to be valid.
Additionally, while you are probably correct about the method for specifying the path of a VI located in an exe, please see the following note pertaining specifically to shared variable distributions:
If you plan to distribute a stand-alone application that uses shared variables, do not include the .lvlib file in an LLB or in the executable. Use the Source Files Setting page of the Application Properties dialog box to change the Destination of the .lvlib file to a destination outside the executable or LLB. You can deploy the shared variables in two ways:
from http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/project_variables/
Jeff.
05-25-2007 06:03 AM
05-25-2007 10:22 AM
Hi,
Thanks for the help.
Upon working with this further, I've noticed that this error only occurs when attempting to deploy 2 (out of 😎 libraries. The other 6 deploy successfully. I suspect that the two libraries that give me trouble do so because I'm testing the deployment capability on a PC that is not configured with all of the hardware, VIs, XControls, etc. to which the shared variables and libraries refer.
I was unluck enough to choose one of the problematic libraries as my test case.
In summary, the method for deploying shared variables as described in the LV documentation and illustrated by Adam works correctly. But if there is a problem deploying the library, LabVIEW generates a misleading error message that would make the user think that the library file path is incorrect, when it isn't. Perhaps NI could fix this in a future release?
Thanks again for the help.
Jeff.
03-29-2008 03:22 AM
Hi Mr. Jeff
actually now I'm facing the same problem,
so I'm wondering if there's a solution for this problem The NI came up with or not yet
I'll be so thankfull for cooperation
03-31-2008 09:50 AM
Hi Mahmoud,
It looks like this is a duplicate post on using Shared Variables in an Executable.
Regards,
Lauren
04-08-2008 08:23 AM
04-09-2008 11:28 AM
Hi Christian,
You should be able to deploy a library that contains custom controls. One thing to keep in mind, though, is that custom shared variables do not support RT FIFO.
Take a look at the following KnowledgeBase article on creating a shared variable for a cluster.
Regards,
Lauren