DataqSerial Control > Properties > Device

Previous | Next

Device

Applies to:

DATAQSERIAL Active X Control

Description:

Specify the Dataq data acquisition device model number you are going to use or find out which one you are currently using. 194 is the default (for a DI-194).

Syntax:

DataqSerial1.Device=variable (where variable is the device model number)

Variable:

Integer

Example:

Private Sub Start_Click()

'for a DI-150RS

DataqSerial1.Device = 150

DataqSerial1. EventLevel=20

DataqSerial1. Start

Label1.Caption = "The model number of the device you are using is " & DataqSerial1.Device & "."

End Sub

 

Private Sub Stop_Click()

DataqSerial1. Stop

End Sub

 

Private Sub DataqSerial1_ NewData (ByVal Count As Integer)

DQChart1. Chart (DataqSerial1. GetData)

End Sub

 

Reference Materials | Top