Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Labview Code Interface Reference Manual.pdf
Скачиваний:
33
Добавлен:
29.05.2015
Размер:
1.13 Mб
Скачать

Chapter 1 CIN Overview

Solaris

LabVIEW for the Sun supports external code compiled in a.out format under Solaris 1.x and a shared library format under Solaris 2.x. These formats are prepared for LabVIEW using a LabVIEW utility.

The unbundled Sun ANSI C compiler is the only compiler that has been tested thoroughly with LabVIEW. The header files are compatible with the unbundled Sun ANSI C Compiler and may need modification for other compilers.

HP-UX

LabVIEW for HP-UX supports external code compiled as a shared library. This library is prepared for LabVIEW using a LabVIEW utility.

The HP-UX C/ANSI C compiler is the only compiler that has been tested thoroughly with LabVIEW.

Steps for Creating a CIN

You create a CIN by first describing in LabVIEW the data you want to pass to the CIN. You then write the code for the CIN using one of the supported programming languages. After you compile the code, you run a utility on the compiled code that puts it into a format that LabVIEW can use. You then instruct LabVIEW to load the CIN.

If you execute the VI at this point, and the block diagram needs to execute the CIN, LabVIEW calls the CIN object code and passes any data that is wired to the CIN. If you save the VI after loading the code, LabVIEW saves the CIN object code along with the VI so that LabVIEW no longer needs the original code to execute the CIN. You can update your CIN object code with new versions at any time.

The examples directory contains a cins directory that includes all of the examples given in this manual. The names of the directories in the cins directory correspond to the CIN name given in the examples.

The following steps explain how to create a CIN.

© National Instruments Corporation

1-5

LabVIEW Code Interface Reference Manual

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