|
|
DQChart Control > Properties > Channel |
Channel
Applies to: |
DQChart Active X Control |
Description: |
Use the channel index (0 as the first channel) to specify the channel to display in your chart. For example, if your enabled channels are 2, 5, 6, 7, 14 in DataqSdk, and you specify DQChart1.Channel=0, you are specifying channel 2 to be plotted. If you specify DQChart1.Channel=3, you are specifying channel 7 to be plotted. You can either plot one channel or all enabled channels. If this property is a negative number, all the channels (up to 16) will be plotted. Default is –1. |
Syntax: |
DQChart1.Channel=variable (where variable is the channel designation: -1 to 31) |
Variable: |
|
Example: |
Dim ChannelList(32) As Integer
Private Sub Form_Load() ChannelList(0)=0 ChannelList(1)=6
'these channel settings will put the first channel (labelled channel 1 on your hardware device) in chart1, the second channel (labelled channel 7 on your hardware device) in chart2 and both channels in chart3 DQChart1.Channel = 0 DQChart2.Channel = 1
'this line of code is unnecessary because -1 is the default DQChart3.Channel = -1 End Sub
Private Sub DataqSdk1_ NewData(ByVal Count As Integer) DQChart1. Chart (DataqSdk1. GetData) DQChart2. Chart (DataqSdk1. GetData) DQChart3. Chart (DataqSdk1. GetData) End Sub
Private Sub Start_Click() DataqSdk1. ADChannelCount = 2 DataqSdk1. EventPoint = 20 DataqSdk1. ADChannelList (ChannelList) DataqSdk1. Start End Sub
Private Sub Stop_Click() DataqSdk1. Stop End Sub |