DewesoftX Math Function: adding Formula with counter channel
Hello,
I am using a pulse type flowmeter on counter channel of Dewe43A.
I want to add a math function to this channel.
Formula I am using is:
{ Raw count (n+1) - Raw count (n) / time (n+1) - time(n) } * 424.05.
Dear Karansinh Kurane,
I understand you are trying to add a formula and perform a calculation. Do you have any particular problem that is giving you issues?
If you want to analyze and calculate data on each individual sample, you can use the ".data" function. For example, if you want to average the current and previous sample you can use a formula: 'AI 2'.data(0)*0.5+'AI 2'.data(-1)*0.5. In this case, data(0) is the current sample of the channel and data(-1) is the previous sample.
Best regards,
Nejc Ucman,
Customer Support Engineer
Hello Nejc,
Which syntax/ function should I use to create time math function --> time(n+1)-time(n)?
Dear Karansinh,
to answer your question, to calculate time between two samples of your asynchronous channel you can use this solution:
Calculating time between two asynchronous samples
Then maybe you can multiply this with 424,05 to get your value?
If you want, you can share your datafile with me and explain a bit more what you want to achieve and what exactly are you having issues with? Maybe this way I can understand the problem better.
Best regards.