DataqSdk Control > Properties > TrigPostLength

Previous | Next

TrigPostLength

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.

TrigPostLength allows you to specify how many data samples to acquire after the trigger condition occurs If no post-trigger information is requested (TrigPostLength=0), no data is acquired in the buffer after the trigger condition occurs. Default is 100.

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.TrigPostLength=variable(where variable is the number of data samples to return after trigger)

Variable:

Integer

Example:

Private Sub Start_Click()

With DataqSdk1

     . ADChannelCount = 1

     . SampleRate = Val(Text1.Text)

     . TrigLevel = 11469

     . TrigScnChnIdx = 0

     . TrigHysteresisIdx = Hysteresis15

     . TrigMode = AnalogSlopeTrigger

     . TrigSlope = SlopePositive

     . TrigPreLength = 100

     'these post- and pre-length properties collect enough data to fill DQChart1

     .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

 

Reference Materials | Top