LabWindows/CVI Functions Supported in Real-Time Applications

NI LabWindows™/CVI™ Real-Time Module Help

Edition Date: August 2015

Part Number: 372398G-01

»View Product Info
Download Help (Windows Only)

You must use the subset of LabWindows/CVI functions that are supported in real-time (RT) applications when you create DLLs to run on RT targets. If you include a function in your real-time application that is not supported on RT, LabWindows/CVI generates a link error.

LabWindows/CVI supports a subset of ANSI C, Formatting and I/O, Internet, Network Variable, Real-Time Utility, TCP Support, TDM Streaming, UDP Support, and Utility Library functions in RT applications. LabWindows/CVI also supports functions in the following Tools Library (Toolslib) instrument drivers: Asynchronous Timers, Reading/Writing .ini–Style Files, Regular Expressions, and Programmer's Toolbox.

Supported Functions

LabWindows/CVI supports the following list of built-in library functions in RT applications.

Note Note  This list does not include functions in the Analysis Library, Advanced Analysis Library, or any of the hardware libraries supported on RT.

A

AddCVITimeIntervals
AddStringPrefix
AddStringQuotes
AddToCVIAbsoluteTime
assert
abort
abs
acos
AppendString
asctime
asin
atan
atan2
atexit
atof
atoi
atoi64
atol
AvogadroConstant

B

BeingDebuggedByCVI
Breakpoint
BinSearch
BinStrToUInt
BinStrToULongLong
bsearch

C

