DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

setting D2TabDataType(i) and D2TabVariable(i) from a 2D array

Hi,

 

I'm trying to work with 2D tables and have stored all the values I need in a 2D array named My_Table(Row,Col).I am not sure how to get them to be displayed in the 2D table by setting the D2TabType & D2TabVariable properties. I tried  D2TabDataType(1)="Expression"
D2TabVariable(1)="@@My_Table(d2tabcol or d2tabrow)@@" but it didn't work.

 

Any help would  be appreciated.

 

Thanks

Natasha

0 Kudos
Message 1 of 2
(3,390 Views)

Hi Natasha,

 

The REPORT table can only show global variables.  If you create a variable in a VBScript with the Dim command, then that variable dies as soon as the VBScript ends, and it is in any case never available for REPORT.  If you instead create the variable with the GlobalDim command, then you will be able to do the @@D2TabRow...@@ expression in REPORT.

 

But I would strongly encourage you to create a data channel in the Data Portal instead and reference the data channel in the Table.  That is more robust and easier to accomplish.  Where did this VBScript array you have come from?  You can use the ArrayToChannels command to send the array to data channels, for instance.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(3,374 Views)