02-04-2010 10:42 PM
This is what i want to do
i am using following formula where aw(t) is stored in [1]/FrequenceEvaluation channel
Call ChnCalculate((ChnIntegrate("Ch(""[1]/Time""),Ch(""[1]/FrequencyEvaluation"")^4,Ch(""[1]/VDV"")"))^0.25)
Solved! Go to Solution.
02-05-2010 01:27 AM
Hello GDU!
I would recommend to split you calculation into parts. This will reduce the risk of some errors you made.
Calculation steps:
In general it is not possible to use channel calculation functions in an ChnCalculate expression. The reason is that ChnCalculate evaluates its expression on every value in a channel one by one. In opposit all channel calculate functions will process the whole channel and writes the result in a new one.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
02-05-2010 02:05 AM
thats wat i thought of doing earlier but its creating 2 extra channels. I have to do this calculation on 9 such channels. I thought there might be some way of nesting integral function in chncalculate.
02-05-2010 09:04 AM
Hello GDU!
You don't need any additional channel if you save the ChnIntegrate result in the input channel (option, see help) and use the last value of this channel for the scalar calculation.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
02-07-2010 09:45 PM
Hi Twigeater
I got that but i need that channel for other calculations too. Right now i am managing with ChnDelete command after creation of intermediate channels.
Thanks