CompuScope SDK Manua.. - Egmont Instruments
CompuScope SDK Manua.. - Egmont Instruments
CompuScope SDK Manua.. - Egmont Instruments
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
gage_trigger_view_transfer<br />
Syntax<br />
C:<br />
void GAGEAPI gage_trigger_view_transfer (int16 channel, uInt8 far *buffer, int16 nsamples);<br />
Visual BASIC:<br />
Sub gage_trigger_view_transfer (ByVal channel As Integer, buffer(0) As Integer,<br />
ByVal nsamples As Integer)<br />
Remarks<br />
gage_trigger_view_transfer is used to copy nsample points of the <strong>CompuScope</strong> memory space, from the<br />
channel specified in the parameter channel to the supplied buffer array buffer starting with the trigger<br />
address of the most recent data capture. The starting point of the transferred data can be changed, by using<br />
gage_set_trigger_view_offset. The default starting point is the trigger address.<br />
For PCI (CP500) <strong>CompuScope</strong>s, there is no intrinsic limitation on the amount of data that can be<br />
transferred at a time by gage_trigger_view_transfer. Please note, however, that for ISA <strong>CompuScope</strong>s, a<br />
maximum of 4K samples may be transferred at a time. For 8-bit ISA <strong>CompuScope</strong>s, the sample size is 1<br />
byte, so 4K samples equals 4K bytes. The 12 bit and 16 bit ISA <strong>CompuScope</strong>s use integer samples,<br />
therefore 4K samples equals 4K integers.<br />
For all <strong>CompuScope</strong> boards with two channels, single channel mode uses both of the channels. The<br />
captured data must be transferred one channel at a time and put together by the application program. The<br />
even addresses will be from channel A and the odd addresses will be from channel B. Please see the<br />
Sample Programs section in the <strong>CompuScope</strong> <strong>SDK</strong> <strong>Manua</strong>l for further details.<br />
Return Value<br />
None.<br />
See also<br />
Appendix: Comparison of Various Data Transfer Routines<br />
Examples<br />
C:<br />
gage_trigger_view_transfer (GAGE_CHAN_A, (uInt8 far *)(buffer), 512);<br />
Visual BASIC:<br />
Call gage_trigger_view_transfer (GAGE_CHAN_A, buffer(0), 512)<br />
<strong>CompuScope</strong> API Reference <strong>Manua</strong>l<br />
89