There is a difference between interactively draging a whole bunch of
channels into the table and programatically adding the channels one
after the other in a VBS.
In your script, the table view is refreshed after each adding command
(even if the module view is not visible). This takes a certain abount
of time if there are numerous channels to be redrawn. You can use the
property view.autorefresh to change this behaviour. Have a look at my
script, it is generating a table of 100 channnels without refreshing
VIEW after each of them. This accelerates the action to some view
seconds.
wndshow "VIEW"
view.autorefresh = false
view.newlayout
view.activesheet.ActiveArea.DisplayObjType="ChannelTable"
for iCNo =1 to 100
view.activesheet.ActiveArea.DisplayObj.columns.a
dd(iCNo)
next
view.autorefresh = true
Ingo Schumacher
Application Engineering
National Instruments