DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Search - wrong Result

Solved!
Go to solution

Hello,

I try to perform Event Search using channel values for both cases: condition fulfilled and condition not fulfilled. Event Search gives opposite result then expected.

When I use for both cases single value it works correctly.

When I use for one case single value and for the second case channel values it works correctly too.

See attachement

 

Do I something wrong or is it an error?

Thank you in advance

0 Kudos
Message 1 of 5
(1,151 Views)

Hello Brkas,

 

which DIAdem version do you use? I have tested the following with DIAdem 2023 Q2, which leads to an error-free result:
From the example data set (Example.tdm) I used the Torque channel, where all values between 200 and 300 should be found. If the found value ranges are filled with the values from the same channel, the result curve must be identical to the input channel. That works correct.

AnJalpaka_0-1695818433115.png

 

You use a channel called TH if the condition is not fulfilled. This channel has no unit. Since you have activated the quantity-based mode (recognizable by the addition Quantity-Based in the title of the dialog), all channels should have a unit. Whether the missing unit is the cause for your issue, I cannot say.

 

Other ideas for possible incorrect behavior would be:
- You are using waveform channels. Are the waveform properties (x-unit, x-start time x-step width) of the channels the same?
- Are the channels all the same length?

 

To be able to reproduce the behavior, it would be good if the channels/data set could be provided. If this is not possible, an other data set would help to reproduce the behavior. Can you reproduce it with DIAdem example data?

0 Kudos
Message 2 of 5
(1,114 Views)

Hello AnJalpaka,

I use DIAdem 2023 Q2 too.

 

I have tested that again, this time with Example.tdm. I used Room temperatures.

 

When I enter:

     If Temperature_1 = <28;33>

          then: Use values from channel Temperature_3

          else: 0

The result is CORRECT.

 

When I enter:

     If Temperature_1 = <28;33>

          then: Use values from channel Temperature_3

          else: Use values from channel Temperature_2

The result is INVERSE !!!

 

You can see it in attachment.

 

Note: It does not matter whether the quantity-based mode is activated or not.

 

 

 

 

0 Kudos
Message 3 of 5
(1,089 Views)
Solution
Accepted by topic author Brkas

Hello Brkas,

 

You are right. There is a bug in the dialog if a channel is specified for the fulfilled and for the not fulfilled condition. The dialog sets the two channels reversed in the math function. With the following VBS code you can get the correct result:

 

ChnEventList1 = ChnEventDetectionWindow("", "[4]/Temperatur_1", 28, 33, 0, 0)
Call ChnEventCreateFilteredChn("/EventTemperature", ChnEventList1, "[4]/Temperatur_2", "[4]/Temperatur_3")

 

I will add an entry in the bug database so that the bug can be fixed for DIAdem 2024 Q2.

0 Kudos
Message 4 of 5
(1,060 Views)

Thank you🙂

0 Kudos
Message 5 of 5
(1,054 Views)