Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Using External Code in LabVIEW.pdf
Скачиваний:
49
Добавлен:
29.05.2015
Размер:
1.85 Mб
Скачать

3

CINs

This chapter discusses the LabVIEW Code Interface Node (CIN), a block diagram node that links C/C++ source code to LabVIEW.

Supported Languages

The interface for CINs supports a variety of compilers, although not all compilers can create code in the correct executable format.

External code must be compiled as a form of executable appropriate for a specific platform. The code must be relocatable, because LabVIEW loads external code into the same memory space as the main application.

Macintosh

CINs in LabVIEW for Macintosh access a shared libraries. To prepare the code for LabVIEW, use the separate utilities lvsbutil.app for Metrowerks CodeWarrior and lvsbutil.tool for the Macintosh Programmer’s Workshop. These utilities come with LabVIEW.

You can create CINs with compilers from the two major C compiler vendors:

Metrowerks CodeWarrior from Metrowerks Corporation of Austin, TX

Macintosh Programmer’s Workshop (MPW) from Apple Computer, Inc. of Cupertino, CA

LabVIEW header files are compatible with these two environments.

Header files might need modification for other environments.

Microsoft Windows

LabVIEW for Windows supports CINs created with any of the following compilers:

Microsoft Visual C++

Symantec C

© National Instruments Corporation

3-1

Using External Code in LabVIEW

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]