|
|
DataqSerial Control > Properties > Key |
Key
Applies to: |
DATAQSERIAL Active X Control |
Description: |
If you are using an older DI-194 with only one channel enabled, you need to purchase a “key” (a hex number) from DATAQ instruments if you want to enable more than one channel. To purchase the Key, you need to get the serial number from the device first. |
Syntax: |
DataqSerial1.Key=variable (where variable is the hex number purchased from DATAQ) |
Variable: |
|
Example: |
Private Sub Start_Click() DataqSerial1. Device = 194 DataqSerial1.Key = '(hex number purchased from DATAQ) 'you can now enable 4 channels DataqSerial1. ChannelCount = 4 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 |