08-27-2017 10:25 PM - edited 08-27-2017 10:26 PM
Hi,
I am trying to programmatically build and deploy an executable file to my RT. I get through the build stage but once the program arrives at the Deploy.vi, i get this error. I am not sure exactly how to get around this problem. I have searched to no avail. Does anyone have any idea what it could be?
Thanks!
08-28-2017 12:20 PM
Hey Muri777
Try to remove any unwanted spaces in the file name.
The following characters should not be present in any file name: \ / : * ? " < > |
This error could also occur if you specify a file name without a drive path inside a file path entry. You need to make sure that your drive path is included along with your file name (i.e. C:\filename or E:\filename).
08-28-2017 05:51 PM
Hi
I have tried this. The problem seems to be deeper because the Build VI uses the same base and it builds fine. I am not sure what else it could be. Hopefully someone from NI can help
08-29-2017 03:34 AM
Is it really the project file you should deploy?
/Y
08-29-2017 03:44 AM
Yes it is the only lvproject file there (: the Build function just before it works fine. Only the deploy doesnt work
08-29-2017 07:47 AM
Have you reviewed this post?
https://forums.ni.com/t5/LabVIEW/LabVIEW-Real-Time-Failed-to-Deploy/td-p/1575882
http://digital.ni.com/public.nsf/allkb/0BF52E6FAC0BF9C286256EDB00015230
08-29-2017 05:37 PM
Thanks for the replies.
I can deploy to the RT manually by clicking the build specification in the LabVIEW project and clicking deploy. But when I try to do it programmatically it doesnt work. I have reviewed the links you have posted and they are not useful to me 😞 😞 😞 does anyone at NI have any idea why?
08-30-2017 06:38 AM
Here at NI we know that this error can happen for two main reasons:
1. If you have named your executable or RT application with an invalid filename character such as a carriage return or any of the following characters: \ / : * ? " < > |
2. This error can also be caused by VIs that are located on a network drive or spread across several different drives on the computer. Move the files to a single local drive and place them in the same directory, or mount the network location to a local path and the build should complete successfully.
08-30-2017 10:39 PM
Hi again,
The path to the RT and the project does not have any illegal characters. I have changed the name file to pure text to no avail.
And the VIs are all located in the one main folder together so that cant be the problem either 😞 are these the only two causes?
08-31-2017 10:18 AM
so i can produce this (kind of) error on demand:
i have a test-case vi, where i use a vi that communicates via queue, which is non existent for this test, so an error is thrown from Enqueue Element, that looks like yours (except for filenames).
In this case it is the empty queue reference that is input into "Enqueue Element".
could this be happening for you too?
regards jwscs