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

Chapter 4 External Subroutines

Microsoft Windows 3.1

Watcom C Compiler

As described in the External Subroutine section of this chapter, you compile an external subroutine the same way you compile a CIN. The first step is to create a makefile specification. Following are the contents of the makefile specification for this example. Notice that all Dir commands must end without a backslash(\). Name the file sum.lvm.

name

=

name

sum

type

=

type

LVSB

codeDir = codeDir Complete pathname to the directory containing the .c file.

cinToolsDir = cinToolsDir

 

Complete or partial pathname to the

 

LabVIEW cintools directory.

inclDir = inclDir

(optional) Complete or partial

 

pathname to a directory containing any

 

additional .h files.

wcDir = wcDir

Complete pathname to the directory

 

containing Watcom.

!include $(cinToolsDir)\generic.mak

Create the subroutine using the following command.

wmake /f sum.lvm

Microsoft Windows 95 and Windows NT

As described in the External Subroutine section of this chapter, you compile an external subroutine the same way you compile a CIN. The first step is to create a makefile specification. Following are the contents of the makefile specification for this example. Name the file sum.lvm.

name

=

name

sum

type

=

type

LVSB

!include $(CINTOOLSDIR)\ntlvsb.mak

© National Instruments Corporation

4-9

LabVIEW Code Interface Reference Manual

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