(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:23:22 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "Importing a Waveform Text File Example 2")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 14)
  (component 0 REPEATUNTILBREAK
   (name "Until Break #1")
   (interface
	(output 1
	 (name "Continuous")
	 (lock name constraints)
	)
   )
  )
  (component 1 START25
   (name "Start")
  )
  (component 2 FROMFILE
   (name "From File #2")
   (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/manual31.dat"
	 (readTerm "\n")
	 (fs " ")
	 (eol "\n")
	 (multiField fullSyntax)
	 (arrayFormat block)
	)
   )
  )
  (component 3 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 4 REPEATUNTILBREAK
   (name "Until Break #2")
   (interface
	(output 1
	 (name "Continuous")
	 (lock name constraints)
	)
   )
  )
  (component 5 SCROLLINGTEXTDISPLAY
   (name "Logging AlphaNumeric")
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (component 6 FROMFILE
   (name "From File #1")
   (interface
	(output 1
	 (name "X")
	 (requires
	  (datatype Text)
	 )
	 (lock constraints)
	 (optional yes)
	)
   )
   (implementation
	(transactions 1
	  "READ TEXT x TOKEN"
	)
	(attr iopath file read "~installDir/examples/manual/manual31.dat"
	 (readTerm "\n")
	 (fs " ")
	 (eol "\n")
	 (multiField fullSyntax)
	 (arrayFormat block)
	)
   )
  )
  (component 7 IFTHENELSE
   (name "If A == B")
   (interface
	(input 1
	 (name "A")
	 (optional yes)
	)
	(input 2
	 (name "B")
	 (optional yes)
	)
	(output 1
	 (name "Then")
	 (lock name constraints)
	)
	(output 2
	 (name "Else")
	 (lock name constraints)
	)
   )
   (implementation
	(expr "A==B")
   )
  )
  (component 8 BREAK
   (name "Break")
  )
  (component 9 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 NOTE
	   (name "Info About")
	   (implementation
		(text2 32
		  "Overview:"
		  "  This program illustrates how to read a data file created by another software "
		  "  package. In this case, the data file contains a sampled waveform with a "
		  "  variable-length file header.  The position of the waveform data points is "
		  "  marked by a special text marker."
		  ""
		  "Details:"
		  "  The data file contains an unknown amount of information followed by a token"
		  "  that marks the beginning of the data section.  The data section consists of"
		  "  an unknown number of XY pairs separated by whitespace."
		  ""
		  "  Here are the contents of a typical data file:"
		  ""
		  "<MARKER1>Some Text"
		  "<MARKER2>1 2 3 4"
		  "<DATA>"
		  "1\t1.1"
		  "2\t2.2"
		  "3\t3.3"
		  ".\t."
		  ".\t."
		  ".\t."
		  ""
		  "This is how the program works:"
		  ""
		  "  The subthread attached to \"Until Break #1\"  strips away tokens one at a "
		  "  time as it searches for <DATA>.  The transaction in \"From File #1\" uses "
		  "  the TOKEN format to automatically parse  the input into tokens.  By default,"
		  "  a token is any string of non-whitespace characters delimited by whitespace."
		  ""
		  "  The subthread attached to \"Until Break #2\" reads the numeric data that "
		  "  follows until it reaches the end of the file."
		)
	   )
	  )
	  (component 1 CONFIRM25
	   (name "DONE")
	   (interface
		(output 1
		 (name "Go")
		 (lock name constraints)
		)
	   )
	   (implementation
		(component enterButton yes)
		(component escapeButton yes)
	   )
	  )
	  (configuration
	  )
	  (ShowOnExecPanel
	   (geometry 4 35 841 537)
	   (panel
		(geometry 52 126 837 509)
		(widget 0 detail
		 (title off)
		 (borderStyle flat)
		 (geometry 61 132 819 452)
		 (editing disabled)
		)
		(widget 1 detail
		 (title off)
		 (borderStyle flat)
		 (geometry 437 591 66 37)
		)
	   )
	  )
	 )
	)
	(configuration
	 (connect D1:1 D0:1)
	 (connect D0:0 D1:1)
	 (connect D0:1 D2:0)
	)
   )
  )
  (component 10 LITERALCONSTANT
   (name "Text")
   (interface
	(output 1
	 (lock name constraints)
	)
   )
   (implementation
	(value Text
	 (data  "<DATA>")
	)
	(initValue Text
	 (data  "")
	)
   )
  )
  (component 11 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 12 DO
   (interface
	(output 1
	 (name "Do")
	 (lock name constraints)
	)
   )
  )
  (component 13 BREAK
   (name "Break")
  )
  (configuration
   (connect D1:0 D0:0)
   (connect D4:1 D2:0)
   (connect D0:0 D4:0)
   (connect D6:1 D5:1)
   (connect D0:1 D6:0)
   (connect D10:1 D7:1)
   (connect D6:1 D7:2)
   (connect D7:1 D8:0)
   (connect D2:1 D11:1)
   (connect D2:2 D11:2)
   (connect D12:1 D11:3)
   (connect D2:3 D12:0)
   (connect D12:0 D13:0)
  )
 )
 (viewFor -1
  (active detail)
  (detail
   (geometry 0 53 900 447)
   (configuration
	(viewFor 0
	 (active icon)
	 (icon
	  (geometry 22 258 136 64)
	  (iconImage "loop.icn")
	 )
	 (detail
	  (geometry 45 190 70 40)
	 )
	 (terminals on)
	)
	(viewFor 1
	 (active detail)
	 (icon
	  (geometry -21 -7 42 15)
	 )
	 (detail
	  (geometry 56 191 69 39)
	 )
	 (title off)
	)
	(viewFor 2
	 (active detail)
	 (icon
	  (geometry 245 228 118 25)
	 )
	 (detail
	  (geometry 242 503 327 114)
	 )
	 (terminals on)
	)
	(viewFor 3
	 (active icon)
	 (icon
	  (geometry 361 66 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 422 119 397 82)
	  (editing disabled)
	 )
	)
	(viewFor 4
	 (active icon)
	 (icon
	  (geometry 22 428 136 64)
	  (iconImage "loop.icn")
	 )
	 (detail
	  (geometry 45 370 70 40)
	 )
	 (terminals on)
	)
	(viewFor 5
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 698 304 264 133)
	  (bufferSize 256)
	 )
	)
	(viewFor 6
	 (active detail)
	 (icon
	  (geometry 85 388 118 25)
	 )
	 (detail
	  (geometry 246 340 328 100)
	 )
	 (terminals on)
	)
	(viewFor 7
	 (active icon)
	 (icon
	  (geometry 655 208 110 25)
	 )
	 (detail
	  (geometry 676 448 78 104)
	 )
	 (terminals on)
	)
	(viewFor 8
	 (active icon)
	 (icon
	  (geometry 811 228 78 25)
	 )
	 (detail
	 )
	 (terminals on)
	)
	(viewFor 9
	 (active panel)
	 (icon
	  (geometry 735 628 110 25)
	 )
	 (panel
	  (geometry 21 92 319 77)
	  (widget 1 detail
	   (title off)
	   (borderStyle flat)
	   (geometry 123 105 114 39)
	   (scaled on)
	   (format button)
	  )
	 )
	 (detail
	  (geometry 4 75 912 591)
	  (configuration
	   (viewFor 0
		(active icon)
		(icon
		 (geometry 347 308 46 25)
		)
		(detail
		 (geometry 209 308 73 64)
		)
		(terminals on)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry -40 -7 81 15)
		)
		(detail
		 (geometry 183 301 114 39)
		 (scaled on)
		 (format button)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 407 368 127 25)
		)
		(detail
		 (geometry 295 430 351 200)
		 (configuration
		  (viewFor 0
		   (active icon)
		   (icon
			(geometry 375 448 110 25)
		   )
		   (detail
			(geometry 124 479 452 282)
			(editing enabled)
		   )
		  )
		  (viewFor 1
		   (active detail)
		   (icon
			(geometry -22 -7 45 15)
		   )
		   (detail
			(geometry 411 512 58 37)
		   )
		   (title off)
		  )
		 )
		 (stackingOrder 0 1)
		)
	   )
	   (connect D1:1 D0:1
		(points 2 299 320 344 320)
	   )
	   (connect D0:0 D1:1
		(points 5 370 335 370 360 160 360 160 320 180 320)
	   )
	   (connect D0:1 D2:0
		(points 3 395 310 470 310 470 365)
	   )
	  )
	  (stackingOrder 0 1 2)
	 )
	)
	(viewFor 10
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 480 194 120 32)
	 )
	)
	(viewFor 11
	 (active detail)
	 (icon
	  (iconImage "display.icn")
	 )
	 (detail
	  (geometry 679 486 323 208)
	  (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 14 3 linear)
	  (trace 0 onScale 0
	   (name "YData1")
	   (pen 4)
	   (lineType 1)
	   (pointType 0)
	  )
	 )
	)
	(viewFor 12
	 (active icon)
	 (icon
	  (geometry 587 648 46 25)
	 )
	 (detail
	 )
	 (terminals on)
	)
	(viewFor 13
	 (active icon)
	 (icon
	  (geometry 571 698 78 25)
	 )
	 (detail
	 )
	 (terminals on)
	)
	(connect D1:0 D0:0
	 (points 2 90 232 90 255)
	)
	(connect D4:1 D2:0
	 (points 3 160 460 410 460 410 482)
	)
	(connect D0:0 D4:0
	 (points 2 90 324 90 425)
	)
	(connect D6:1 D5:1
	 (points 4 606 390 630 390 630 370 695 370)
	)
	(connect D0:1 D6:0
	 (points 3 160 290 410 290 410 319)
	)
	(connect D10:1 D7:1
	 (points 2 602 210 652 210)
	)
	(connect D6:1 D7:2
	 (points 4 606 390 630 390 630 230 652 230)
	)
	(connect D7:1 D8:0
	 (points 3 767 210 850 210 850 225)
	)
	(connect D2:1 D11:1
	 (points 2 611 520 676 520)
	)
	(connect D2:2 D11:2
	 (points 4 611 560 630 560 630 590 676 590)
	)
	(connect D12:1 D11:3
	 (points 2 635 660 676 660)
	)
	(connect D2:3 D12:0
	 (points 5 611 600 630 600 630 630 610 630 610 645)
	)
	(connect D12:0 D13:0
	 (points 2 610 675 610 695)
	)
   )
   (stackingOrder 1 5 8 3 9 0 6 2 4 11
	 12 13 7 10)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
