|
|
DataqSerial Control > Properties > EventLevel |
EventLevel
Applies to: |
DATAQSERIAL Active X Control |
Description: |
The event NewData fires whenever a set number or more of new data points have been gathered. The EventLevel property allows you to specify when you want the NewData event fired. The specified integer must be between 0 and 32,767. (A value of 0 never fires the event.) For example, if you specify “100” as the integer for EventLevel, the NewData event fires whenever 100 or more new data points have been gathered. Default value is 0. |
Syntax: |
DataqSerial1.EventLevel=variable |
Variable: |
|
Example: |
Private Sub Start_Click() 'sets EventLevel to 20 DataqSerial1.EventLevel=20 DataqSerial1. Start End Sub
Private Sub Stop_Click() DataqSerial1. Stop End Sub
Private Sub DataqSerial1_ NewData (ByVal Count As Integer) DQChart1. Chart (DataqSerial1. GetData) End Sub |