(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:23:18 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "Reading  XY Values From A Text File")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 18)
  (component 0 BREAK
  )
  (component 1 FROMFILE
   (interface
	(output 1
	 (name "X")
	 (lock constraints)
	 (optional yes)
	)
	(output 2
	 (name "Y")
	 (lock constraints)
	 (optional yes)
	)
	(output 3
	 (name "EOF")
	 (tag "EOF")
	 (lock name constraints)
	 (optional yes)
	)
   )
   (implementation
	(transactions 1
	  "READ TEXT x, y REAL"
	)
	(attr iopath file read "~installDir/examples/manual/manual29.dat"
	 (readTerm "\n")
	 (fs " ")
	 (eol "\n")
	 (multiField fullSyntax)
	 (arrayFormat block)
	)
   )
  )
  (component 2 COLLECTOR
   (interface
	(input 1
	 (name "Data")
	 (tag "Data")
	)
	(input 2
	 (type trigger)
	 (name "XEQ")
	 (lock name constraints)
	)
	(output 1
	 (name "Array")
	 (tag "Array")
	 (lock constraints)
	)
   )
   (implementation
	(output1D YES)
   )
  )
  (component 3 COLLECTOR
   (interface
	(input 1
	 (name "Data")
	 (tag "Data")
	)
	(input 2
	 (type trigger)
	 (name "XEQ")
	 (lock name constraints)
	)
	(output 1
	 (name "Array")
	 (tag "Array")
	 (lock constraints)
	)
   )
   (implementation
	(output1D YES)
   )
  )
  (component 4 TEXTDISPLAY
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (component 5 TEXTDISPLAY
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (component 6 NOTE
   (name "Thread #1")
   (implementation
	(text2 4
	  "This thread reads the file"
	  "and builds two arrays"
	  "from the XY pairs"
	  "stored in the data file."
	)
   )
  )
  (component 7 START25
  )
  (component 8 REPEATUNTILBREAK
   (interface
	(output 1
	 (name "Continuous")
	 (lock name constraints)
	)
   )
  )
  (component 9 XYPLOT
   (name "X vs Y Plot")
   (interface
	(input 1
	 (name "XData")
	 (lock constraints)
	)
	(input 2
	 (name "YData1")
	 (lock constraints)
	)
	(input 3
	 (type control)
	 (name "Auto Scale")
	 (lock name constraints)
	 (optional yes)
	)
   )
   (implementation
	(tracePin 2)
	(graphMode rectangular)
   )
  )
  (component 10 FROMFILE
   (interface
	(output 1
	 (name "X")
	 (lock constraints)
	 (optional yes)
	)
	(output 2
	 (name "Y")
	 (lock constraints)
	 (optional yes)
	)
	(output 3
	 (name "EOF")
	 (tag "EOF")
	 (lock name constraints)
	 (optional yes)
	)
   )
   (implementation
	(transactions 1
	  "READ TEXT x, y REAL"
	)
	(attr iopath file read "~installDir/examples/manual/manual29.dat"
	 (readTerm "\n")
	 (fs " ")
	 (eol "\n")
	 (multiField fullSyntax)
	 (arrayFormat block)
	)
   )
  )
  (component 11 NOTE
   (name "Thread #2")
   (implementation
	(text2 6
	  "This thread reads the file"
	  "and plots the data points"
	  "as they are read.  Notice"
	  "that there is no need to "
	  "build an array or waveform"
	  "in order to plot the data."
	)
   )
  )
  (component 12 NOTE
   (name "Warranty Disclaimer")
   (implementation
	(text2 4
	  "This example is provided as an"
	  "illustration \"as is\", and Hewlett-Packard"
	  "Company makes no warranty of any kind"
	  "with regard to this example."
	)
   )
  )
  (component 13 CONTEXT
   (name "Press For")
   (implementation
	(locked no)
	(trigMode deg)
	(nextID 3)
	(component 0 IFTHENELSE
	 (name "!= 0")
	 (interface
	  (input 1
	   (name "A")
	   (optional yes)
	  )
	  (output 1
	   (name "Then")
	   (lock name constraints)
	  )
	  (output 2
	   (name "Else")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (expr "a!=0")
	 )
	)
	(component 1 TOGGLE25
	 (name "Info About")
	 (interface
	  (input 1
	   (type control)
	   (name "Reset")
	   (lock name constraints)
	   (optional yes)
	  )
	  (output 1
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Int32
	   (data  0)
	  )
	  (autoTrigger on)
	  (initValue Int32
	   (data  0)
	  )
	 )
	)
	(component 2 CONTEXT
	 (name "Info About...")
	 (implementation
	  (locked no)
	  (trigMode deg)
	  (nextID 2)
	  (popupMoveable)
	  (component 0 CONFIRM25
	   (name "DONE")
	   (interface
		(output 1
		 (name "Go")
		 (lock name constraints)
		)
	   )
	   (implementation
		(component enterButton yes)
		(component escapeButton yes)
	   )
	  )
	  (component 1 NOTE
	   (name "Info About")
	   (implementation
		(text2 30
		  "Overview:"
		  "  This program illustrates how to read an unknown number of XY values from a text "
		  "  file."
		  ""
		  "Details:"
		  "  The two threads in this program read data in the same way, but handle it "
		  "  differently after it is read.  Refer to the \"Note Pads\" adjacent to each "
		  "  thread for additional information."
		  ""
		  "  The data file read by each thread is the same; you may wish to view it in a "
		  "  text editor outside of HP VEE.  Note how flexibly HP VEE interprets various "
		  "  notations for numbers including optional signs, decimal points, and exponents."
		  ""
		  "This is how to run this program:"
		  "  Simply click on \"Start\" for each thread."
		  ""
		  "This is how the program works:"
		  "  The data in the file consists of X and Y values separated"
		  "  by whitespace, one pair per line.  Here are typical "
		  "  contents of the data file:"
		  "        1  1.1"
		  "        2  2.2"
		  "        3  3.3"
		  "        .  ."
		  "        .  ."
		  "        .  ."
		  ""
		  "  The \"From File\" object reads pairs of XY values from the file until the end "
		  "  of the file is reached; at that point the \"EOF\" terminal of \"From File\" "
		  "  terminates the \"Until Break\" loop."
		)
	   )
	  )
	  (configuration
	  )
	  (ShowOnExecPanel
	   (geometry 6 37 849 561)
	   (panel
		(geometry 28 124 845 533)
		(widget 1 detail
		 (title off)
		 (borderStyle flat)
		 (geometry 33 130 835 463)
		 (editing disabled)
		)
		(widget 0 detail
		 (title off)
		 (borderStyle flat)
		 (geometry 418 608 64 34)
		)
	   )
	  )
	 )
	)
	(configuration
	 (connect D1:1 D0:1)
	 (connect D0:0 D1:1)
	 (connect D0:1 D2:0)
	)
   )
  )
  (component 14 BREAK
  )
  (component 15 REPEATUNTILBREAK
   (interface
	(output 1
	 (name "Continuous")
	 (lock name constraints)
	)
   )
  )
  (component 16 START25
  )
  (component 17 DO
   (interface
	(output 1
	 (name "Do")
	 (lock name constraints)
	)
   )
  )
  (configuration
   (connect D1:3 D0:0)
   (connect D15:1 D1:0)
   (connect D1:2 D2:1)
   (connect D15:0 D2:2)
   (connect D1:1 D3:1)
   (connect D15:0 D3:2)
   (connect D3:1 D4:1)
   (connect D2:1 D5:1)
   (connect D7:0 D8:0)
   (connect D10:1 D9:1)
   (connect D10:2 D9:2)
   (connect D17:1 D9:3)
   (connect D8:1 D10:0)
   (connect D17:0 D14:0)
   (connect D16:0 D15:0)
   (connect D10:3 D17:0)
  )
 )
 (viewFor -1
  (active detail)
  (detail
   (geometry 0 53 900 447)
   (configuration
	(viewFor 0
	 (active icon)
	 (icon
	  (geometry 771 398 78 25)
	 )
	 (detail
	 )
	 (terminals on)
	)
	(viewFor 1
	 (active detail)
	 (icon
	  (geometry 185 228 110 25)
	 )
	 (detail
	  (geometry 338 234 324 153)
	 )
	 (terminals on)
	)
	(viewFor 2
	 (active icon)
	 (icon
	  (geometry 775 308 110 25)
	 )
	 (detail
	  (geometry 685 445 60 110)
	 )
	 (terminals on)
	)
	(viewFor 3
	 (active icon)
	 (icon
	  (geometry 775 258 110 25)
	 )
	 (detail
	  (geometry 545 305 60 110)
	 )
	 (terminals on)
	)
	(viewFor 4
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 973 116 174 109)
	 )
	)
	(viewFor 5
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 973 336 174 109)
	 )
	)
	(viewFor 6
	 (active detail)
	 (icon
	  (geometry 0 0 110 0)
	 )
	 (detail
	  (geometry 15 231 270 98)
	  (editing disabled)
	 )
	)
	(viewFor 7
	 (active detail)
	 (icon
	  (geometry -21 -7 42 15)
	 )
	 (detail
	  (geometry 387 422 67 37)
	 )
	 (title off)
	)
	(viewFor 8
	 (active icon)
	 (icon
	  (geometry 365 478 110 64)
	  (iconImage "loop.icn")
	 )
	 (detail
	 )
	 (terminals on)
	)
	(viewFor 9
	 (active detail)
	 (icon
	  (iconImage "display.icn")
	 )
	 (detail
	  (geometry 855 492 360 296)
	  (displayMode scrollGraph)
	  (graphType cartesian)
	  (gridType grid)
	  (scale 0
	   (name "Y name")
	   (domainName "X name")
	   (pen 9)
	   (show 1)
	   (range 0 14 3 linear)
	  )
	  (domain 0 12 3 linear)
	  (trace 0 onScale 0
	   (name "YData1")
	   (pen 4)
	   (lineType 1)
	   (pointType 0)
	  )
	 )
	 (terminals on)
	)
	(viewFor 10
	 (active detail)
	 (icon
	  (geometry 185 228 110 25)
	 )
	 (detail
	  (geometry 328 614 324 153)
	 )
	 (terminals on)
	)
	(viewFor 11
	 (active detail)
	 (icon
	  (geometry 0 0 110 0)
	 )
	 (detail
	  (geometry 15 619 271 142)
	  (editing disabled)
	 )
	)
	(viewFor 12
	 (active icon)
	 (icon
	  (geometry 541 96 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 522 109 397 82)
	  (editing disabled)
	 )
	)
	(viewFor 13
	 (active panel)
	 (icon
	  (geometry 735 628 110 25)
	 )
	 (panel
	  (geometry 11 102 319 77)
	  (widget 1 detail
	   (title off)
	   (borderStyle flat)
	   (geometry 113 115 114 39)
	   (scaled on)
	   (format button)
	  )
	 )
	 (detail
	  (geometry 4 75 912 591)
	  (configuration
	   (viewFor 0
		(active icon)
		(icon
		 (geometry 325 310 46 25)
		)
		(detail
		 (geometry 209 308 73 64)
		)
		(terminals on)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry -40 -7 81 15)
		)
		(detail
		 (geometry 161 303 114 39)
		 (scaled on)
		 (format button)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 387 378 127 25)
		)
		(detail
		 (geometry 535 540 351 200)
		 (configuration
		  (viewFor 0
		   (active detail)
		   (icon
			(geometry -22 -7 45 15)
		   )
		   (detail
			(geometry 690 659 58 37)
		   )
		   (title off)
		  )
		  (viewFor 1
		   (active icon)
		   (icon
			(geometry 635 598 110 25)
		   )
		   (detail
			(geometry 162 583 537 234)
			(editing enabled)
		   )
		  )
		 )
		 (stackingOrder 0 1)
		)
	   )
	   (connect D1:1 D0:1
		(points 2 277 322 322 322)
	   )
	   (connect D0:0 D1:1
		(points 5 348 337 348 360 140 360 140 322 158 322)
	   )
	   (connect D0:1 D2:0
		(points 3 373 312 450 312 450 375)
	   )
	  )
	  (stackingOrder 0 1 2)
	 )
	)
	(viewFor 14
	 (active icon)
	 (icon
	  (geometry 671 828 78 25)
	 )
	 (detail
	 )
	 (terminals on)
	)
	(viewFor 15
	 (active icon)
	 (icon
	  (geometry 375 118 110 64)
	  (iconImage "loop.icn")
	 )
	 (detail
	 )
	 (terminals on)
	)
	(viewFor 16
	 (active detail)
	 (icon
	  (geometry -21 -7 42 15)
	 )
	 (detail
	  (geometry 400 63 61 34)
	 )
	 (title off)
	)
	(viewFor 17
	 (active icon)
	 (icon
	  (geometry 687 788 46 25)
	 )
	 (detail
	 )
	 (terminals on)
	)
	(connect D1:3 D0:0
	 (points 3 704 360 810 360 810 395)
	)
	(connect D15:1 D1:0
	 (points 3 487 150 505 150 505 213)
	)
	(connect D1:2 D2:1
	 (points 2 704 310 772 310)
	)
	(connect D15:0 D2:2
	 (points 7 430 184 430 190 720 190 720 280 740 280 740 330 772 330)
	)
	(connect D1:1 D3:1
	 (points 2 704 260 772 260)
	)
	(connect D15:0 D3:2
	 (points 5 430 184 430 190 720 190 720 280 772 280)
	)
	(connect D3:1 D4:1
	 (points 4 887 270 900 270 900 170 970 170)
	)
	(connect D2:1 D5:1
	 (points 4 887 320 900 320 900 390 970 390)
	)
	(connect D7:0 D8:0
	 (points 2 420 461 420 475)
	)
	(connect D10:1 D9:1
	 (points 6 694 640 710 640 710 630 720 630 720 540 772 540)
	)
	(connect D10:2 D9:2
	 (points 4 694 690 720 690 720 640 772 640)
	)
	(connect D17:1 D9:3
	 (points 4 735 800 750 800 750 740 772 740)
	)
	(connect D8:1 D10:0
	 (points 3 477 510 495 510 495 593)
	)
	(connect D17:0 D14:0
	 (points 2 710 815 710 825)
	)
	(connect D16:0 D15:0
	 (points 2 430 99 430 115)
	)
	(connect D10:3 D17:0
	 (points 3 694 740 710 740 710 785)
	)
   )
   (stackingOrder 0 1 2 3 4 5 9 10 11 12
	 13 6 15 17 14 16 8 7)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