calloc
ceil
CelsiusToFahrenheit
CelsiusToKelvin
clearerr
ClientTCPRead
ClientTCPWrite
clock
close
CloseCom
CloseFile
CloseWinsock
Cls
CmtDiscardLock
CmtDiscardTSQ
CmtDiscardTSV
CmtDiscardThreadLocalVar
CmtDiscardThreadPool
CmtExitThreadPoolThread
CmtFlushTSQ
CmtGetCurrentThreadID
CmtGetErrorMessage
CmtGetLock
CmtGetLockEx
CmtGetMainThreadID
CmtGetNumProcessors
CmtGetTSQAttribute
CmtGetTSQReadPtr
CmtGetTSQWritePtr
CmtGetTSVPtr
CmtGetThreadLocalVar
CmtGetThreadPoolAttribute
CmtGetThreadPoolFunctionAttribute
CmtInstallTSQCallback
CmtInstallThreadPoolCallback
CmtNewLock
CmtNewTSQ
CmtNewTSV
CmtNewThreadLocalVar
CmtNewThreadPool
CmtPreAllocThreadPoolThreads
CmtReadTSQData
CmtReleaseLock
CmtReleaseTSQReadPtr
CmtReleaseTSQWritePtr
CmtReleaseTSVPtr
CmtReleaseThreadPoolFunctionID
CmtScheduleThreadPoolFunction
CmtScheduleThreadPoolFunctionAdv
CmtSetTSQAttribute
CmtSetTSV
CmtSetThreadPoolAttribute
CmtTerminateThreadPoolThread
CmtUninstallTSQCallback
CmtUninstallThreadPoolCallback
CmtWaitForThreadPoolFunctionCompletion
CmtWaitForThreadPoolFunctionCompletionEx
CmtWriteTSQData
CNSDataCreateArray
CNSDataCreateScalar
CNSDataCreateStruct
CNSDataDiscard
CNSDataGetArrayDimensions
CNSDataGetArrayElementType
CNSDataGetArrayValue
CNSDataGetNumArrayDimensions
CNSDataGetNumStructFields
CNSDataGetScalarValue
CNSDataGetStructFields
CNSDataGetType
CNSDiscardEndpoint
CNSFinish
CNSFlush
CNSFreeMemory
CNSGetEndpointAttribute
CNSGetErrorDescription
CNSNewArrayEndpoint
CNSNewEndpoint
CNSNewScalarEndpoint
CNSReadArray
CNSReadData
CNSReadMultipleData
CNSReadMultipleScalar
CNSReadScalar
CNSWriteArray
CNSWriteData
CNSWriteMultipleData
CNSWriteMultipleScalar
CNSWriteScalar
CNVBrowse
CNVBrowseNextItem
CNVCheckDataQuality
CNVCreateArrayDataValue
CNVCreateAsyncReader
CNVCreateBrowser
CNVCreateBufferedSubscriber
CNVCreateBufferedWriter
CNVCreateReader
CNVCreateScalarDataValue
CNVCreateStructDataValue
CNVCreateSubscriber
CNVCreateWriter
CNVDeleteProcess
CNVDeleteVariable
CNVDispose
CNVDisposeBrowser
CNVDisposeData
CNVFinish
CNVFreeMemory
CNVGetArrayDataDimensions
CNVGetArrayDataValue
CNVGetConnectionAttribute
CNVGetDataFromBuffer
CNVGetDataQuality
CNVGetDataQualityDescription
CNVGetDataServerError
CNVGetDataType
CNVGetDataUTCTimestamp
CNVGetErrorDescription
CNVGetNumberOfStructFields
CNVGetProcesses
CNVGetVariables
CNVGetRegisteredMachines
CNVGetScalarDataValue
CNVGetStructFields
CNVGetTimestampInfo
CNVGetVariableAttribute
CNVNewProcess
CNVNewVariable
CNVNewVariableCollection
CNVProcessExists
CNVProcessIsRunning
CNVPutDataInBuffer
CNVRead
CNVReadAsync
CNVRegisterMachine
CNVSetArrayDataValue
CNVSetConnectionAttribute
CNVSetScalarDataValue
CNVSetVariableAttribute
CNVStartProcess
CNVStopProcess
CNVUnregisterMachine
CNVVariableExists
CNVWrite
CVNSetStructDataValue
ComBreak
ComFromFile
CompareBytes
CompareStrings
CompareCVIAbsoluteTimes
CompareCVIAbsoluteTimesWithTolerance
CompareCVITimeIntervals
CompareCVITimeIntervalsWithTolerance
ComRd
ComRdByte
ComRdTerm
ComSetEscape
ComToFile
ComWrt
ComWrtByte
ConfigureProcessorPool
ConnectToTCPServer
ConnectToTCPServerEx
ConvertArrayType
CopyBytes
CopyString
cos
cosh
CreateAndOpenTemporaryFile
CreateUDPChannel
CreateUDPChannelConfig
CStringCompare
CStringNoCaseCompare
ctime
CVIAbsoluteTimeFromCNVTime
CVIAbsoluteTimeFromCVIANSITime
CVIAbsoluteTimeFromCVIUILTime
CVIAbsoluteTimeFromFILETIME
CVIAbsoluteTimeFromLocalCalendar
CVIAbsoluteTimeToCNVTime
CVIAbsoluteTimeToCVIANSITime
CVIAbsoluteTimeToCVIUILTime
CVIAbsoluteTimeToFILETIME
CVIAbsoluteTimeToLocalCalendar
CVIRTEHasBeenDetached
CVITimeIntervalFromSeconds
CVITimeIntervalFromTimeUnit
CVITimeIntervalToFractionalUnitTime
CVITimeIntervalToSeconds
CVITimeIntervalToTimeUnit

D

DateStr
DebugPrintf
DecrementCVIAbsoluteTime
DecrementCVITimeInterval
DegToRad
Delay
DelayWithEventProcessing
DeleteAndRename
difftime
DisableBreakOnLibraryErrors
DiscardAsyncTimer
DisconnectFromTCPServer
DisconnectTCPClient
DisposeHandle
DisposeRTSystemInfo
DisposeUDPChannel
div
DivideCVITimeInterval
DoAssert
DoubleCompare

E

ElementaryCharge
EnableBreakOnLibraryErrors
eof
ErrorPrintf
Euler
exit
exp

F

fabs
FahrenheitToCelsius
fclose
fdopen
feof
ferror
FeetToMeters
fflush
fgetc
fgetpos
fgets
FileExists
FillBytes
FindClosestColorInTable
FindPattern
FloatCompare
floor
FlushInQ
FlushOutQ
fmod
Fmt
FmtFile
FmtOut
fopen
FP_Compare
fprintf
fputc
fputs
fread
free
freopen
FreeRTUtilMemory
frexp
fscanf
fseek
fsetpos
ftell
fwrite

