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.

RTMC Graph dependent on another Variable


Britt May 23, 2013 02:42 PM

In RTMC Pro, I'm trying to graph my rainfall in inches over time. However, I would only like to plot rainfall that belongs to a specific storm. Each record of rainfall in inches already has a corresponding "RainEventID" number associated with it. I'm not sure I'm doing this right at all, but this is what I have so far:

Alias(Rain,"Server:SID --- Weather Station.RainEvent.Rain_in_Tot");
GraphRainID = StartAtNewest("Server:SID --- Weather Station.RainEvent.RainEventID");
IIf(Server:SID --- Weather Station.RainEvent.RainEventID = GraphRainID, Rain, NoPlot)

* Last updated by: Britt on 5/23/2013 @ 8:42 AM *


tmecham May 23, 2013 04:31 PM

If you are just trying to look at a single storm by RainEventID, you could do something like this:


Alias(Rain,"Server:SID --- Weather Station.RainEvent.Rain_in_Tot");
Alias(RainEventID,"Server:SID --- Weather Station.RainEvent.RainEventID");
Alias(ViewID,"Virtual:values.ViewID");

IIF(ViewID = RainEventID, Rain, NoPlot)


You could then setup a setpoint or something that would let you set the ViewID to whatever storm you wanted to look at. Once you set the ViewID, you would then reload the project to restart the data and filter only the rain events that matched the ViewID.


Britt May 23, 2013 07:55 PM

Very Clever! I hadn't thought of that. Is there a way to code a drop list selection or a slider switch selection to variable=ViewID?

Most of my users will not have the "rights" to be able to know which storm number to select. Maybe something like this:

i = most recent storm number ***Is StartRelativeToNewest the incorrect fucntion?

Drop List: Most Recent Storm Event (i = ViewID)
Next Storm (i-1 = ViewID)
...
Last Storm (i - N = ViewID)


Britt Jun 4, 2013 02:30 PM

Is there a way to use a drop down menu to set a virtual value?


tmecham Jun 4, 2013 02:46 PM

You would need to add a virtual source to your project and add a column to write to. Then, just point your drop list at the virtual value. You will probably need to change the output interval of the virtual source so you see the changes faster than 1 minute as well.

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