|
|
DataqSdk Control > Properties > TrigSlope |
Applies to: |
DATAQSDK Active X Control |
Description: |
When triggering occurs, the hardware device starts sending data to the buffer. The hardware device is still sampling data when triggering is off - it is simply not storing it in the buffer. TrigSlope allows you to trigger on the rising slope of the analog or digital signal (0-SlopeNegative) or on the falling slope of the analog or digital signal (1-SlopePositive). The digital signal is 1 if any of the specified digital input bits is high. A transition in the result is required to generate a digital trigger. The default is 0. This property is not available when using DI-145, DI-149, DI-155, DI-194, DI-154, DI-195B, DI-148, DI-158, DI-245, DI-1100, DI-1110, DI-1120, DI-2008, DI-2108, DI-2108-P, DI-4108, DI-4208, DI-4718B, and all DI-71x series devices. |
Syntax: |
DataqSdk1.TrigSlope=variable (where variable is either SlopeNegative or SlopePositive) |
Variable: |
|
Example: |
Private Sub Start_Click() With DataqSdk1 . ADChannelCount = 1 . SampleRate = Val(Text1.Text) . TrigLevel = 11469 . TrigScnChnIdx = 0 . TrigHysteresisIdx = Hysteresis15 . TrigMode = AnalogSlopeTrigger 'sets the trigger to be on the falling slope .TrigSlope = SlopePositive . TrigPreLength = 100 . TrigPostLength = DQChart1. Xmax - 100 End With DataqSdk1. Start Text1.Text = Format(DataqSdk1. SampleRate, "0.00") End Sub
Private Sub Stop_Click() DataqSdk1. Stop End Sub
Private Sub Timer1_Timer() If DataqSdk1. AvailableData >= DQChart1. Xmax Then DQChart1. Chart (DataqSdk1. GetData) DataqSdk1. Start End If End Sub |