|
|
DataqSerial Control > Properties > AvailableData |
AvailableData
Applies to: |
DATAQSERIAL Active X Control |
Description: |
This function reports how many available new data points have been sent to the buffer since the last time data was retrieved using GetData. This property can be used instead of EventLevel which may be necessary with older programming languages (i.e., languages that do not respond to Active X events) by calling a subroutine when AvailableData reaches a certain value. This property is read-only. |
Syntax: |
variable=DataqSerial1.AvailableData |
Variable: |
|
Example: |
Private Sub Start_Click() DataqSerial1. EventLevel=20 DataqSerial1. Start Label1.Caption = DataqSerial1.AvailableData End Sub
Private Sub Stop_Click() DataqSerial1. Stop End Sub
Private Sub DataqSerial1_ NewData (ByVal Count As Integer) DQChart1. Chart (DataqSerial1. GetData) End Sub |