LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy Library from executable

I'm using 8.2, SV and DSC. My program deploys shared variables at start with Deploy Library. On my PC it works fine, both in .vi and .exe format. But when i install and run it on another PC, i get this error:
 
Error 1 occurred at Invoke Node in PRC_Deploy.vi->Deploy Library.vi->(my program).vi
Possible reason(s):
LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
Method Name: Library:Deploy Library
 
But i checked the path, it's correct, it points to a .lvlib outside the .exe. The .lvlib only contains SV.
The target PC does not have a Labview development system, but i bundled into the installer:
-Runtime engine 8.2
-Enhanced DSC support for 8.2
-NI Variable engine
Maybe i need something else?
0 Kudos
Message 1 of 16
(6,305 Views)

Hi,

I don't know if this can help you, but in last days I had some problems similar to yours with property nodes.

Please try to do the following things:

From Labview, go to Tools >> Options... from here select the category "Block Diagram" and disable (remove the check) the option "Enable automatic error handling dialog" (see the screenshot atached below). Otherwise you can simply create an indicator and connect the error output of the property node, that gives you the error, to this indicator.

Let me know if this change solve the problem.

Have a nice day

carlo> 

0 Kudos
Message 2 of 16
(6,292 Views)

Thanks for your interest, but i don't understand... why care about what i do with the error message AFTER the error has occurred??

However, automatic error handling is already disabled in my VI, the error is logged to a text file and not popped up in a window

0 Kudos
Message 3 of 16
(6,286 Views)

Hi,

Analyzing your error it seems that the problem is the path of the library. Can you check if the path is correct for the target pc on which the executable should work? If so, and the problem persists, can you create a simple vi that only do the deploy of the library and that give the same error so I can take a look to it?

Bye

carlo>

0 Kudos
Message 4 of 16
(6,282 Views)
Of course i checked the path! I made a very simple test (attached), with same result. It allows to select the path to be sure.
 
The RTS is not yet installed, may it be the cause? But there is no I/O server in my library.
0 Kudos
Message 5 of 16
(6,276 Views)

Hi,

Doing some researches, the only things I found, related to your problem are:

1. The document you found (One possibility is to follow what said in it and check if this solve the problem, even if in your library there's no I/O server).

2. I also found a specific bug related to "Shared Variable bound to an item(SV or I/O server)". It is said that:

If one creates a library and within this Library creates a Variable bound to the I/O server over the "Browse>>Project Items Dialog" resulting in a path like "My Computer\Lib1.lvlib\IOServer\Group\Item" the "Error 1 Occured at Invoke Node in PRC_Deploy.vi" effectively occurs (obviously creating a new vi and use "Deploy Library.vi" to programatically deploy the Libraries created).

While if one creates a library and within this Library creates a Variable bound to the I/O server over the "Browse>>Network items" resulting in a path like "\\host\Lib1\IOServer.Group.Item"  the error doesn't occurs.

a possible workaround then is to use this second method, or it is also suggested to put the I/O server into the same library to deploy.

I hope this help

carlo>

0 Kudos
Message 6 of 16
(6,265 Views)
Thank you. My variables are not bound to anything yet. In the example i attached, there is no I/O server at all. Did you try to run it?
0 Kudos
Message 7 of 16
(6,239 Views)

Hi,

I tried your executable and I saw the error you mentioned but unfortunately you sent me an "*.exe" and so it is difficult to me to debug your example application.

It should be useful if you can run the exe on a pc (different from the one you used to develop the vi and build the executable) on which you have Labview, so we can better understand if the problem concern the lack of software or something else.

Best Regards

carlo>

0 Kudos
Message 8 of 16
(6,229 Views)
Was there any resolution to this problem? I have the same thing going on. Might this be a firewall issue? Let me know what the solution was.

Kevan -
0 Kudos
Message 9 of 16
(5,035 Views)
Hi solarburnDOER,

I have rebuild the project with deployment of this lvlib - I had no problems with it - neither in the VI nor in the EXE. I've attached the whole project including the build.

The firewall isn't the problem. Something is wrong with the setup - The source binding rt device has not to be online. Maybe there was a problem with the project file. Does it work with my attached project?

Kind Regards,
Joachim
0 Kudos
Message 10 of 16
(5,003 Views)