|
|
DataqSerial Control > Properties > CommPort |
CommPort
Applies to: |
DATAQSERIAL Active X Control |
Description: |
Specifies the COM port (serial port) - port 1 is the default. To see which device is connected to which COM Port, use the Windows Hardware Device Manager. |
Syntax: |
DataqSerial1.CommPort=variable (where variable is the COM Port) |
Variable: |
|
Example: |
Private Sub Start_Click() 'sets to CommPort 2 DataqSerial1.CommPort = 2 DataqSerial1. EventLevel=20 DataqSerial1. Start Label1.Caption = "You are using Comm Port " & DataqSerial1.CommPort & "." End Sub
Private Sub Stop_Click() DataqSerial1. Stop End Sub
Private Sub DataqSerial1_ NewData (ByVal Count As Integer) DQChart1. Chart (DataqSerial1. GetData) End Sub |