09-26-2023 09:08 AM
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
Solved! Go to Solution.
09-27-2023 07:42 AM
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.
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?
10-02-2023 04:41 AM
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.
10-06-2023 08:07 AM
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.
10-06-2023 08:10 AM
Thank you🙂