DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

channel table to table

Solved!
Go to solution

Hi All,

 

I would like to Fill in a Table in the SUD with  a Channel Data (more than 20000 rows)

 I was trying with a loop  which takes more than 3 mins to fill the table and display it .I just need to consider the real data NOVALUES are not taken in to consider.

 For rowcnt = 1 To ChnLength("PosPeaks")
     If Not ( CHD(rowcnt,CNo("PosPeaks"))  = "NOVALUE" ) Then
        tblCrossOver.Cells(cnt,1).Value = rowcnt
        tblCrossOver.Cells(cnt,2).Value = Round(CHD(rowcnt,CNo("PosPeaks")),10)
        cnt = cnt + 1
     End If
   Next 'rowcnt

 Output Should be like this

Output should be like the Table above.

 

Kindly help me with this.

 

regards,

 

Swaroop K.B

0 Kudos
Message 1 of 4
(4,790 Views)

I'm Looking for a faster method to populate the data in the table from a channel.

 

Kindly help me with this.

 

regards,


Swaroop 

0 Kudos
Message 2 of 4
(4,777 Views)
Solution
Accepted by topic author dragnov

Hi dragnov,

 

Please find attached a SUD example which uses the XTable - the fast table for DIAdem dialogs.

In this table the channels of the example dataset "Noise data" are displayed. Each of these channels contains 325 000 values. With using the XTable it is easy to scroll through the channels.

 

In the XTable we have tow main events: "EventValGet" and "EventValSet"

 

"EventValGet" is called for each cell to get the content which should be shown in that cell.

 

"EventValSet" is called for each cell to save the content which have been changed.

 

This table is very fast, because this is done only for the table row's and col's you currently see.

 

To run the example, please load the example dataset, open the SUD editor and load and run the attached example.

If it is necessary to change the displayed data go to the initialization event (row 14) and change the channel group name.

The example was created with DIAdem 2011

 

 

 

Greetings

Walter

0 Kudos
Message 3 of 4
(4,774 Views)

THnak you for that... Looks like that will do.....

0 Kudos
Message 4 of 4
(4,755 Views)