(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:22:41 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "Using State and Component Drivers")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 9)
  (component 0 FORLOGRANGE
   (interface
	(output 1
	 (lock name constraints)
	)
   )
   (implementation
	(from 10000)
	(thru 1000000)
	(perDecade 5)
   )
  )
  (component 1 START25
  )
  (component 2 HPIDSTATE
   (name "dvm(NOT LIVE)")
   (implementation
	(component filename "hp3478a.cid")
	(component driver "dvm")
	(component state
	 (idComp
	  (name "FUNCTION")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "ACV")
	 )
	 (idComp
	  (name "ARANGE")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "OFF")
	 )
	 (idComp
	  (name "RANGE")
	  (typeStr "Real")
	  (state "Valid")
	  (value 0.3)
	 )
	 (idComp
	  (name "NDIG")
	  (typeStr "Real")
	  (state "Valid")
	  (value 5.5)
	 )
	 (idComp
	  (name "TRIGGER")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "HOLD")
	 )
	 (idComp
	  (name "AZERO")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "OFF")
	 )
	 (idComp
	  (name "DISPLAY_STRING")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "NORMAL")
	 )
	 (idComp
	  (name "DISPLAYED_STRING")
	  (typeStr "Text")
	  (state "Valid")
	  (value "            ")
	 )
	 (idComp
	  (name "MASK")
	  (typeStr "Int16")
	  (state "Valid")
	  (value 0)
	 )
	 (idComp
	  (name "ERROR")
	  (typeStr "Int16")
	  (state "Valid")
	  (value 0)
	 )
	)
   )
  )
  (component 3 HPIDINCR
   (name "fgen(NOT LIVE)")
   (interface
	(input 1
	 (name "FREQUENCY")
	 (tag "FREQUENCY")
	 (requires
	  (datatype Real)
	  (shape "Scalar")
	 )
	 (lock constraints)
	 (optional yes)
	)
	(output 1
	 (name "FREQUENCY")
	 (tag "FREQUENCY")
	 (lock constraints)
	 (optional yes)
	)
   )
   (implementation
	(component filename "hp3325b.cid")
	(component driver "fgen")
   )
  )
  (component 4 HPIDINCR
   (name "dvm(NOT LIVE)")
   (interface
	(output 1
	 (name "READING")
	 (tag "READING")
	 (lock constraints)
	 (optional yes)
	)
   )
   (implementation
	(component filename "hp3478a.cid")
	(component driver "dvm")
   )
  )
  (component 5 HPIDSTATE
   (name "fgen(NOT LIVE)")
   (implementation
	(component filename "hp3325b.cid")
	(component driver "fgen")
	(component state
	 (idComp
	  (name "FUNCTION")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "SINE")
	 )
	 (idComp
	  (name "FREQ_UPPER_LIM")
	  (typeStr "Real")
	  (state "Valid")
	  (value 60999999.999)
	 )
	 (idComp
	  (name "FREQUENCY")
	  (typeStr "Real")
	  (state "Valid")
	  (value 1000)
	 )
	 (idComp
	  (name "AMPLITUDE_LOWER_LIM")
	  (typeStr "Real")
	  (state "Valid")
	  (value 0.001)
	 )
	 (idComp
	  (name "AMPLITUDE_UPPER_LIM")
	  (typeStr "Real")
	  (state "Valid")
	  (value 10)
	 )
	 (idComp
	  (name "AMPLITUDE")
	  (typeStr "Real")
	  (state "Valid")
	  (value 0.05)
	 )
	 (idComp
	  (name "AUNITS")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "VPP")
	 )
	 (idComp
	  (name "OFFSET_LOWER_LIM")
	  (typeStr "Real")
	  (state "Valid")
	  (value -4.502)
	 )
	 (idComp
	  (name "OFFSET_UPPER_LIM")
	  (typeStr "Real")
	  (state "Valid")
	  (value 4.502)
	 )
	 (idComp
	  (name "OFFSET")
	  (typeStr "Real")
	  (state "Valid")
	  (value 0)
	 )
	 (idComp
	  (name "PHASE")
	  (typeStr "Real")
	  (state "Valid")
	  (value 0)
	 )
	 (idComp
	  (name "START_FREQ")
	  (typeStr "Real")
	  (state "Valid")
	  (value 1000000)
	 )
	 (idComp
	  (name "STOP_FREQ")
	  (typeStr "Real")
	  (state "Valid")
	  (value 10000000)
	 )
	 (idComp
	  (name "MKR_FREQ")
	  (typeStr "Real")
	  (state "Valid")
	  (value 5000000)
	 )
	 (idComp
	  (name "SWEEP_TIME")
	  (typeStr "Real")
	  (state "Valid")
	  (value 1)
	 )
	 (idComp
	  (name "SWEEP_MODE")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "LIN")
	 )
	 (idComp
	  (name "TERMINALS")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "FRONT")
	 )
	 (idComp
	  (name "CALIBRATE")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "ENABLE")
	 )
	 (idComp
	  (name "MOD_FUNCTION")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "OFF")
	 )
	 (idComp
	  (name "MOD_FREQ_UPPER_LIM")
	  (typeStr "Real")
	  (state "Valid")
	  (value 10000)
	 )
	 (idComp
	  (name "MOD_FREQUENCY")
	  (typeStr "Real")
	  (state "Valid")
	  (value 1000)
	 )
	 (idComp
	  (name "MOD_AMP_UPPER_LIM")
	  (typeStr "Real")
	  (state "Valid")
	  (value 12)
	 )
	 (idComp
	  (name "MOD_AMPLITUDE")
	  (typeStr "Real")
	  (state "Valid")
	  (value 0.1)
	 )
	 (idComp
	  (name "MOD_AMPLITUDE_UNITS")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "VPP")
	 )
	 (idComp
	  (name "AM")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "OFF")
	 )
	 (idComp
	  (name "PM")
	  (typeStr "Enum")
	  (state "Valid")
	  (value "OFF")
	 )
	 (idComp
	  (name "INSTR_STATUS_MASK")
	  (typeStr "Int16")
	  (state "Valid")
	  (value 0)
	 )
	)
   )
  )
  (component 6 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 7 NOTE
   (name "Info About")
   (implementation
	(text2 47
	  "Overview:"
	  "This program illustrates how to properly combine"
	  "\"State Driver\" objects and \"Component Driver\" "
	  "objects in an instrument control application."
	  ""
	  "Details:"
	  "To actually run this program, you must have the"
	  "required instruments connected to your computer"
	  "and you must properly configure VEE to"
	  "use them via the \"I/O-->Configure I/O\" menu"
	  "selection. "
	  ""
	  "This program measures the frequency response"
	  "of a filter using the HP 3325B as a signal"
	  "source and an HP 3478A voltmeter as an AC"
	  "detector.  If you have these instruments,"
	  "you may connect them directly to one another"
	  "to measure the frequency response of the HP 3478A. "
	  ""
	  "The two instrument icons immediately following"
	  "\"Start\" are \"State Drivers\".  These set up the "
	  "basic measurement states of the instruments"
	  "by setting all the relevant instrument "
	  "functions at once.  The open view of these"
	  "objects each contains a complete graphical"
	  "control panel for the instrument."
	  ""
	  "The two open-view \"Component Driver\" instrument"
	  "objects immediately following \"For Log Range\""
	  "are used to set or get one or two component values"
	  "at a time.  This allows them to execute more"
	  "quickly than \"State Drivers\" which may set many"
	  "components at once.  The exact difference in"
	  "performance will vary depending upon the particular"
	  "instruments involved.  "
	  ""
	  "In this case, the \"FREQUENCY\" component of the"
	  "HP 3325B is being set (via the input pin) and read"
	  "(via the output pin).  It is being read from the"
	  "instrument in case the instrument is rounding"
	  "the requested value; this is not absolutely"
	  "necessary, but some instruments only allow"
	  "discrete settings and will round-off a setting."
	  ""
	  "Similarly, the \"READING\" component of the "
	  "HP 3478A voltmeter is repeatedly queried"
	  "to obtain the response."
	)
   )
  )
  (component 8 XYPLOT
   (name "Frequency Response")
   (interface
	(input 1
	 (name "Freq")
	 (lock constraints)
	)
	(input 2
	 (name "Filter 1")
	 (lock constraints)
	)
	(input 3
	 (type control)
	 (name "Auto Scale")
	 (lock name constraints)
	 (optional yes)
	)
   )
   (implementation
	(tracePin 2)
	(graphMode rectangular)
   )
  )
  (configuration
   (connect D2:0 D0:0)
   (connect D5:0 D2:0)
   (connect D0:1 D3:1)
   (connect D3:0 D4:0)
   (connect D1:0 D5:0)
   (connect D3:1 D8:1)
   (connect D4:1 D8:2)
   (connect D0:0 D8:3)
  )
 )
 (viewFor -1
  (active detail)
  (detail
   (geometry 0 53 900 447)
   (configuration
	(viewFor 0
	 (active icon)
	 (icon
	  (geometry 27 448 127 64)
	  (iconImage "loop.icn")
	 )
	 (detail
	  (geometry -10 437 200 86)
	 )
	)
	(viewFor 1
	 (active detail)
	 (icon
	  (geometry -21 -7 42 15)
	 )
	 (detail
	  (geometry 57 232 67 37)
	 )
	 (title off)
	)
	(viewFor 2
	 (active icon)
	 (icon
	  (geometry 35 368 110 64)
	  (iconImage "inst.icn")
	 )
	 (detail
	  (geometry 33 194 214 213)
	  (visiblePanels 3 "DISPL" "HP3478A" "MENUA")
	 )
	 (terminals on)
	)
	(viewFor 3
	 (active icon)
	 (icon
	  (geometry 225 448 110 64)
	  (iconImage "io.icn")
	 )
	 (detail
	  (geometry 255 453 90 54)
	 )
	 (terminals on)
	)
	(viewFor 4
	 (active icon)
	 (icon
	  (geometry 225 548 110 64)
	  (iconImage "io.icn")
	 )
	 (detail
	  (geometry 225 553 90 34)
	 )
	 (terminals on)
	)
	(viewFor 5
	 (active icon)
	 (icon
	  (geometry 35 288 110 64)
	  (iconImage "inst.icn")
	 )
	 (detail
	  (geometry 343 334 214 213)
	  (visiblePanels 3 "MAIN_PANEL" "ENTRY_PANEL" "TOP_PANEL")
	 )
	 (terminals on)
	)
	(viewFor 6
	 (active icon)
	 (icon
	  (geometry 31 76 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 12 109 397 82)
	  (editing disabled)
	 )
	)
	(viewFor 7
	 (active detail)
	 (icon
	  (geometry 205 208 110 25)
	 )
	 (detail
	  (geometry 439 103 543 255)
	  (editing disabled)
	 )
	)
	(viewFor 8
	 (active detail)
	 (icon
	  (geometry 864 578 172 64)
	  (iconImage "display.icn")
	 )
	 (detail
	  (geometry 507 432 336 296)
	  (displayMode scrollGraph)
	  (graphType cartesian)
	  (gridType grid)
	  (scale 0
	   (name "Voltage ")
	   (domainName "Frequency")
	   (pen 9)
	   (show 1)
	   (range 1E-08 1E-07 3 log)
	  )
	  (domain 10000 1000000 3 log)
	  (trace 0 onScale 0
	   (name "Filter 1")
	   (pen 4)
	   (lineType 1)
	   (pointType 0)
	  )
	 )
	 (terminals on)
	)
	(connect D2:0 D0:0
	 (points 2 90 434 90 445)
	)
	(connect D5:0 D2:0
	 (points 2 90 354 90 365)
	)
	(connect D0:1 D3:1
	 (points 2 156 480 222 480)
	)
	(connect D3:0 D4:0
	 (points 2 280 514 280 545)
	)
	(connect D1:0 D5:0
	 (points 2 90 271 90 285)
	)
	(connect D3:1 D8:1
	 (points 2 337 480 424 480)
	)
	(connect D4:1 D8:2
	 (points 2 337 580 424 580)
	)
	(connect D0:0 D8:3
	 (points 3 90 514 90 680 424 680)
	)
   )
   (stackingOrder 0 1 2 5 6 7 3 4 8)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
