|
|
DQChart Control > Properties > DigitalMask |
DigitalMask
Applies to: |
DQChart Active X Control |
Description: |
Masks the data in the channel specified using the Channel property so that it is treated as a digital plot. When this property is set to 0 the channel is treated as an analog channel. This property can be set using the dropdown box in the properties window: 0 - Disabled (set as analog - default) 1 - PlotBit0 2 - PlotBit1 4 - PlotBit2 8 - PlotBit3 16 - PlotBit4 32 - PlotBit5 64 - PlotBit6 128 - PlotBit7 256 - PlotBit8 512 - PlotBit9 1024 - PlotBit10 2048 - PlotBit11 4096 - PlotBit12 8192 - PlotBit13 16384 - PlotBit14 32768 - PlotBit15 This property can only be used when plotting a single channel. |
Syntax: |
DQChart1.DigitalMask=variable (where variable is a whole number between 0 and 32768 which can be converted to volts (see Converting Counts to Volts)) |
Variable: |
|
Example: |
Private Sub Form_Load() DQChart1. Channel=0 DQChart1.DigitalMask=2 'Plot bit 1 End Sub
Private Sub DataqSdk1_ NewData(ByVal Count As Integer) DQChart1. Chart (DataqSdk1. GetData) End Sub
Private Sub Start_Click() DataqSdk1. ADChannelCount = 1 DataqSdk1. EventPoint = 20 DataqSdk1. Start End Sub
Private Sub Stop_Click() DataqSdk1. Stop End Sub |