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_2<br />
Syntax<br />
C:<br />
void far* GAGEAPI gage_trigger_view_transfer_2 (int16 channel, void far *buffer, int32 nsamples);<br />
Visual BASIC:<br />
This routine is currently not supported under Visual BASIC.<br />
Remarks<br />
gage_trigger_view_transfer_2 is used to copy nsample points of the <strong>CompuScope</strong> memory space, from<br />
the channel specified in the parameter channel to the supplied buffer array buffer starting with the trigger<br />
address of the most recent data capture.<br />
The <strong>CompuScope</strong> PCI boards will use bus-mastering if available; otherwise this routine is the same as<br />
gage_trigger_view_transfer.<br />
The calling program should typecast this buffer to the appropriate type before accessing the data.<br />
Because bus-mastering requires the buffer to be dword-aligned, the driver may have to change its starting<br />
address. The return value is a pointer to where the actual data begins. The difference between the buffer<br />
address passed to the routine and the one returned will be 0, 1, 2 or 3 addresses.<br />
Note: The buffer that the calling program allocates should be 4 samples larger than the requested size.<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 Program section in the <strong>CompuScope</strong> <strong>SDK</strong> <strong>Manua</strong>l for further details.<br />
Return Value<br />
Returns a pointer that points to where the actual data begins.<br />
See also<br />
gage_trigger_view_transfer and Appendix B: Comparison of Various Data Transfer Routines.<br />
Examples<br />
C:<br />
ptr = gage_trigger_view_transfer_2 (GAGE_CHAN_A, (uInt8 far *)(buffer), 512);<br />
first_value = ptr[0];<br />
<strong>CompuScope</strong> API Reference <strong>Manua</strong>l 90