(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:22:48 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "Using Global Variables in a UserObject")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 7)
  (component 0 TOGLOBAL
   (interface
	(input 1
	 (name "Data")
	 (tag "Data")
	)
   )
   (implementation
	(globalName globalA)
   )
  )
  (component 1 CONSTANT
   (name "Real")
   (interface
	(output 1
	 (name "Real")
	 (lock name constraints)
	)
   )
   (implementation
	(value Real
	 (data  1.223)
	)
	(initValue Real
	 (data  0)
	)
   )
  )
  (component 4 CONTEXT
   (name "UserObject")
   (implementation
	(locked no)
	(trigMode deg)
	(nextID 7)
	(component 0 FROMGLOBAL
	 (interface
	  (output 1
	   (name "Data")
	   (tag "Data")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (globalName globalA)
	 )
	)
	(component 1 TEXTDISPLAY
	 (interface
	  (input 1
	   (name "Data")
	  )
	 )
	 (implementation
	 )
	)
	(component 2 FORMULA
	 (interface
	  (output 1
	   (name "Result")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (expr 1 "globalA")
	 )
	)
	(component 3 TEXTDISPLAY
	 (interface
	  (input 1
	   (name "Data")
	  )
	 )
	 (implementation
	 )
	)
	(component 4 FORMULA
	 (interface
	  (input 1
	   (name "A")
	   (optional yes)
	  )
	  (output 1
	   (name "Result")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (expr 1 "globalA+sin(A)")
	 )
	)
	(component 5 TEXTDISPLAY
	 (interface
	  (input 1
	   (name "Data")
	  )
	 )
	 (implementation
	 )
	)
	(component 6 CONSTANT
	 (name "Real")
	 (interface
	  (output 1
	   (name "Real")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Real
	   (data  30)
	  )
	  (initValue Real
	   (data  0)
	  )
	 )
	)
	(configuration
	 (connect D0:1 D1:1)
	 (connect D2:1 D3:1)
	 (connect D6:1 D4:1)
	 (connect D4:1 D5:1)
	)
   )
  )
  (component 5 NOTE
   (implementation
   )
  )
  (component 6 NOTE
   (name "Information")
   (implementation
	(text2 5
	  "This example shows how to set a global "
	  "variable in the main program, and access the "
	  "global variable from within a UserObject."
	  "For further information, see \"To Use a Global"
	  "Variable\" in your \"How to Use HP VEE\" manual."
	)
   )
  )
  (configuration
   (connect D1:1 D0:1)
   (connect D0:0 D2:0)
  )
 )
 (viewFor -1
  (active detail)
  (detail
   (geometry 0 53 900 447)
   (configuration
	(viewFor 0
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 285 234 81 53)
	 )
	 (terminals on)
	)
	(viewFor 1
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 134 245 72 30)
	  (showFormat real)
	 )
	)
	(viewFor 4
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 67 338 546 285)
	  (configuration
	   (viewFor 0
		(active detail)
		(icon
		)
		(detail
		 (geometry 145 374 81 53)
		)
		(terminals on)
	   )
	   (viewFor 1
		(active detail)
		(icon
		)
		(detail
		 (geometry 304 384 153 33)
		)
	   )
	   (viewFor 2
		(active detail)
		(icon
		)
		(detail
		 (geometry 150 474 81 32)
		)
		(terminals on)
	   )
	   (viewFor 3
		(active detail)
		(icon
		)
		(detail
		 (geometry 324 475 152 31)
		)
	   )
	   (viewFor 4
		(active detail)
		(icon
		)
		(detail
		 (geometry 227 564 126 32)
		)
		(terminals on)
	   )
	   (viewFor 5
		(active detail)
		(icon
		)
		(detail
		 (geometry 438 566 145 29)
		)
	   )
	   (viewFor 6
		(active detail)
		(icon
		)
		(detail
		 (geometry 93 565 75 31)
		 (showFormat real)
		)
	   )
	   (connect D0:1 D1:1
		(points 2 268 400 301 400)
	   )
	   (connect D2:1 D3:1
		(points 2 283 490 321 490)
	   )
	   (connect D6:1 D4:1
		(points 2 170 580 194 580)
	   )
	   (connect D4:1 D5:1
		(points 2 405 580 435 580)
	   )
	  )
	  (stackingOrder 4 0 2 1 3 5 6)
	 )
	 (terminals on)
	)
	(viewFor 5
	 (active icon)
	 (icon
	  (geometry 511 106 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 830 250 200 100)
	  (editing enabled)
	 )
	)
	(viewFor 6
	 (active detail)
	 (icon
	  (geometry 0 0 77 0)
	  (iconImage "notepad.icn")
	 )
	 (detail
	  (geometry 32 76 456 109)
	  (editing disabled)
	 )
	 (title off)
	)
	(connect D1:1 D0:1
	 (points 2 208 260 242 260)
	)
	(connect D0:0 D2:0
	 (points 4 320 289 320 300 340 300 340 317)
	)
   )
   (stackingOrder 2 0 4 3 1)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 6)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
