# Function Tree, Utility Library

Class/Panel Name | Function Name
--- | ---
Timer/Wait
Timer | Timer
Delay | Delay
Synchronized Wait | SyncWait
Date/Time
Date in ASCII Format | DateStr
Time in ASCII Format | TimeStr
Get System Date | GetSystemDate
Set System Date | SetSystemDate
Get System Time | GetSystemTime
Set System Time | SetSystemTime
Keyboard
Key Hit? | KeyHit
Get a Keystroke | GetKey
File Utilities
Delete File | DeleteFile
Rename File | RenameFile
Copy File | CopyFile
Get File Size | GetFileSize
Get File Date | GetFileDate
Set File Date | SetFileDate
Get File Time | GetFileTime
Set File Time | SetFileTime
Get File Attributes | GetFileAttrs
Set File Attributes | SetFileAttrs
Get First File | GetFirstFile
Get Next File | GetNextFile
Make Pathname | MakePathname
Split Path | SplitPath
Directory Utilities
Get Directory | GetDir
Get Project Directory | GetProjectDir
Get Module Directory | GetModuleDir
Get Full Path From Project | GetFullPathFromProject
Set Directory | SetDir
Make Directory | MakeDir
Delete Directory | DeleteDir
Get Drive | GetDrive
Set Drive | SetDrive
Multithreading
Thread Pool
Call Scheduling Functions
Schedule Function | CmtScheduleThreadPoolFunction
Schedule Function Advanced | CmtScheduleThreadPoolFunctionAdv
Release Function ID | CmtReleaseThreadPoolFunctionID
Get Function Attribute | CmtGetThreadPoolFunctionAttribute
Wait For Function To Complete | CmtWaitForThreadPoolFunctionCompletion
Exit Thread | CmtExitThreadPoolThread
Advanced Functions
New Thread Pool | CmtNewThreadPool
Discard Thread Pool | CmtDiscardThreadPool
Pre-Allocate Threads | CmtPreAllocThreadPoolThreads
Terminate Thread | CmtTerminateThreadPoolThread
Get Attribute | CmtGetThreadPoolAttribute
Set Attribute | CmtSetThreadPoolAttribute
Callbacks
Install Callback | CmtInstallThreadPoolCallback
Uninstall Callback | CmtUninstallThreadPoolCallback
Thread Safe Queue
General Functions
New Queue | CmtNewTSQ
Discard Queue | CmtDiscardTSQ
Get Attribute | CmtGetTSQAttribute
Set Attribute | CmtSetTSQAttribute
Reading/Writing
Write Data | CmtWriteTSQData
Get Write Pointer | CmtGetTSQWritePtr
Release Write Pointer | CmtReleaseTSQWritePtr
Read Data | CmtReadTSQData
Get Read Pointer | CmtGetTSQReadPtr
Release Read Pointer | CmtReleaseTSQReadPtr
Flush Queue | CmtFlushTSQ
Callbacks
Install Callback | CmtInstallTSQCallback
Uninstall Callback | CmtUninstallTSQCallback
Thread Safe Variable
New Thread Safe Variable | CmtNewTSV
Discard Thread Safe Variable | CmtDiscardTSV
Get Thread Safe Variable Pointer | CmtGetTSVPtr
Release Thread Safe Variable Pointer | CmtReleaseTSVPtr
Set Thread Safe Variable | CmtSetTSV
Thread Lock
New Lock | CmtNewLock
Discard Lock | CmtDiscardLock
Get Lock | CmtGetLock
Release Lock | CmtReleaseLock
Thread Local Variable
New Thread Local Variable | CmtNewThreadLocalVar
Discard Thread Local Variable | CmtDiscardThreadLocalVar
Get Thread Local Variable | CmtGetThreadLocalVar
Get Current Thread ID | CmtGetCurrentThreadID
Get Main Thread ID | CmtGetMainThreadID
Get Number Of Processors | CmtGetNumProcessors
Get Error Message | CmtGetErrorMessage
External Modules
Load External Module | LoadExternalModule
Load External Module Extended | LoadExternalModuleEx
Run External Module | RunExternalModule
Get External Module Address | GetExternalModuleAddr
Get External Module Address Ext | GetExternalModuleAddrEx
Unload External Module | UnloadExternalModule
Release External Module | ReleaseExternalModule
Port IO
Input Byte From Port | inp
Input Word From Port | inpw
Input Double Word From Port | inpd
Output Byte To Port | outp
Output Word To Port | outpw
Output Double Word To Port | outpd
Standard Input/Output Window
Clear Screen | Cls
Get Stdio Window Options | GetStdioWindowOptions
Set Stdio Window Options | SetStdioWindowOptions
Get Stdio Window Position | GetStdioWindowPosition
Set Stdio Window Position | SetStdioWindowPosition
Get Stdio Window Size | GetStdioWindowSize
Set Stdio Window Size | SetStdioWindowSize
Get Stdio Window Visibility | GetStdioWindowVisibility
Set Stdio Window Visibility | SetStdioWindowVisibility
Get Stdio Port | GetStdioPort
Set Stdio Port | SetStdioPort
Run Time Error Reporting
Set Break On Library Errors | SetBreakOnLibraryErrors
Get Break On Library Errors | GetBreakOnLibraryErrors
Set Break On Protection Errors | SetBreakOnProtectionErrors
Get Break On Protection Errors | GetBreakOnProtectionErrors
Get Break On First Chance Exceptions | GetBreakOnFirstChanceExceptions
Set Break On First Chance Exceptions | SetBreakOnFirstChanceExceptions
Breakpoint | Breakpoint
DebugPrintf | DebugPrintf
ErrorPrintf | ErrorPrintf
Is The Process Being Debugged by CVI? | BeingDebuggedByCVI
Old-Style Functions
Enable Break on Library Errors | EnableBreakOnLibraryErrors
Disable Break on Library Errors | DisableBreakOnLibraryErrors
Interrupts
Disable Interrupts | DisableInterrupts
Enable Interrupts | EnableInterrupts
Get Interrupt State | GetInterruptState
Physical Memory Access
Read From Physical Memory | ReadFromPhysicalMemory
Read From Physical Memory Ex | ReadFromPhysicalMemoryEx
Write To Physical Memory | WriteToPhysicalMemory
Write To Physical Memory Ex | WriteToPhysicalMemoryEx
Map Physical Memory | MapPhysicalMemory
Unmap Physical Memory | UnMapPhysicalMemory
Task Switching
Disable Task Switching | DisableTaskSwitching
Enable Task Switching | EnableTaskSwitching
Launching Executables
Launch Executable | LaunchExecutable
Extended Functions
Launch Executable Extended | LaunchExecutableEx
Has Executable Terminated? | ExecutableHasTerminated
Terminate Executable | TerminateExecutable
Retire Executable Handle | RetireExecutableHandle
Miscellaneous
System Help | SystemHelp
Get CVI Version | GetCVIVersion
Get Current Platform | GetCurrentPlatform
In Standalone Executable? | InStandaloneExecutable
Run-Time Engine Detached? | CVIRTEHasBeenDetached
Low-Level Support Driver Loaded | CVILowLevelSupportDriverLoaded
Initialize CVI Run-Time Engine | InitCVIRTE
Close CVI Run-Time Engine | CloseCVIRTE
Beep | Beep
Round Real To Nearest Integer | RoundRealToNearestInteger
Truncate Real Number | TruncateRealNumber
Get Window Display Setting | GetWindowDisplaySetting
Check for Duplicate Instance | CheckForDuplicateAppInstance
Get Current Thread Id | CurrThreadId
Get Main Thread Id | MainThreadId
Dynamic Memory Information | CVIDynamicMemoryInfo