I am making an application, that is used for distribution, to create a palette. In my VI I take the VIs in a file and create a palette with them using the write palette VI. When I run the VI it works perfectly, but when I build it into a .exe I get the attached error. Is there a way around this?
That makes sense that it doesn't work because you aren't running it inside of LabVIEW. Therefore, there is no palette to write to. What you could do is create a *.mnu file and just put it in a location so that LabVIEW will notice it next time it is started.
If LabVIEW is running, you may be able to invoke the paltte write or refresh via VI Server.
Ok, I will try editing my vi to create a dumby *.mnu file to be called for the write palette.vi.
Once the application creates the *.mnu file the palette can be accessed from the block diagram on any VI on that computer.
What is it that you are trying to accomplish? What is the point of the operation?
Seems like somebody is trying to write a VIPM.
Tried calling the application after creating the *.mnu file and calling it still received the same error.
The files does create a *.mnu with items the write palette.vi has to take an empty cluster of items any way before it can bundle the items like in the create palette.vi example so was giving what zealot said a shot. That is true everyone would have the deployment system. Trying to make an application because I was told to, if there is not away I will settle with distributing the VI.