DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

name search channels

Hi all, 

 

I am trying to write a script to plot some graphs on DIADEM.

I have different files which I want to work with, but the names of the columns are slightly different for each file. So I need to select the channels
what I want to plot by their string contain.
For example, if my channel contains the world "ALL", how do I select it and put
it on the blank space of the code below?

 

Call oNewArea.DisplayObj.Curves.Add("[1]/Time","[1]/              ")

 

Many Thanks

 

Estefania

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

Hi emendez,

 

I believe this approach will work for you, based on what you've said so far:

 

Set Channels = Data.GetChannels("[1]/*ALL*")
FOR Each Channel In Channels
  Call oNewArea.DisplayObj.Curves.Add("[1]/Time", Channel.GetReference(eRefTypeIndexName))
NEXT

Brad Turpin

DIAdem Product Support Engineer

National Instruments

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

Hi Brad, 

 

That works. 

 

Many thanks

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