CompuScope SDK Manua.. - Egmont Instruments
CompuScope SDK Manua.. - Egmont Instruments
CompuScope SDK Manua.. - Egmont Instruments
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
gage_transfer_buffer<br />
Syntax<br />
C:<br />
void GAGEAPI gage_transfer_buffer (int32 ta, int16 channel, void far *buffer, int32 nsamples);<br />
Visual BASIC:<br />
Sub gage_transfer_buffer (ByVal ta As Long, ByVal channel As Integer, buffer As Integer, ByVal<br />
nsamples As Integer)<br />
Remarks<br />
gage_transfer_buffer is used to copy nsamples points from the specified channel to the supplied buffer<br />
beginning from <strong>CompuScope</strong> on-board memory address ta. The channel can be either GAGE_CHAN_A<br />
or GAGE_CHAN_B, and refers to the A/D converter memory bank. The relevant addresses can be<br />
obtained by calling gage_calculate_addresses. The buffer must have been previously typecast to the<br />
appropriate size. For 8 bit <strong>CompuScope</strong>s, the buffer should typecast for uInt8 values. For <strong>CompuScope</strong>s<br />
with more than 8 bit resolution, the buffer should typecast for int16 values.<br />
gage_transfer_buffer uses a CPU mediated PCI data transfer method. For the fastest PCI bus-mastering<br />
data transfer, use gage_transfer_buffer_3.<br />
For all <strong>CompuScope</strong> boards with two channels operating in single channel mode, both A/D converters are<br />
used. The two converters are connected to the conditioned input from the Channel A BNC and are clocked<br />
180 O out of phase. Data from each converter are then stored in their respective memory banks, as usual.<br />
After capture, gage_transfer_buffer must then be used to download the data from both memory banks.<br />
This is done by calling gage_transfer_buffer twice, once with channel equal to GAGE_CHAN_A , which<br />
transfer the even points, and once with channel equal to GAGE_CHAN_B, which transfer the odd points..<br />
The user must then interleave the two downloaded data sets in order to reconstruct the complete data<br />
record.<br />
Return Value<br />
None.<br />
See also<br />
gage_transfer_buffer_3 and Appendix: Comparison of Various Data Transfer Routines.<br />
Example<br />
C:<br />
gage_transfer_buffer (current_address, GAGE_CHAN_A, (uInt8 far *)(buffer), 512);<br />
Visual Basic:<br />
gage_transfer_buffer (ByVal ta As Long, ByVal channel As Integer, buffer As Integer, ByVal nsamples As<br />
Integer)<br />
<strong>CompuScope</strong> API Reference <strong>Manua</strong>l 52