G

_getmbcp
GallonsToLiters
GetAllTCPHostAddresses
GetAsyncTimerAttribute
GetAsyncTimerResolution
GetBreakOnFirstChanceExceptions
GetBreakOnLibraryErrors
GetBreakOnProtectionErrors
getc
getchar
GetComConnectionState
GetComLineStatus
GetComStat
GetCurrentCVIAbsoluteTime
GetDir
GetEnableResourceTracking
getenv
GetFileInfo
GetFileWritability
GetFmtErrNdx
GetFmtIOError
GetFmtIOErrorString
GetHandleSize
GetHostTCPSocketHandle
GetInQLen
GetOutQLen
GetRS232ErrorString
GetRTSystemInfo
GetRTUtilErrorString
gets
GetSystemComHandle
GetSystemDate
GetSystemTime
GetTCPErrorString
GetTCPHostAddr
GetTCPHostConnectionAddr
GetTCPHostName
GetTCPPeerAddr
GetTCPPeerName
GetTCPSystemErrorString
GetTimeUS
GetUDPAttribute
GetUDPErrorString
GetUDPSocketHandle
gmtime
GravitationalConstant

H

HalfPi
HashTableClear
HashTableCreate
HashTableDispose
HashTableFindItem
HashTableGetAttribute
HashTableGetItem
HashTableInsertItem
HashTableIteratorAdvance
HashTableIteratorCreate
HashTableIteratorDispose
HashTableIteratorGetItem
HashTableRemoveItem
HashTableSetAttribute
HasNonWhiteSpace
HeapSort
HostIsBigEndian
HostIsLittleEndian

I

_ismbblead
IncrementCVIAbsoluteTime
IncrementCVITimeInterval
InetFreeMemory
InetFTPAutoRetrieve
InetFTPAutoSend
InetFTPChangeDir
InetFTPClose
InetFTPCommand
InetFTPDelete
InetFTPGetDir
InetFTPGetDirList
InetFTPLogin
InetFTPLoginEx
InetFTPMakeDir
InetFTPReceiveData
InetFTPRemoveDir
InetFTPRename
InetFTPRetrieveFile
InetFTPSendData
InetFTPSendFile
InetFTPSetPassiveMode
InetGetErrorMessage
InetPop3Close
InetPop3DeleteMessage
InetPop3GetMessage
InetPop3GetMessageInfo
InetPop3GetMessageSize
InetPop3GetNumMessages
InetPop3Open
InetPop3ParseMessageHeader
InetResolveHostname
InetSendMail
InetTelnetClose
InetTelnetOpen
InetTelnetRead
InetTelnetReadUntil
InetTelnetRunScript
InetTelnetWrite
Ini_CopySection
Ini_CopySectionEx
Ini_DisableInternalSorting
Ini_DisableSorting
Ini_Dispose
Ini_GetBoolean
Ini_GetData
Ini_GetDouble
Ini_GetInt
Ini_GetInt64
Ini_GetPointerToRawString
Ini_GetPointerToString
Ini_GetRawStringCopy
Ini_GetRawStringIntoBuffer
Ini_GetStringCopy
Ini_GetStringIntoBuffer
Ini_GetUInt
Ini_GetUInt64
Ini_ItemExists
Ini_LineOfLastAccess
Ini_New
Ini_NthItemName
Ini_NthSectionName
Ini_NumberOfItems
Ini_NumberOfSections
Ini_PutBoolean
Ini_PutData
Ini_PutDouble
Ini_PutInt
Ini_PutRawString
Ini_PutString
Ini_PutUInt
Ini_ReadFromFile
Ini_ReadGeneric
Ini_RemoveItem
Ini_RemoveSection
Ini_SectionExists
Ini_SetDuplicateChecking
Ini_SetSectionFilter
Ini_SetTokens
Ini_Sort
Ini_SortInternally
Ini_WriteGeneric
Ini_WriteToFile
InsertionSort
InstallComCallback
InStandaloneExecutable
IntCompare
InternationalDate
InternationalTime
isalnum
isalpha
iscntrl
isdigit
IsFinite
isgraph
IsInfinity
islower
IsNotANumber
isprint
ispunct
isspace
isupper
isxdigit

