Download Print this page

Keithley ADC-16 User Manual page 58

Analog input board

Advertisement

CHAPTER 7: INDIVIDUAL CALL DESCRIPTIONS
Purpose
format
entry parameters
exit parameters
return value
see also
comments
Examples
Interpreted BASIC
QuickBASIC
QBASIC
KChkFrame
Frame Management. Check the parameters in a frame for validity.
D a s E r r
=
KChkE'rame( F r a m e H a n d l e , Type
) ;
FrumeHundle = frame handle obtained from a previous KGetADFrame or
KGetDOFrame call.
Type
=
a word-parameter flag specifying the type of operation, as follows:
Type
=
0 if checking a frame to be used in Sync Mode.
Type
= 1 if
checking a frame to be used in Interrupt Mode,
None.
DasErr
=
integer variable (0
=
No Error).
KGetADFrame, KGetDOFrame, KFreeFrame.
KChkFrame ensures that frame parameters are within established bounds for the
specified type of operation. Specified operation may be Synchronous (initiated by
KSyncStart
)
or Interrupt driven (initiated by KIntStart
).
KChkFrame is often
used during development as a diagnostic tool; it is removed later.
* * *
X X X Z O
CAU
KChkFrame% (FrameHandle, Type%, DASErr%)
DASErr
=
KChkFrame%(FrameHandle, 0 )
IF
DASErr
<>
0 THEN
BEEP:
STOP:
CAI&
ABSOLUTE (FrameBandle, 0 , DASErr, KChkFrame)
* * *
7 - 5

Advertisement

loading