I created a new empty project. After that, I added a TouchPanel (TPC-2006) target to the project. Under "My Computer" in the empty project I have a .lvlib library with about 50 network shared variables. I also have my main VI as well as all of the subVIs that I use within the main VI. Under the "NI TPC-2006 Device" I have my touchpanel VI. There are no subVIs.
Yesterday I created a build specification (Application (EXE)) for the touchpanel VI. However, when I went to actually build the VI into an application it gave me the following error: "NGwrite_imp is a missing VI or C file." Now, I've created applications before and run them on the TouchPanel and never before have I seen that error. After reading something online about having to add files to a project, I found NGwrite_imp.vi and added it to the project under "NI TPC-2006 Device". I then edited my build specification and added NGwrite_imp.vi to the "Always included (*.vi)" list. I tried to build again, but this time I received a similar error about various VI or C files missing. NGwrite_imp wasn't mentioned, but others were. So I found and added all of the VIs to the project and then the "Always included (*.vi)" list. The problem is that there are still three files LabVIEW is giving me errors about. Two of them are in the "Always included" list so I don't know why it says they are missing. The third file does not exist on my computer.
Thinking that I had something wrong with my VI and that if I fixed it, LabVIEW wouldn't complain about missing files I tried to find the offending code. In order to try and figure out what the offending code was, I started to delete various portions of my touchpanel VI and tried to re-build it each time hoping to narrow down where I went wrong. Unfortunately, after deleting practically my entire program it still did not build. I finally got it to build after removing every shared variable node. The thing is, I've built applications with network shared variables before so I don't see how that could be the problem.
I then remembered talking to someone from NI and he mentioned creating two projects. One for the main VI and one for the touchpanel VI. I tried that, but it complained about the shared variables not being in the touchpanel VI project. At that time I started to look around in the "Project Explorer" window and noticed the "vi.lib" folder under "Dependencies". When I looked in that folder, a number of files were missing (in the project with both VIs) as opposed to the project I created scrictly for the touchpanel VI. These files were the ones LabVIEW was complaining about missing. I then removed the "NI TPC-2006 Device" from the project and then created a new target and made a new "NI TPC-2006 Device" (importing my touchpanel VI). This time, all of the files are listed in the "vi.lib" folder. But it still does not build. I have not added the VIs to the "Always included" list since they are in the "vi.lib" folder. Should I try that?
At this point, I have no idea what the problem is. I hope I have explained myself well enough and that someone has a clue as to what is going on. Or can at least offer suggestions on things to try. Right now, I'd be willing to try anything.
Cheers,
-John