Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Passing Parameters Directly (Embedded Development Module)

LabVIEW Microprocessor SDK 2.5 Help
August 2007

NI Part Number:
372197A-01

»View Product Info

Passing parameters for C function calls in FuncList.dat have the following requirements:

  • Place an @ character at the beginning of the line of C code.
  • Use a format code in the form @ xn to access the subVI inputs and outputs. x represents a character that determines if the parameter is an input or output and the way the LabVIEW C Code Generator passes the parameter. Refer to the following bullet for more information about how you indicate the way the parameter is passed. n is the number of the input or output on the connector pane. The numbering on the connector pane is not intuitive. You might have to use trial and error to find the correct number.
  • You indicate how the parameter is passed with the following characters:
    • I is an input passed by reference.
    • i is an input passed by value.
    • o is an output passed by reference.
    • it is the type of input.
  • Place a value in parentheses after a format code to specify a default, or unwired, value for the input. For example, if you want to pass input 3 by reference with Null as the default value, the syntax is @I3(Null).

Resources


 

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