LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Touch Panel Target missing VI or C file build error

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
0 Kudos
Message 1 of 3
(6,434 Views)
John,

Are you using any Waveform Measurement VIs in your application?  Additionally, what version of LabVIEW and Touch Panel Module are you using?

Have you tried copying your project and slowly removing bits and pieces of your code to try and narrow down exactly what is causing the error itself?  Rather than the strange missing files, maybe start narrowing down your code itself.
Regards,

Jared Boothe
Staff Hardware Engineer
National Instruments
0 Kudos
Message 2 of 3
(6,424 Views)
Jared,

I am not using any Waveform Measurement VIs.  I am using LabVIEW 8.5.1 with Touch Panel Module 8.5.1.

As for narrowing down the code, I tried that.

Edit: As I was typing up this reply, I started to mess around with the code so I could tell you exactly what steps I had taken and I got it to work.  I had to replace all instances of read/write nodes for three of my shared variables. (I just deleted the nodes from the VI and re-dragged new ones from the shared variable library. I didn't create new variables themselves)  I'm about to try running the program on the Touch Panel, where I'm sure I'll run into other problems, but at least it builds now.  Do you have any idea why those shared variables were causing the problem?  I guess it isn't too important at this point, but I am curious.

Thanks,
-John
0 Kudos
Message 3 of 3
(6,415 Views)