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

Code Interface Node

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Requires: Base Package

Calls code written in a text-based programming language, such as C, directly from a block diagram. LabVIEW no longer supports this node. Use the Call Library Function Node instead.

You can use Code Interface Nodes (CINs) to access algorithms written in another language or platform-specific features or hardware that LabVIEW does not directly support. The CIN is expandable and shows data types for the wired inputs and outputs, similar to the Bundle function.

Details  

input is an example input parameter of the external code.
type for output is an example data type parameter of the external code. You must right-click the node and select Output Only from the shortcut menu to use type for output.
new value of input is an example output parameter of the external code.
value of output is an example output parameter of the external code. You must right-click the node and select Output Only from the shortcut menu to use value of output.

Code Interface Node Details

You can pass any number of parameters to or from external code and each parameter can be of any arbitrary LabVIEW data type. LabVIEW provides several libraries of routines to make it easier to work with LabVIEW data types. These routines support memory allocation, file manipulation, and data type conversion.

If you convert a VI that contains a CIN to another platform, you need to recompile the code for the new platform because CINs use code compiled in another programming language. You can write source code for a CIN so that it is machine-independent, requiring only a recompile to convert it to another platform.

Use a Call Library Function Node to call a DLL or shared library function directly.


 

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