# $Revision: 1.1 $
Library {
  Name			  "lights"
  Version		  3.00
  BlockDataTips		  off
  BlockParametersDataTip  off
  BlockAttributesDataTip  off
  BlockPortWidthsDataTip  off
  BlockDescriptionStringDataTip	off
  BlockMaskParametersDataTip off
  ToolBar		  off
  StatusBar		  off
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Thu Jan 21 15:18:08 1999"
  Creator		  "ricks"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "ricks"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Thu Jan 21 16:56:19 1999"
  ModelVersionFormat	  "1.%<AutoIncrement:9>"
  ConfigurationManager	  "none"
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "lights"
    Location		    [172, 322, 376, 444]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    AutoZoom		    on
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "Light"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [75, 26, 105, 94]
      ShowPortLabels	      on
      MaskType		      "Light"
      MaskDescription	      "Place this light block on a boolean signal and "
"it will indicate the signal's value as green when it is true, and red when fa"
"lse.  Non-boolean signals are treated as false if equal to zero, and true oth"
"erwise.  Note that the input signal is passed straight through to the output "
"of this block.  For signals that are connected to trigger ports, an automatic"
" delay of 50 ms is added when the trigger fires."
      MaskPromptString	      "State"
      MaskStyleString	      "popup(Stop|Go)"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskVariables	      "state=&1;"
      MaskInitialization      "s = get_param(gcbh, 'position'); w = s(3)-s(1);"
"h = s(4)-s(2);\nr = min(w, h/2)/2;ang = 0:0.1:2*pi;\nx1 = r*sin(ang)+w/2; y1 "
"= r*cos(ang)+0.75*h;\nx2 = r*sin(ang)+w/2; y2 = r*cos(ang)+0.25*h;\n\nif strc"
"mp(state,'Stop')\n c1 = [1 0 0]; c2 = [0 0 0];\nelse\n c1 = [0 0 0]; c2 = [0 "
"1 0];\nend"
      MaskDisplay	      "patch([0 w w 0],[h h 0 0],[0.7 0.7, 0.7])\npatc"
"h(x1,y1,c1)\npatch(x2,y2,c2)"
      MaskSelfModifiable      on
      MaskIconFrame	      off
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "Stop"
      System {
	Name			"Light"
	Location		[384, 705, 637, 818]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "In"
	  Position		  [25, 28, 55, 42]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type \nConversion1"
	  Position		  [90, 24, 145, 46]
	  ShowName		  off
	  DataType		  "double"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "Light"
	  Ports			  [1, 0, 0, 0, 0]
	  Position		  [175, 24, 225, 46]
	  ShowName		  off
	  FunctionName		  "slight"
	  PortCounts		  "[]"
	  SFunctionModules	  "''"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [105, 68, 135, 82]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Data Type \nConversion1"
	  SrcPort		  1
	  DstBlock		  "Light"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    DstBlock		    "Data Type \nConversion1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 40]
	    DstBlock		    "Out"
	    DstPort		    1
	  }
	}
      }
    }
  }
}
