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

#defines in LVDefs_plat.h (Microprocessor SDK)

LabVIEW 8.6 Microprocessor SDK Help
June 2008

NI Part Number:
372197B-01

»View Product Info

A series of #define statements map the generic function calls, such as StrCaselessCompare( x, y ), to OS-specific function calls, such as strcasecmp( x, y ) for Linux and VxWorks and _stricmp( x, y ) for Windows.

Examples of some of the #defines in LVDefs_plat.h include the following:

  • #define BigEndian—Defines the data storage format as big endian or little endian. Define as 0 for little endian and 1 for big endian.
  • #define ALIGNMENT—Defines the alignment of data.
  • typedef signed char int8;—In the LabVIEW C Code Run-Time Library code, int8 is used everywhere and must be defined to a signed 8-bit integer.
  • #define StrCopy(x, y) strcpy(x, y)—In the LabVIEW C Code Run-Time Library code, StrCopy is used everywhere and must be defined to a function that copies a string.
  • #define SocketSupport—Defines the sockets. Define as 1 to support BSD sockets.

Resources


 

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