#! /usr/lib/veetest/veetest -d /usr/lib/veetest -r
(revision "A.00.00")
(date "Tue 02/Apr/1991")
(component 0 "Context"
 (interface
 )
 (implementation
  (trigMode deg)
  (locked no)
  (component 0 "Context"
   (name "From dB")
   (interface
    (sequence in)
    (sequence out)
    (input 1
     (type data)
     (name "Mag")
     (optional yes)
    )
    (output 1
     (type data)
     (name "X")
     (lock constraints)
     (optional yes)
    )
   )
   (implementation
    (trigMode deg)
    (locked yes)
    (component 0 "Formula"
     (name "From dB")
     (interface
      (sequence in)
      (sequence out)
      (input 1
       (type data)
       (name "Mag")
       (optional yes)
      )
      (input 2
       (type data)
       (name "Ref")
       (optional yes)
      )
      (input 3
       (type data)
       (name "Mult")
       (optional yes)
      )
      (input 4
       (type data)
       (name "type")
       (optional yes)
      )
      (output 1
       (type data)
       (name "Result")
       (lock name constraints)
      )
     )
     (implementation
      (component isLocked no)
      (component expr 1 "FromdB(Mag,Ref[ordinal(type)],Mult[ordinal(type)])")
     )
    )
    (component 1 "EnumConstant"
     (name "dB type")
     (interface
      (sequence in)
      (sequence out)
      (output 1
       (type data)
       (lock name constraints)
      )
     )
     (implementation
      (component value Enum
       (name "dB type")
       (values
        ( "dBV" 0)
        ( "dBmV" 1)
        ( "dBuV" 2)
        ( "dBW" 3)
        ( "dBm" 4)
        ( "dBmW" 5)
        ( "dBuW" 6)
        ( "dBpW" 7)
        ( "LogMag" 8)
       )
       (datum "dBm")
      )
      (component autoTrigger off)
      (component initializeAtPrerun off)
      (component initializeAtActivate off)
      (component initValue Enum
       (shared yes)
       (datum "dBV")
      )
     )
    )
    (component 2 "Constant"
     (name "Ref")
     (interface
      (sequence in)
      (sequence out)
      (output 1
       (type data)
       (lock name constraints)
      )
     )
     (implementation
      (component value Real
       (name "Ref")
       (numDims 1)
       (size 9)
       (data
        [ 1 0.001 1E-06 1 0.001 0.001 1E-06 1E-12 1 ]
       )
      )
      (component autoTrigger off)
      (component initializeAtPrerun off)
      (component initializeAtActivate off)
      (component initValue Real
       (datum 0)
      )
     )
    )
    (component 3 "Constant"
     (name "Mult")
     (interface
      (sequence in)
      (sequence out)
      (output 1
       (type data)
       (lock name constraints)
      )
     )
     (implementation
      (component value Real
       (name "Mult")
       (numDims 1)
       (size 9)
       (data
        [ 20 20 20 10 10 10 10 10 1 ]
       )
      )
      (component autoTrigger off)
      (component initializeAtPrerun off)
      (component initializeAtActivate off)
      (component initValue Real
       (datum 0)
      )
     )
    )
    (configuration
     (connect I1:1 D0:1)
     (connect D2:1 D0:2)
     (connect D3:1 D0:3)
     (connect D1:1 D0:4)
     (connect D0:1 O1:1)
    )
   )
   (views
    (description 7 5
     Converts from a dB unit to a linear unit.  Select
     the dB unit by clicking on the dB type field.
     The unit of the output is either Volt or Watt
     depending on the dB type selected.
     
     LogMag references to 1, like dBW and dBV, but
     multipies the result of by 1 rather than 10 or 20.
    )
    (icon
     (origin 131 148)
     (extent 78 25)
    )
    (panel
     (origin 65 115)
     (extent 200 70)
     (widget 1 detail
      (title on)
      (origin 70 154)
      (extent 163 27)
      (format list)
     )
    )
    (terminals on)
    (active panel)
    (active panel)
   )
  )
  (configuration
  )
 )
 (views
  (detail
   (origin 0 67)
   (extent 1000 656)
   (configuration
   )
  )
  (active detail)
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
  (waveformSettings
   (timeSpan 0.02)
   (numPoints 256)
  )
 )
)
