Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Define VI Prototype Dialog Box

LabVIEW 2011 C Generator Help

Edition Date: June 2013

Part Number: 373144C-01

»View Product Info

Requires: C Generator

From the Source Files page of the C Code Generator Properties dialog box, select the VI in the Exported VI listbox and click the Define Prototype button to display this dialog box. The dialog box also displays automatically when you move a VI to the Exported VI listbox.

Use this dialog box to define the parameters of an exported VI prototype.

This dialog box includes the following components:

  • Function Name—Defines the name of the exported function in the generated C code.
  • Parameters—Lists the current parameters for the VI prototype. You can configure the Parameters list using the following buttons along the right side of the Parameters list. returnvalue is a required parameter that you cannot delete. returnvalue must be a scalar value.
    Note  If you want to include a control or indicator as a parameter, you must use the connector pane of the VI to configure it as an input or output.
    • Add—Adds 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 dimmed.
    • Remove—Deletes the selected parameter from the Parameters list.
    • Move the selected parameter up one—Moves the selected parameter up one level in the Parameters list, which modifies the order of the parameters in the function prototype.
    • Move the selected parameter down one—Moves the selected parameter down one level in the Parameters list, which modifies the order of the parameters in the function prototype.
  • Current Parameter—Allows you to configure the settings for the selected parameter. Available settings differ depending on the type of parameter. LabVIEW provides only valid settings for each parameter.
    • Name—Specifies the name of the selected parameter.
    • Param Type—Specifies whether the selected parameter type is input or output.
    • VI Input/VI Output—Associates an input or output of the VI with the current parameter.
    • Pass By—Specifies the method the parameter uses to send data.
      • Array Data Pointer—Uses array pointers to pass data in the generated C function.
      • LV Array—Uses LabVIEW arrays to pass data in the generated C function.
    • Input Length—Specifies the length of the 1D array input as a new or existing parameter in the Parameters listbox. The data type of the new or existing parameter must be a signed or unsigned 32-bit integer.
    • Output Length—Specifies the length of the 1D array output as a new or existing parameter in the Parameters listbox. The data type of the new or existing parameter must be a signed or unsigned 32-bit integer.
  • Function Prototype—Displays the C code generated using the current settings for the function prototype. You cannot edit the code directly in this field.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit