Select Tools»Build Application or Shared Library (DLL) and set the Build target to Shared Library on the Target tab of the Build Application or Shared Library (DLL) dialog box. Click the Source Files tab, select a VI from the listbox, and click the Define VI Prototype button, or add a VI to the listbox by clicking Add Exported VI to display the Define VI Prototype dialog box.
Use this dialog box to define the parameters of the exported VI for a shared library.
This dialog box includes the following components:
Function NameDefines the name of the function.
Standard Calling Conventions and C Calling ConventionsSelect either item to select which calling convention the VI prototype uses.
ParametersLists the current parameters for the VI prototype. You can configure the parameters list using the following buttons along the right side of the parameters listbox. return value is the default parameter and cannot be deleted.
AddAdds a parameter from the controls and indicators of the VI. If you did not set up the connector pane for the VI, the Add button is grayed out.
RemoveRemoves the selected parameter from the parameter list.
Move UpMoves the selected parameter up one level in the parameter list.
Move DownMoves the selected parameter down one level in the parameter list.
Current ParameterUse the items in Current Parameter to configure the settings for the selected parameter. You can set the name; change the type to input, output, or input/output; select the VI control or indicator; and change other settings depending on the options available to the parameter. LabVIEW provides only valid options for each parameter.
Function PrototypeDisplays the code generated using the current settings for the function prototype. You cannot edit the code directly in the Function Prototype field.