Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Alarm Axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PhoenixDaCat

14 Posts

Posted - 15 Mar 2005 :  17:27:00  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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);


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07