07-02-2014 04:20 PM
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?
07-02-2014 04:25 PM
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.
07-02-2014 04:33 PM
07-02-2014 04:36 PM
Ok, I will try editing my vi to create a dumby *.mnu file to be called for the write palette.vi.
07-02-2014 04:40 PM
Once the application creates the *.mnu file the palette can be accessed from the block diagram on any VI on that computer.
07-02-2014 04:40 PM
What is it that you are trying to accomplish? What is the point of the operation?
Mike...
07-02-2014 04:47 PM
@mikeporter wrote:
What is it that you are trying to accomplish? What is the point of the operation?
Mike...
Seems like somebody is trying to write a VIPM.
07-02-2014 04:49 PM
07-02-2014 05:11 PM
Tried calling the application after creating the *.mnu file and calling it still received the same error.
07-02-2014 05:17 PM
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.