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

Chapter 2 CIN Parameter Passing

IDE = VC

This line adds special VC++ libraries to the link. All other steps required to compile the CIN source code using the Visual C++ compiler are exactly the same as those for the Microsoft SDK compiler.

Solaris 1.x, Solaris 2.x, and HP-UX

As described in the Steps for Creating a CIN section of Chapter 1, CIN

Overview, you can create a makefile using the shell script lvmkmf.

For this example, you should first enter the following command.

lvmkmf mult

This creates a file called Makefile. After executing lvmkmf, you should enter the standard make command, which uses Makefile to create a file called mult.lsb, which you can load into the CIN in LabVIEW.

6. Load the CIN Object Code

Now you are ready to load the CIN into LabVIEW and run it. Select Load Code Resource from the CIN pop-up menu and select mult.lsb, the object code file that you created.

If you followed the preceding steps correctly, you should be able to run the VI at this point. If you save the VI, the CIN object code is saved along with the VI.

LabVIEW Code Interface Reference Manual

2-8

© National Instruments Corporation

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