Author |
Topic  |
|
PhoenixDaCat
14 Posts |
Posted - 15 Mar 2005 : 17:27:00
|
I've set up my alarms, and I have two RTAlarmIndicator objects set up, one for the xaxis and one for the yaxis.
I can't figure out how to assign an alarm to a specific RTAlarmIndicator.
All alarms at the moment are appearing as a horizontal line through the yaxis.
How do I set up one of the alarms to be vertical through the xaxis? |
|
quinncurtis
1164 Posts |
Posted - 15 Mar 2005 : 19:09:59
|
The RTAlarm objects are added to an RTProcessVar object. The RTProcessVar object is used to create an indicator object (RTBarIndicator, RTSimpleSingleValuePlot, etc.). The RTAlarmIndicator references this indicator object and picks up on the RTProcesssVar attached to it, and through that the alarms.
The RTAlarmIndicator picks up on the base indicators BarOrient property. The normal use for vertical alarms like you are trying to create is for use with a horizontal RTBarIndicator, where the BarOrient property is explicitly set. If you aren't using the RTBarIndicator you can set it explicity as in the example below. That property has no effect on lineplots, but it will cause the alarm lines to be plotted using the x-axis scale.
SimpleLinePlot lineplot1 = new SimpleLinePlot(pTransform1, null, attrib1); lineplot1.SetFastClipMode( ChartObj.FASTCLIP_X); rtPlot1 = new RTSimpleSingleValuePlot(pTransform1,lineplot1, inputChannel1); chartVu.AddChartObject(rtPlot1);
rtPlot1.BarOrient = ChartObj.HORIZ_DIR;
RTAlarmIndicator alarmlines = new RTAlarmIndicator(xaxis1, rtPlot1); alarmlines.AlarmIndicatorMode = ChartObj.RT_ALARM_LIMIT_LINE_INDICATOR; chartVu.AddChartObject(alarmlines);
|
 |
|
|
Topic  |
|
|
|