Chapter 2Wrapping Drivers and Math Libraries 1,Target Distribution 1,Guide2-2ni.comabout icon creation. You also can refer to the Creating SubVIs topic in the LabVIEW Help for information about creating connector panels and icons for subVIs.TipThe Import Shared Library Wizard builds a connector pane and creates an icon for the VI by default.NoteBecause embedded target-specific functions cannot run on a Windows target, you might want to use a Conditional Disable structure in wrapper VIs to add an alternative implementation for Windows targets. Adding an implementation for Windows targets gives the end user more options for debugging an application and allows the end user to test parts of an application without connecting the target device to the computer. Refer to the LabVIEW Help for information about using Conditional Disable structures.Using a Call Library Function Node in a SubVIRather than requiring end users to use a Call Library Function Node every time they want to call C-based functions, DLLs, or shared libraries, you can create a subVI that uses a Call Library Function Node to make the call. End users then use your subVI in the same way they use other subVIs in LabVIEW, which is helpful for LabVIEW programmers who might not also be text-based programmers.To create a subVI that calls a C-based function, place a Call Library Function Node on a blank block diagram and use a function prototype that matches the C function you want to call. Call Library Function Nodes consist of pairs of input and output terminals. Right-click the node and select Configure from the shortcut menu to display the Call Library Function dialog box, which you can use to specify the library name or path, function name, calling conventions, parameters, and return value. When you click the OK button, the node automatically resizes to have the correct number of terminals and sets the terminals to the correct data types.After you configure the Call Library Function Node, right-click each input terminal and select Create»Control from the shortcut menu. Right-click each output terminal and select Create»Indicator from the shortcut menu.Refer to the Using External Code in LabVIEW topic in the LabVIEW Help for information about Call Library Function Nodes.