Download Print this page

Keithley ADC-16 User Manual page 77

Analog input board

Advertisement

ADC-16 USER GUIDE
-
KMoveDataBuf
Purpose
Memory Management. Move N bytes from one memory region to another.
format
D A S E r r
= KWoveDataBuf
(
DestSeg, DestOff, SrcSeg, ScrOff, Samples
)
:
entry parameters DestSeg
=
integer Segment of the destination address.
DestOff
=
integer Offset of the destination address.
SrcSeg
=
integer Segment of the source address.
SrcOff
=
integer Offset of the source address.
Samples
=
integer for the number of bytes to transfer.
exit parameters
None.
return value
DASErr = integer variable (0
=
No Error).
see also
KSetBuf.
comments
KMoveDataBuf allows Interpreted BASIC users to transfer data to/from an internal
buffer (not easily accessible from BASIC) to/from a BASIC user array. You would
normally use this Call after a KIntStart operation ends.
Refer to the examples below for steps on how to transfer the first
100
A/D samples
from an internal buffer to a BASIC array. Note that the internal buffer at &H8000:0
was
used
to acquire data in a previous A/D operation.
If the Destination or Source Buffer are DIMensioned arrays, the Segment value
should be set to &HFFFF.
* * *
Examples
Interpreted BASIC
DIY BUF% (100)
BUFSEG% = VARsEG(BUF% (0)
)
'Segment of Basic array
BUFOFS%
=
VARPTR(BUF% (0)
)
'Offset of Basic Array
IF DASErr%
0
0 THEN
BEEP:
STOP
CALL
KMoveDataBuf%(BUFSEG%,BUFOFS%, hH8000,0,100,DASErr%)
7 - 2 4

Advertisement

loading