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_trigger_view_transfer_3<br />
Syntax<br />
C:<br />
uInt32 GAGEAPI gage_trigger_view_transfer_3 (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_3 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 buffer must be at least two dwords longer than the required size to store nsample samples. The<br />
calling program should typecast this buffer to the appropriate type before accessing the data.<br />
The application does not need to interleave the data when the acquisition has been performed in single<br />
channel mode, as is the case with gage_transfer_buffer, gage_trigger_view_transfer,<br />
gage_transfer_buffer_2 and gage_trigger_view_transfer_2. These routines should be used for new<br />
development when they are available.<br />
Return Value<br />
Returns an offset to the beginning of the dword-aligned buffer that the driver uses. The offset is the<br />
difference between the buffer passed to the driver and the buffer the driver uses.<br />
See also<br />
gage_trigger_view_transfer and Appendix B: Comparison of Various Data Transfer Routines.<br />
Examples<br />
C:<br />
offset = gage_trigger_view_transfer_3 (GAGE_CHAN_A, (uInt8 far *)(buffer), 512);<br />
new_ptr = (uInt8 *)(buffer+offset);<br />
first_value = new_ptr[0];<br />
Examples<br />
C:<br />
gage_trigger_view_transfer_3 (GAGE_CHAN_A, (uInt8 far *)(buffer), 512);<br />
<strong>CompuScope</strong> API Reference <strong>Manua</strong>l<br />
91