Skip to content

Gating Functions

The Gating Function components are used to gate the onset and offset of signals with the specified envelope shape.

This group includes the following components:

Cos2Gate

Description:

Gates signal with Cos2 of specified rise/fall. Functions as an enable line. The gate will stay on as long as CTRL is HI. The rise time is the time it takes for the signal to reach 65% of the maximum value. The fall time is the time it takes the signal to reach 35% of the maximum value. The signal will start falling as soon as the CTRL goes low.

Name Description Data Type
Input Input Floating Point
Output Gated Signal Floating Point
Trf Rise/Fall time in milliseconds Floating Point (Static)
Ctrl Opens gate on High closes on Low Logic

Example:

External Trigger, TrgIn.

LinGate

Description:

Generates a linear gate with specified characteristics when triggered. Ctrl acts as an enable line. The rise time is the time it takes for the signal to reach 90% of the maximum value. The fall time is the time it takes the signal to reach 10% of the maximum value. The signal will start falling as soon as the Ctrl goes low.

Name Description Data Type
Input Input Floating Point
Output Gated Signal Floating Point
Trf Rise/Fall time in milliseconds Floating Point (Static)
Ctrl Opens gate on High closes on Low Logic

Example:

Digital-to-Analog Delay, 190.

LinRamp

Description:

Generates a linear ramp that begins at the Min value and goes towards the Max value over the specified Rise/Fall Time.

Name Description Data Type
Output Output value Floating Point
Min Minimum gate value Floating Point
Max Maximum gate value Floating Point
Trf Rise/Fall time in milliseconds between Min and Max value Floating Point
Ctrl Ramp starts on pulse high stays on until pulse goes low. Logic

Example:

Linear Ramp

File: Examples\LinRamp_ex.rcx

Default Device: RP2.1 Processor

Sampling Rate: 25 kHz

This example creates 20 ms long pulses with a 100 ms inter-pulse interval that is used to ramp a tone on and off using LinRamp. The output from LinRamp is used to control the amplitude parameter of the tone to gate it on and off.