K

KelvinToCelsius
KilogramsToPounds
KilometersToMiles

L

labs
ldexp
ldiv
ListAppend
ListApplyToEach
ListApplyToEachEx
ListBinSearch
ListClear
ListCompact
ListCopy
ListCreate
ListDispose
ListDisposePtrList
ListEqual
ListFindItem
ListFindItemInRange
ListGetDataPtr
ListGetItem
ListGetItems
ListGetItemSize
ListGetPtrToItem
ListHeapSort
ListInsertInOrder
ListInsertionSort
ListInsertItem
ListInsertItems
ListIsSorted
ListNumItems
ListPreAllocate
ListQuickSort
ListRemoveDuplicates
ListRemoveItem
ListRemoveItems
ListReplaceItem
ListReplaceItems
ListSetAllocationPolicy
LitersToGallons
Ln10
Ln2
LnOfPi
localeconv
localtime
log
log10
Log10OfEuler
Log10OfPi
longjmp
lseek

M

_mbsbtype
_mbscat
_mbschr
_mbscmp
_mbscpy
_mbscspn
_mbsdec
_mbsicmp
_mbsinc
_mbslen
_mbsnbcat
_mbsnbcmp
_mbsnbcpy
_mbsnbicmp
_mbspbrk
_mbsrchr
_mbsspn
_mbsstr
_mbstok
malloc
mblen
memchr
memcmp
memcpy
memmove
memset
MetersToFeet
mktime
MilesToKilometers
modf
MolarGasConstant
MultiplyCVITimeInterval

N

NegativeInfinity
NewAsyncTimer
NewAsyncTimerWithPriority
NewHandle
NIWatchdog_Clear
NIWatchdog_ClearOutputs
NIWatchdog_Configure
NIWatchdog_Disable
NIWatchdog_GetAttribute
NIWatchdog_SetAttribute
NIWatchdog_Whack
NotANumber
NumFmtdBytes

O

open
OpenCom
OpenComConfig
OpenFile
OutputDoubleItem
OutputIntegerItem
OutputList
OutputShortItem
OutputStringItem

P

_putenv
perror
Pi
Pin
PlanckConstant
PositiveInfinity
PostDeferredCall
PostDeferredCallToThread
PostDeferredCallToThreadAndWait
PoundsToKilograms
pow
printf
ProcessSystemEvents
ProcessTCPEvents
putc
putchar
puts

Q

qsort

R

RadToDeg
raise
rand
Random
read
ReadFile
ReadLine
realloc
ReciprocalOfEuler
ReciprocalOfPi
RegExpr_Destroy
RegExpr_FindPatternInText
RegExpr_GetErrorElaboration
RegExpr_GetErrorString
RegExpr_MatchText
RegExpr_Parse
RegisterTCPServer
RegisterTCPServerEx
remove
RemoveFileIfExists
RemoveSurroundingWhiteSpace
rename
ResumeAsyncTimerCallbacks
ReturnRS232Err
rewind
RoundRealToNearestInteger
RTIsShuttingDown
RydbergConstant

S

Scan
scanf
ScanFile
ScanIn
ServerTCPRead
ServerTCPWrite
SetAsyncTimerAttribute
SetBOLE
SetBreakOnFirstChanceExceptions
SetBreakOnLibraryErrors
SetBreakOnProtectionErrors
setbuf
SetCommitMode
SetComTime
SetCTSMode
SetDir
SetEnableResourceTracking
SetFilePtr
SetHandleSize
setjmp
setlocale
SetProcessorAffinityForThread
SetRandomSeed
SetSystemDate
SetSystemTime
SetTCPDisconnectMode
SetUDPAttribute
setvbuf
SetXMode
ShortCompare
signal
sin
sinh
SkipNonWhiteSpace
SkipWhiteSpace
sopen
SpeedOfLight
sprintf
sqrt
srand
sscanf
strcat
strchr
strcmp
strcoll
strcpy
strcspn
StrDup
StrDupWithoutSurrWhiteSpace
strerror
strftime
stricmp
StrICmp
StrICmpWithoutSurrWhiteSpace
StringCopyMax
StringLength
StringLowerCase
StringUpperCase
strlen
strncat
strncmp
strncpy
strnicmp
StrNICmp
strpbrk
strrchr
strspn
strstr
strtod
StrToInt
strtok
strtol
strtol64
StrToLongLong
StrToUInt
strtoul
StrToULongLong
strxfrm
SubtractCVIAbsoluteTimes
SubtractCVITimeIntervals
SubtractFromCVIAbsoluteTime
SuspendAsyncTimerCallbacks
SwapBlock
SyncWait

