Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
3 ratings:
 3.66 out of 5     Rate this Document

LabVIEW 8.x FieldPoint Executable Not Working

Hardware: Compact FieldPoint, FieldPoint

Problem:
I built an application in LabVIEW 8.0 or 8.2 that will run on a host computer and access a FieldPoint unit. I configured the FieldPoint in my project. The application worked before I built it into an executable. After building the VI into an executable the application stopped working. What happened?

Solution:
If you drag a FieldPoint IO Point from the LabVIEW Project Explorer into a VI the IO Point references the current project's iak file. However, when a VI is built into an executable it no longer belongs to the project and this link to the iak file is broken. As a result the built application uses the default FieldPoint configuration specified in Measurement and Automation Explorer. To get the executable to run correctly you have two options:

  • Open and save the iak file in Measurement and Automation Explorer on the deployment computer:
    1. Open Measurement and Automation Explorer (MAX)
    2. Select Tools » FieldPoint » Open...
    3. Browse to the .iak file and click Open
    4. Select File » Exit
    5. Click Save if prompted to save the .iak file
  • Change the FieldPoint IO Point to reference the iak file by its full path on the block diagram:
    1. After dragging the IO Point into the development VI click the drop down menu for the FieldPoint IO Point constant.
    2. Click Browse
    3. Select the View Configurations tab
    4. Click <New>
    5. Give the configuration a name and navigate to the iak file you would like to reference (usually the one created with the project)
    6. Click Add
    7. Click Browse FieldPoint
    8. Select the IO point under the new configuration
    9. Click OK

After building the VI into an executable the application should continue to work. However, the iak file must remain at the same location that you specified in the configuration for the FieldPoint IO Point. If you are moving the executable to another computer the iak file must be located at the same absolute path on the deployment computer(i.e. Development computer iak file path = Deployment computer iak file path)

You do not need to include the iak as a source file but must assure that the file is in the correct location on the deployment machine.



Related Links:
KnowledgeBase 19HBJ2LK : Creating a FieldPoint Executable in LabVIEW or LabWindows/CVI
KnowledgeBase 3ELE42EJ : FieldPoint Executable Cannot Find .IAK File

Attachments:





Report Date: 08/29/2006
Last Updated: 08/06/2007
Document ID: 40SCUSVF

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit