Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Alias and AvgRun


Pierre Sep 6, 2010 07:11 AM

It seems that this is not possible in RTMC Pro:

Alias(WD,AvgRun("Server:CR3000_battelle.Test.Dirvent",10))

Am I right?

How to put an average value in a variable?

Thanks


IslandMan Sep 6, 2010 11:16 AM

I'm assuming WD is Wind Direction?
I'm not an expert at expressions but if you want to just
Alias a running average WD that's being calculated in the logger I would think Alias(WD,"Server:CR3000_battelle.Test.Dirvent") would do the trick.
If you wanted to create a running Average of WD in RTMCPro it would be pretty complicated as you cannot do a simple linear averages which is what AvgRun would give you.
Please give us some more hints at what you are trying to do.


Pierre Sep 6, 2010 11:31 AM

Sorry, wind direction is a bad example. I would like to do an alias like this:

Alias(X,AvgRun("Server:CR3000_battelle.Test.Xvar",10)); ....

in RTMC pro

Thanks


IslandMan Sep 7, 2010 10:22 AM

I gave it a try with one of my projects, doesn't seem to work.
You could do the Avgrun in the logger and repeatedly use that value in your computations. You just have to retrieve the Public table or write it to a regular table 1/sec to have the same effect as doing it in RTMC Pro.


tmecham Sep 7, 2010 12:06 PM

An alias only works on variables.

Alias(X,"Server:CR1000.MINUTE.Temp_F"); AvgRun(X,10)

Log in or register to post/reply in the forum.