LabVIEW Embedded Development Module Target Distribution Guide Manual

LabVIEW Embedded Development Module Target Distribution Guide Manual
Pages 35
Views 317
Downloads : 3 times
PDF Size : 290.7 KiB

Summary of Contents

LabVIEW Embedded Development Module Target Distribution Guide Manual

  • © National Instruments Corporation2-1 1,Target Distribution 1, Guide2Wrapping Drivers and Math LibrariesApplications for an embedded target often use C-based libraries and functions that are unique to that particular embedded target. For example, a target might have specific libraries for accessing I/O, optimized math functions, or other unique features such as a bar code reader or LCD. One way end users can access these target-specific functions in LabVIEW is by using a Call Library Function Node in their application every time they want to call one of these functions directly. However, this process can add unnecessary complexity to an application.You can make the task of calling these functions easier for the end user by wrapping C-based target-specific functions into subVIs, which are VIs called from the block diagram of other VIs. Wrapping functions into subVIs is a good option if you plan to bundle your embedded target with LabVIEW and resell the product. Being able to use subVIs instead of C-based target-specific functions is an attractive product feature, especially for end users without a lot of embedded development experience.Creating SubVIs for Target-Specific FunctionsLabVIEW provides the following options for wrapping C-based functions into subVIs:•Use a Call Library Function Node in a subVI.•Use an Inline C Node in a subVI.•Use the Import Shared Library Wizard.•Modify the Funclist.dat file to substitute a C function call for a subVI. If you use the Call Library Function Node or Inline C Node, you must manually build a connector pane and create an icon for the VI to create the subVI. Refer to Chapter 13,3, 9,Creati 13,ng Ico 13,ns and Palettes 13,, for information