DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Channel Subset

Solved!
Go to solution

Hello,

 

Is there an easy way of indexing a channel subsection? I am looking for the Matlab equivalent of 

A = 1:10;
A(5:end)
ans =
5 6 7 8 9 10

I know I can use DataBlCopy to create a temp channel but that seams unnecessarally complicated.

 

Thanks,

Denis

0 Kudos
Message 1 of 3
(3,552 Views)

*seems unnecessarily

(why is there no edit for the original post)

0 Kudos
Message 2 of 3
(3,541 Views)
Solution
Accepted by topic author Denis.Vashuk

Since DIAdem 2015 the channel object has a method GetValuesBlock

dim A : A = data.Root.ChannelGroups(1).Channels(1).GetValuesBlock(10,20,eValueBlockVbArray)

which allows an easy extraction of an VBS Array from an existing channel.

 

P.S.: The post can be edited for half an hour. Afterwards it is write protected to make sure the answers refere to the given post.

0 Kudos
Message 3 of 3
(3,523 Views)