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_set_ext_clock_variables<br />
Syntax<br />
C:<br />
void GAGEAPI gage_set_ext_clock_variables (int16 op_mode, uInt16 external_clock_delay,<br />
float external_clock_rate);<br />
Visual BASIC:<br />
Sub gage_set_ext_clock_variables (ByVal op_mode As Integer, ByVal external_clock_delay As Integer,<br />
ByVal exterrnal_clock_rate As Single)<br />
Remarks<br />
gage_set_ext_clock_variables is used to set the required variables for use of an external clock. Signal.<br />
Not all <strong>CompuScope</strong>s are equipped with an external clock input. On some <strong>CompuScope</strong> models, such as<br />
the CS12100, it is an optional modification, which must be purchased with the <strong>CompuScope</strong>.<br />
gage_set_ext_clock_variables should be called before the gage_capture_mode routine. If you are using<br />
an external clock, you must use the GAGE_EXTERNAL_CLOCK constant as the rate and multiplier<br />
values when calling the gage_capture_mode routine.<br />
op_mode is a current CopmuScope operating mode, which should be set using the constants<br />
GAGE_SINGLE_CHAN or GAGE_DUAL_CHAN (or GAGE_QUAD_CHAN for digital <strong>CompuScope</strong>s).<br />
The external_clock_delay parameter sets the clock delay to synchronize the external clock to the<br />
<strong>CompuScope</strong> board. Using a value of -1 will let the drivers calculate this value. Use another value to<br />
override this option. The values calculated by the driver will be 0 if the sample rate is greater than 5 MHz<br />
or the maximum of 1 and 10,000 / external_clock_rate otherwise. It is recommended that –1 be used for<br />
the external_clock_delay.<br />
external_clock_rate is frequency of the signal connected to the EXTERNAL CLOCK input of the<br />
<strong>CompuScope</strong>. It is important that this value be set correctly, since the <strong>CompuScope</strong> hardware needs to<br />
know this value so that the drivers can set internal <strong>CompuScope</strong> timing parameters.<br />
The frequency at which sampled data will be stored in memory may differ from the external_clock_rate.<br />
For instance for the CS1602, the sampling rate is one-eighth of the external_clock_rate. For the CS12100<br />
with the regular external clock upgrade, the sampling rate is one-half of the external_clock_rate, when the<br />
CS12100 is in dual channel mode.<br />
Return Value: None<br />
See also: gage_capture_mode<br />
Examples: C:<br />
gage_set_ext_clock_variables (GAGE_SINGLE_CHAN,-1, 10000000.0);<br />
Visual BASIC:<br />
Call gage_set_ext_clock_variables (GAGE_SINGLE_CHAN,-1, 10000000.0)<br />
<strong>CompuScope</strong> API Reference <strong>Manua</strong>l 48