10-20-2015 07:02 AM
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
10-20-2015 08:30 AM
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
10-20-2015 09:11 AM
Hi Brad,
That works.
Many thanks