23.11.2014 Views

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

gage_trigger_control_2<br />

Syntax<br />

C:<br />

int16 GAGEAPI gage_trigger_control_2 (int16 source_1, int16 source_2, int16 ext_coupling,<br />

int16 ext_gain, int16 slope_1, int16 slope_2, int16 level_1,<br />

int16 level_2, int32 depth, int16 trigger_from_bus, int16 trigger_to_bus);<br />

Visual BASIC:<br />

Function gage_trigger_control_2 (ByVal source_1 As Integer, ByVal source_2 As Integer,<br />

ByVal ext_coupling As Integer, ByVal ext_gain As Integer,<br />

ByVal slope_1 As Integer, ByVal slope_2 As Integer,<br />

ByVal level_1 As Integer, ByVal level_2 As Integer,<br />

ByVal depth As Long, ByVal trigger_from_bus As Integer,<br />

ByVal trigger_to_bus As Integer) As Integer<br />

Remarks<br />

gage_trigger_control_2 is used to set the trigger parameters and capture depth on <strong>CompuScope</strong> hardware.<br />

The routine accepts two sets of values for the three main trigger parameters, the trigger source, the trigger<br />

level and the trigger slope.<br />

Some <strong>CompuScope</strong> models, such as the CS14100, have two separate trigger circuits. The two sets of<br />

trigger parameters are used to control each of these trigger circuits. The outputs of each circuit are<br />

logically ORed together to specify the trigger event. The two trigger circuits may be used, for instance, to<br />

effect "absolute value triggering" on channel A. This is done by setting both source_1 and source_2 to<br />

GAGE_CHAN_A, setting level_1 and level_2 values that correspond to equal and opposite voltages and<br />

setting slope_1 and slope_2 to GAGE_POSITIVE and GAGE_NEGATIVE, respectively. In this way, the<br />

<strong>CompuScope</strong> will trigger whenever the voltage on the channel A input goes above level_1 or below<br />

level_2.<br />

In order to disable the second trigger circuit, simply set source_2 to GAGE_SOFTWARE. For<br />

<strong>CompuScope</strong>s that are not equipped with two trigger circuits, the "_2" parameters have no effect.<br />

source_1 and source_2 can be either channel A, B, external trigger or software trigger. The constants<br />

GAGE_CHAN_A, GAGE_CHAN_B, GAGE_EXTERNAL and GAGE_SOFTWARE should be used to<br />

specify their respective sources. The two sources do not have to be the same. To disable one of the<br />

triggers, set it to GAGE_SOFTWARE. If a software trigger is desired, then both trigger sources must be<br />

set to GAGE_SOFTWARE.<br />

ext_coupling controls the coupling of the EXTERNAL TRIGGER BNC input on the <strong>CompuScope</strong><br />

hardware. ext_coupling can be set to either DC or AC by using the constants GAGE_DC and GAGE_AC,<br />

respectively. If the trigger source is not external, this parameter will be ignored, although it should be set<br />

to a valid value.<br />

ext_gain controls the input sensitivity of the EXTERNAL TRIGGER BNC input on the <strong>CompuScope</strong><br />

hardware. ext_gain can be set to either ±5 Volt or ±1 Volt by using the constants GAGE_PM_5_V and<br />

GAGE_PM_1_V, respectively. If the trigger source is not external, this parameter will be ignored,<br />

although it should be set to a valid value.<br />

<strong>CompuScope</strong> API Reference <strong>Manua</strong>l<br />

55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!