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.
Return Value<br />
1 if no error and a negative number if an error occurs.<br />
The following is a list of return codes including possible errors.<br />
Constant in GAGE_DRV.H<br />
Value, description<br />
============================================================================<br />
GAGE_AA_SUCCESSFUL<br />
1L The routine completed correctly and the average<br />
buffer, "avg_buffer", contains the averaged of<br />
summed data.<br />
GAGE_AA_ROUTINE_UNAVAILABLE<br />
GAGE_AA_INVALID_TRIGGER_SOURCE<br />
GAGE_AA_INVALID_TRIGGER_DEPTH<br />
GAGE_AA_INVALID_BUFFER_SIZES<br />
GAGE_AA_INVALID_CHANNEL<br />
GAGE_AA_UNAVAILABLE_CHANNEL<br />
GAGE_AA_INVALID_AVERAGE_NUM<br />
0L The routine is not implemented and the task<br />
could not be performed. This is temporary return<br />
value until all cards have had this routine<br />
implemented.<br />
-1L This routine will not function with a software<br />
controlled trigger. Only a valid hardware trigger<br />
source is allowed. This can be channel A, channel B<br />
or the external trigger input.<br />
-2L Board returned a different number of points than<br />
requested, the acquisition depth is less than the<br />
requested average number of samples.<br />
-3L The "data_buffer_size" parameter is not at least<br />
as large as the number of samples required for each<br />
average.<br />
-4L The channel specified does not currently exist.<br />
Example: channel 3 (board 2 channel A) was<br />
specified and the current <strong>CompuScope</strong> installed<br />
system has only one board.<br />
-5L The channel specified is not currently available<br />
or enabled, therefore it does not have any valid data<br />
to be averaged. Example: channel 2 (board 1 channel<br />
B)was specified and the current acquisition mode is<br />
single channel mode.<br />
-6L This value is returned when the number of<br />
averages (naverages) is greater than the maximum<br />
32-bit integer (0x7fffffff hex or 2,147,483,647<br />
decimal) divided by the size of the sample resolution<br />
(256 for 8-bit cards and 4096 for 12-bit cards). This<br />
is calculated by using 0x7fffffff and shifting it to the<br />
right by the number of bits of sample resolution<br />
(8 or 12).<br />
<strong>CompuScope</strong> API Reference <strong>Manua</strong>l<br />
61