DataqSdk Control > Methods > ADChannelList

Previous | Next

ADChannelList

Applies to:

DATAQSDK Active X Control

Description:

This command calls the Channel List as specified by the programmer. If not specified, default is same as numerical order (see ADChannelCount). To designate a digital channel use -1.

The DI-1100, DI-145, DI-245, DI-154, DI-194, and DI-195B do not support digital channels, but the inverted Evnt./DI0 input is available in the low order data bit from the first enabled channel, and the inverted Evnt/DI1 input is available in the next more significant bit.

The same number of channels must be enabled for each device (or no (0) channels for a device) when synchronized DI-2108-P instruments are connected.

For synchronized DI-2008 instruments, if more than one analog channel is enabled on any device, all devices must have the same number of analog and digital channels enabled or no (0) channels.

To specify channels on multiple DI-1100, DI-1110, DI-1120, DI-2008, DI-2108, DI-2108-P, DI-4108, DI-4208, DI-4718B, or DI-4730 devices, to each channel index (0-10) add 16 times the number of devices with lower serial numbers or listed ahead of it in the DeviceID property, and use 8 instead of -1 for digital channels. The channels for each device must grouped together, with all channels for each device at indices greater than those for the previous device and less than those for the next device listed adjacent to it in the DeviceID property, or the default order (for DeviceDriver = "DI360NT.DLL" by decreasing model number, then within each model) by increasing serial number.

Syntax:

DataqSdk1.ADChannelList (variant) (where variant is the name given to the list as specified by the programmer - in the example below it is ChannelList)

Example:

Dim ChannelList(32) As Integer

 

Private Sub Form_Load()

'Will set up channels labelled 1, 2, 3, 14, 15, and 16 (as labelled on your hardware device) to be channels 0, 1, 2, 3, 4, and 5 in this ChannelList and sets the seventh channel as digital

ChannelList(0)=0

ChannelList(1)=1

ChannelList(2)=2

ChannelList(3)=13

ChannelList(4)=14

ChannelList(5)=15

ChannelList(6)=-1

End Sub

 

Private Sub DataqSdk1_ NewData(ByVal Count As Integer)

DQChart1. Chart (DataqSdk1. GetData)

End Sub

 

Private Sub Start_Click()

DataqSdk1. ADChannelCount = 7

DataqSdk1. EventPoint = 20

DataqSdk1.ADChannelList (ChannelList)

DataqSdk1. Start

End Sub

 

Private Sub Stop_Click()

DataqSdk1. Stop

End Sub

 

Reference Materials | Top