08-02-2021 02:21 AM
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)
08-03-2021 05:35 AM
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