Calling External Code in LabVIEW PDA and Touch PanelHardware: PXI/CompactPCI>>Controllers
Problem: I would like to call external code in my LabVIEW application for PDA or Touch Panel. How can I use the Call Library Function Node to call this code? Solution: Calling external code in LabVIEW PDA and LabVIEW Touch Panel Modules is very similar to calling code in LabVIEW for Windows. Calling external code can be done through the Call Library Function Node in all versions of LabVIEW, or through the Inline C Node in LabVIEW 8.5 and newer. Using the Call Library Function Node (All Versions of LabVIEW) The Call Library Function node requires the function name and parameters to be defined correctly. There are two methods of defining the parameters. One is to manually type in the correct name of the function that you will be calling, along with the correct parameters and parameter types. The second method is to create a stub DLL.
Once the Call Library Node has been configured with the correct function and function parameters, either done through a stub DLL or manually, the code is ready to be built. Create a new Build Specification to create an Executable and add the .c file to the Additional files field in the Build PDA Application dialog box. Once the VI is built it can be downloaded to the device and executed. Using the Inline C Node (LabVIEW 8.5 and above) The easiest way to execute C code in LabVIEW 8.5 is to use the Inline C Node. To execute C code using the Inline C Node, simply place the node on the block diagram where you want the code to execute, and type the C code into the node. Parameters can be passed in and out of the node through input and output tunnels. For more information on using the Inline C Node, see the LabVIEW Help or the Calling External Code example for the LabVIEW PDA Module and LabVIEW Touch Panel Module. Related Links: LabVIEW 8.5 Help: Configuring the Call Library Function Node LabVIEW 8.5 PDA Module Help: Inline C Node (Embedded Targets, PDA Module, Touch Panel Module) Developer Zone Tutorial: An Overview of Accessing DLLs or Shared Libraries from LabVIEW KnowledgeBase 290FIKDM: Troubleshooting Call Library Node Problems in LabVIEW Developer Zone Tutorial: Calling External Code in LabVIEW PDA for Palm OS - Battery Information Example Developer Zone Tutorial: Calling External Code in LabVIEW PDA for Pocket PC - Battery Information Example Attachments:
Report Date: 11/13/2003 Last Updated: 05/06/2009 Document ID: 33CARIQS |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
