Our full technical support staff does not monitor this forum.
Please submit your question from our support page if you don't find an answer here.
Next Page

1

Previous Page

Created on: 09/06/10 01:11 AM

Alias and AvgRun

Replies: 4

Pierre


Posts: 8
Joined: 08/24/10

Alias and AvgRun
09/06/10 1: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

[Report Inappropriate or Erroneous Content]

IslandMan

United States


Solution: Weather & Climate

Posts: 283
Joined: 09/15/08

RE: Alias and AvgRun
09/06/10 5: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.

Dave Adams
Adams Environmental Systems, Inc.

[Report Inappropriate or Erroneous Content]

Pierre


Posts: 8
Joined: 08/24/10

RE: Alias and AvgRun
09/06/10 5: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

[Report Inappropriate or Erroneous Content]

IslandMan

United States


Solution: Weather & Climate

Posts: 283
Joined: 09/15/08

RE: Alias and AvgRun
09/07/10 4: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.

Dave Adams
Adams Environmental Systems, Inc.

[Report Inappropriate or Erroneous Content]

tmecham

United States


Campbell Scientific Inc. Employee Campbell Scientific Inc.

Posts: 59
Joined: 09/15/08

RE: Alias and AvgRun
09/07/10 6:06 AM

An alias only works on variables.

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

[Report Inappropriate or Erroneous Content]

Next Page

1

Previous Page

Reply

Please login to post a response.