National Instruments 320682C Musical Toy Instrument User Manual


 
Utility Library Chapter 8
LabWindows/CVI Standard Libraries 8-18 © National Instruments Corporation
GetBreakOnProtectionErrors
int
state
=
GetBreakOnProtectionErrors
(void);
Purpose
This function returns the state of the
break on protection errors
feature. It returns a 1 if the
option is enabled, or a 0 if it is disabled. If debugging is disabled, this function always returns 0.
For more information on the feature, see the documentation for
SetBreakOnProtectionErrors.
Return Value
state
integer The current state of the break on protection errors option.
Return Codes
1 Break on protection errors option enabled.
0 Break on protection errors option disabled.
GetCVIVersion
int
versionNum
=
GetCVIVersion
(void);
Purpose
This function returns the version of LabWindows/CVI you are running. In a standalone
executable, this tells you which version of the LabWindows/CVI run-time libraries you are
using.
The value is in the form Nnn, where the N.nn is the version number that shows in the About
LabWindows/CVI dialog box.
For example, for LabWindows/CVI version 4.0, GetCVIVersion returns 400. For version 4.1,
it would return 410. The values will always increase with each new version of
LabWindows/CVI.
The return value of GetCVIVersion should not be confused with the predefined macro
_CVI_, which specifies the version of LabWindows/CVI in which the source file is compiled.
Return Value
versionNum
integer The version number of LabWindows/CVI or the run-
time libraries.