T

tan
tanh
TCPFreeMemory
TDMS_AddChannel
TDMS_AddChannelGroup
TDMS_AdvancedCloseFile
TDMS_AdvancedCreateFile
TDMS_AdvancedOpenFile
TDMS_AdvancedSyncRead
TDMS_AdvancedSyncWrite
TDMS_AllocateAlignedMemory
TDMS_AppendDataValues
TDMS_ChannelGroupPropertyExists
TDMS_ChannelPropertyExists
TDMS_CloseChannel
TDMS_CloseChannelGroup
TDMS_CloseFile
TDMS_CreateFile
TDMS_CreateLinearScalingInfo
TDMS_CreatePolynomialScalingInfo
TDMS_CreateReciprocalScalingInfo
TDMS_CreateRTDScalingInfo
TDMS_CreateStrainGageScalingInfo
TDMS_CreateTableScalingInfo
TDMS_CreateThermistorScalingInfo
TDMS_CreateThermocoupleScalingInfo
TDMS_DefragmentFile
TDMS_FilePropertyExists
TDMS_FreeAlignedMemory
TDMS_FreeMemory
TDMS_GetChannelGroupProperty
TDMS_GetChannelGroupPropertyNames
TDMS_GetChannelGroupPropertyType
TDMS_GetChannelGroups
TDMS_GetChannelGroupStringPropertyLength
TDMS_GetChannelProperty
TDMS_GetChannelPropertyNames
TDMS_GetChannelPropertyType
TDMS_GetChannels
TDMS_GetChannelStringPropertyLength
TDMS_GetDataType
TDMS_GetDataTypeSize
TDMS_GetDataValues
TDMS_GetFileProperty
TDMS_GetFilePropertyNames
TDMS_GetFilePropertyType
TDMS_GetFileStringPropertyLength
TDMS_GetLibraryErrorDescription
TDMS_GetNumChannelGroupProperties
TDMS_GetNumChannelGroups
TDMS_GetNumChannelProperties
TDMS_GetNumChannels
TDMS_GetNumDataValues
TDMS_GetNumFileProperties
TDMS_OpenFile
TDMS_SaveFile
TDMS_SetChannelGroupProperty
TDMS_SetChannelInfo
TDMS_SetChannelProperty
TDMS_SetFileProperty
TDMS_SetNextReadPosition
TDMS_SetNextWritePosition
ThreeHalvesPi
time
Timer
TimeStr
tmpfile
tmpnam
ToBigEndian16
ToBigEndian32
ToBigEndian64
ToLittleEndian16
ToLittleEndian32
ToLittleEndian64
tolower
ToOtherEndian16
ToOtherEndian32
ToOtherEndian64
toupper
TraceConfigure
TraceLoadAndSend
TraceStart
TraceStopAndSave
TraceStopAndSend
TraceUserEvent
TransposeData
TruncateRealNumber
TwoPi

U

UIntToBinStr
UDPMulticastSubscribe
UDPMulticastUnsubscribe
UDPRead
UDPWrite
ungetc
ULongLongToBinStr
UnregisterTCPServer
UnregisterTCPServerEx

V

vfprintf
vfscanf
vprintf
vscanf
vsprintf
vsscanf

W

WaitUS
WaitUntilNextMultipleUS
WaitUntilUS
wcslen
write
WriteFile
WriteLine
WriteStringToFile

X

XModemConfig
XModemReceive
XModemSend

WAS THIS ARTICLE HELPFUL?

Not Helpful