Greetings,
You could use a For Loop to increment the channel and the upper and lower limit values from your table. For example:
For channel = 0 To 4
CWAI1.Channels.Add channel, upper(channel), lower(channel)
Next channel
Good luck with your application.
Spencer S.