|
|
DataqSdk Control > Events > OverRun |
Applies to: |
DATAQSDK Active X Control |
Description: |
Fires when the incoming data overwrites data that has not been removed from the buffer yet. Solutions could be to lower the sample rate, remove the data more quickly, or get a faster PC. |
Example: |
Private Sub DataqSdk1_ NewData(ByVal Count As Integer) DQChart1. Chart (DataqSdk1. GetData) End Sub
Private Sub Start_Click() DataqSdk1. ADChannelCount = 8 DataqSdk1. SampleRate = 25000 DataqSdk1. EventPoint = 20 DataqSdk1. Start Label2.Caption = Format(DataqSdk1. SampleRate, "0.00") End Sub
Private Sub Stop_Click() DataqSdk1. Stop End Sub
Private Sub DataqSdk1_OverRun() 'eventually you get an overrun error when running this with a DI-720 USB Label1.Caption = "OverRun error! Data has been overwritten!" DataqSdk1. Stop End Sub |