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

Creating a LabVIEW Executable that References Class VIs stored in an LLB

Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version: 8.2
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Toolkits>>Application Builder

Problem:
I have a class in LabVIEW that needs to be referenced from multiple programs. Can I build an executable and have the class VIs compiled into a separate LLB at the same time?

Solution:
In order to compile the class VIs into an LLB, you must first create an LLB Destination. An example project, To NI.zip, has been attached to illustrate this functionality.
  1. From the project explorer, expand the Build Specifications node and double-click the Unit Test Timer llb build specification.
  2. Select Destinations from the category list and click the blue addition sign to create a new destination.
  3. Notice that a destination, Timer 8.2, has already been created as an LLB by selecting Destination is LLB.


  4. After creating the LLB destination, select Source File Settings from the category list.
  5. You can now set your class folder to point the newly created destination from the destination pull-down menu on the right.
  6. Notice that the Timer class folder has already been set to the Timer 8.2 destination.
  7. Selecting Set destination for all contained items will ensure that all the files and folders in the Timer class folder are included in the resulting LLB.


  8. Click the Build button and navigate to C:\To NI\Build\
  9. Timer 8.2.llb should be created along side the executable.


Related Links:
LabVIEW Discussion Forum: LVOOP class plugins in LV binary application

Attachments:


destinations.bmp - destinations.bmp
source_file_settings.bmp - source_file_settings.bmp
To NI.zip - To NI.zip


Report Date: 12/04/2006
Last Updated: 12/11/2007
Document ID: 443AONSN

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