DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Can ChnEventListIndex specify the event to return?

Is it possible to specify the event to be returned by the ChnEventListIndex argument of ChnEventCreateXYChannels?

The code below expects to return only the second event, but all events are returned.

 

Dim objElementList

Call Data.Root.Clear()
Set objElementList = DataFileLoadSel("Example.TDM", "TDM", "[2]/Noise_5", "Load")

ChnEventList1 = ChnEventDetectionWindow("", objElementList.Item(1), 1, NOVALUE, 0, 0)
ChnEventList1 = ChnEventFilter(ChnEventList1, "Valleys", 0.1, "Value")
Set ChnResult = ChnEventCreateXYChannels("", objElementList.Item(1), ChnEventList1, 2)

 

Picture.PNG

0 Kudos
Message 1 of 2
(1,431 Views)

Hi Sven_X,

 

Yes, you are right. The last parameter of the ChnEventCreateXYChannels function should specify the returned event. I will share this information with R&D so they can fix the problem.

 

Thank you and greetings

Walter

Message 2 of 2
(1,400 Views)