04-24-2009 05:48 PM
I want to programatically fill a table. I wrote attached script in feb and it was working. Now I have messed up something. It will not add the columns.
help
Jim
Solved! Go to Solution.
04-27-2009 09:51 AM
Hi Jim,
I took a look at your VBScript and was able to reproduce the empty table you described. After poking around a bit, I noticed that the layout you create programmatically is number-oriented, while the table column variable you use to assign the data channel is the one for name-oriented referencing. All REPORT objects have two sets of channel variables, one set for number-oriented channel referencing (the default in DIAdem 8.1 and prior) and another set for name-oriented channel referencing (the default since 9.0).
When I added the following line to force the layout to be name-oriented, your table columns magically appeared:
PicDefByIdent = 1 ' Name-Oriented channel referencing
Brad Turpin
DIAdem Product Support Engineer
National Instruments
04-27-2009 10:36 AM
Brad,
Thank you for the advice... you said "I noticed that the layout you create programmatically is number-oriented"
How do I modify script to be name oriented? (Basically, what should I have done.)
Jim
04-27-2009 01:53 PM
Hello Jim,
There is a setting in the REPORT panel, that is responsible for this.
In REPORT - go to the SETTINGS menu, then LAYOUT SETUP > LAYOUT PARAMETERS ...
The dialog that shows up has a section called "Channel Reference" - just set the radio button to the selection you prefer.