09-29-2008 09:58 PM - edited 09-29-2008 10:00 PM
Hello,
I'm writing a logging application that periodically logs counts from cFP counter modules. There is a configuration dialog, which relies on the fieldpoint browser, where the user can select which fieldpoint counters to read and log data from. The config dialog runs fine when running from source - I can happily browse to an .iak file and see what modules and IO points are available to use.
The problem arises when I build the program into an exe, then try to browse. I get an error dialog stating "Cannot load the Browse dialog. Some necessary components are missing. To correct the problem, reinstall the driver software that is associated with this control".
Figuring something might've been wrong with my application, I created a new empty project and added a single VI that contains only the Fieldpoint I/O point browser on the front panel.
Running from source, I am able to see the fieldpoint browser with no problem. Again when I try to compile an exe and run the browser, I get the above error message. Attached is the project and VI in which the error occurs. (Edit: The forum isn't letting me attach the zipped project, but you can see the source above)
I have the following software versions installed:
LabVIEW 8.5.1
Fieldpoint 6.0.1
Measurement & Automation Explorer 4.4.1
Does anyone have any idea how to fix this problem? It seems like the build is missing something, or perhaps I am. Any help would be greatly appreciated.
- Michael
09-29-2008 11:12 PM
I found a solution to the problem on the LAVA forums - http://forums.lavag.org/FieldPoint-IO-Point-in-executable-t9073.html
"When using a FieldPoint IO Point as a front-panel object, it works fine in the source code.
When compiling into an executabel, the object doesn't work, however, cause it cannot
find all the resources it needs to operate. This has been confirmed by NI, which also has
set up a work-around;
1) in the folder for the executable, create a folder vi.lib
2) in this vi.lib, place a copy of the file event_ctls.llb
3) also in this vi.lib, insert in these subfolder the file \FieldPoint\SubVIs\FPLVMgr.dll"
09-30-2008 11:26 AM
Hey Michael,
Thanks for posting your find! The information is also available in the NI Knowledgebase article FieldPoint IO Point Does Not Work in an Executable.