LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fieldpoint browser not working in compiled exe

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 

 

 

Message Edited by MichaelBalzer on 09-29-2008 10:00 PM




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
0 Kudos
Message 1 of 3
(3,358 Views)

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" 




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
0 Kudos
Message 2 of 3
(3,341 Views)

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.

Chris Bolin
LabVIEW Partner Program, CLA
Message 3 of 3
(3,321 Views)