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

Limitations with Structures (C Generator)

LabVIEW 2011 C Generator Help

Edition Date: June 2013

Part Number: 373144C-01

»View Product Info

Formula Nodes

Formula Nodes have the following restrictions:

  • You must use strict C code or LabVIEW cannot build the VI into an application. LabVIEW does not check for strict C code at edit time.
  • Arrays and clusters are unsupported in the Formula Node.
  • You cannot define variables inside of a Formula Node. For example, int x; and double y; result in an error when you build the VI into an application. The only way to create variables in a Formula Node is to create the variables as inputs and outputs.
  • The ** power function is unsupported. To perform a power operation in a Formula Node, you must use the pow() function. For example, replace Y=X**4; with Y=pow(X,4);.
  • You cannot declare data types for the inputs or outputs. If you declare outputs inside of a Formula Node, the Formula Node causes syntax errors in the generated code. Create an input with the same name and type as the output to avoid declaring the output inside of a Formula Node.
  • All Formula Node outputs are floating-point values.

Feedback Nodes

Feedback Nodes have the following restrictions:

  • Setting Delay on the Configuration page of the Properties dialog box has no effect. The value of Delay defaults to 1.
  • The Feedback Node always initializes on first call of the VI. Right-clicking the initializer terminal and selecting a value for Globally Initialize from the shortcut menu has no effect.

Conditional Disable Structure

Use the Conditional Disable structure to execute a subdiagram based on the target operating system.

When you add a subdiagram to the Conditional Disable structure, you must set the Value of the TARGET_TYPE symbol to Embedded in the Configure Condition dialog box. When the LabVIEW C Generator generates C code for a VI that contains a Conditional Disable structure, the C Generator generates C code only for the subdiagram with the Value of the TARGET_TYPE symbol set to Embedded. To generate C code for the Conditional Disable structure, the structure also must include a subdiagram with the Value of the TARGET_TYPE symbol set to Windows. While the C Generator does not generate C code for the subdiagram that executes in the Windows target, the subdiagram for the Windows target cannot contain broken code or unsupported functionality.


 

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