AnsweredAssumed Answered

VRF-Put_Names_into_XvsYPlot

Question asked by VRFuser on Jun 3, 1996
Hi Heiko
        I've attached a vee file that sets up X vs Y scale names and ranges.

Just cut below the line and put it into a file called scaldemo.vee and you
should be able to run it.

Hope it helps.

Regards

Gerry Murray

------- Cut Here -----------------------
#! C:VEE3/vee -r
(saveFormat "1.2")
(date "Fri 24/May/1996")
(SaveCF "no")
(filterNAN 0)
(component 0 "ROOTCONTEXT"
(name "Untitled")
(interface
)
(implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 15)
  (component 0 "TORECORD"
   (description 1 4
    Build the record of scales data.
   )
   (interface
    (sequence in)
    (sequence out)
    (input 1
     (name "Scale")
     (requires
      (datatype Text)
     )
     (optional yes)
    )
    (input 2
     (name "Name")
     (optional yes)
    )
    (input 3
     (name "Min")
     (requires
      (datatype Real)
     )
     (optional yes)
    )
    (input 4
     (name "Max")
     (requires
      (datatype Real)
     )
     (optional yes)
    )
    (output 1
     (name "Record")
     (tag "Record")
     (lock constraints)
    )
   )
   (implementation
    (component outputType scalar)
   )
   (views
    (icon
     (origin 326 364)
     (extent 89 52)
     (iconImage "build.icn")
    )
    (detail
     (origin 119 249)
     (extent 93 82)
    )
    (terminals on)
    (active detail)
   )
  )
  (component 1 "XYPLOT"
   (name "X vs Y Plot")
   (interface
    (sequence in)
    (sequence out)
    (input 1
     (name "XData")
     (lock constraints)
    )
    (input 2
     (name "YData1")
     (lock constraints)
    )
    (input 3
     (type control)
     (name "Scales")
     (tag "ScalesRecord")
     (requires
      (datatype Record)
     )
     (lock name constraints)
     (optional yes)
    )
   )
   (implementation
    (component clearAtPrerun 1)
    (component clearAtActivate 1)
    (component tracePin 2)
    (component graphMode rectangular)
   )
   (views
    (icon
     (iconImage "display.icn")
    )
    (detail
     (origin 477 64)
     (extent 296 272)
     (displayMode scrollGraph)
     (graphType cartesian)
     (gridType grid)
     (scale 0
      (name "Voltage")
      (domainName "Time")
      (pen 9)
      (show 1)
      (range 0 0.6 4 linear)
     )
     (domain -10 8 4 linear)
     (trace 0 onScale 0
      (name "YData1")
      (pen 4)
      (lineType 1)
      (pointType 0)
     )
    )
    (terminals on)
    (active detail)
   )
  )
  (component 2 "LITERALCONSTANT"
   (name "Text")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Text")
     (lock name constraints)
    )
   )
   (implementation
    (component value Text
     (data  "X"     )
    )
    (component initValue Text
     (data  ""     )
    )
   )
   (views
    (icon
     (origin -5 242)
     (extent 31 16)
    )
    (detail
     (origin 27 175)
     (extent 67 30)
    )
    (active icon)
   )
  )
  (component 3 "LITERALCONSTANT"
   (name "Text")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Text")
     (lock name constraints)
    )
   )
   (implementation
    (component value Text
     (data  "Time"     )
    )
    (component initValue Text
     (data  ""     )
    )
   )
   (views
    (icon
     (origin -5 272)
     (extent 31 16)
    )
    (detail
     (origin 15 254)
     (extent 91 32)
    )
    (active icon)
   )
  )
  (component 4 "CONSTANT"
   (name "Real")
   (subType "Real")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Real")
     (lock name constraints)
    )
   )
   (implementation
    (component value Real
     (data  0     )
    )
    (component initValue Real
     (data  0     )
    )
   )
   (views
    (icon
    )
    (detail
     (origin 216 85)
     (extent 69 30)
     (showFormat real)
    )
    (active detail)
   )
  )
  (component 5 "CONSTANT"
   (name "Real")
   (subType "Real")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Real")
     (lock name constraints)
    )
   )
   (implementation
    (component value Real
     (data  0     )
    )
    (component initValue Real
     (data  0     )
    )
   )
   (views
    (icon
    )
    (detail
     (origin 226 155)
     (extent 69 30)
     (showFormat real)
    )
    (active detail)
   )
  )
  (component 6 "CONSTANT"
   (name "Real")
   (subType "Real")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Real")
     (lock name constraints)
    )
   )
   (implementation
    (component value Real
     (data  -10     )
    )
    (component initValue Real
     (data  0     )
    )
   )
   (views
    (icon
     (origin -16 312)
     (extent 33 16)
    )
    (detail
     (origin 166 275)
     (extent 69 30)
     (showFormat real)
    )
    (active icon)
   )
  )
  (component 7 "CONSTANT"
   (name "Real")
   (subType "Real")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Real")
     (lock name constraints)
    )
   )
   (implementation
    (component value Real
     (data  10     )
    )
    (component initValue Real
     (data  0     )
    )
   )
   (views
    (icon
     (origin -6 352)
     (extent 33 16)
    )
    (detail
     (origin 176 315)
     (extent 69 30)
     (showFormat real)
    )
    (active icon)
   )
  )
  (component 8 "TORECORD"
   (description 1 4
    Build the record of scales data.
   )
   (interface
    (sequence in)
    (sequence out)
    (input 1
     (name "Scale")
     (requires
      (datatype Text)
     )
     (optional yes)
    )
    (input 2
     (name "Name")
     (optional yes)
    )
    (input 3
     (name "Min")
     (requires
      (datatype Real)
     )
     (optional yes)
    )
    (input 4
     (name "Max")
     (requires
      (datatype Real)
     )
     (optional yes)
    )
    (output 1
     (name "Record")
     (tag "Record")
     (lock constraints)
    )
   )
   (implementation
    (component outputType scalar)
   )
   (views
    (icon
     (origin 326 364)
     (extent 89 52)
     (iconImage "build.icn")
    )
    (detail
     (origin 89 419)
     (extent 93 82)
    )
    (terminals on)
    (active detail)
   )
  )
  (component 9 "CONSTANT"
   (name "Real")
   (subType "Real")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Real")
     (lock name constraints)
    )
   )
   (implementation
    (component value Real
     (data  0.6     )
    )
    (component initValue Real
     (data  0     )
    )
   )
   (views
    (icon
     (origin -36 522)
     (extent 33 16)
    )
    (detail
     (origin 136 485)
     (extent 69 30)
     (showFormat real)
    )
    (active icon)
   )
  )
  (component 10 "CONSTANT"
   (name "Real")
   (subType "Real")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Real")
     (lock name constraints)
    )
   )
   (implementation
    (component value Real
     (data  0     )
    )
    (component initValue Real
     (data  0     )
    )
   )
   (views
    (icon
     (origin -46 482)
     (extent 33 16)
    )
    (detail
     (origin 116 445)
     (extent 69 30)
     (showFormat real)
    )
    (active icon)
   )
  )
  (component 11 "LITERALCONSTANT"
   (name "Text")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Text")
     (lock name constraints)
    )
   )
   (implementation
    (component value Text
     (data  "Voltage"     )
    )
    (component initValue Text
     (data  ""     )
    )
   )
   (views
    (icon
     (origin -35 442)
     (extent 31 16)
    )
    (detail
     (origin 125 404)
     (extent 91 32)
    )
    (active icon)
   )
  )
  (component 12 "LITERALCONSTANT"
   (name "Text")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Text")
     (lock name constraints)
    )
   )
   (implementation
    (component value Text
     (data  "Y"     )
    )
    (component initValue Text
     (data  ""     )
    )
   )
   (views
    (icon
     (origin -35 412)
     (extent 31 16)
    )
    (detail
     (origin 137 375)
     (extent 67 30)
    )
    (active icon)
   )
  )
  (component 13 "JUNCTION"
   (name "JCT")
   (interface
    (input 1
     (name "A")
     (lock name constraints)
    )
    (input 2
     (name "B")
     (lock name constraints)
    )
    (output 1
     (name "Data")
     (lock name constraints)
    )
   )
   (implementation
   )
   (views
    (icon
     (origin 306 288)
     (extent 29 25)
    )
    (detail
    )
    (terminals on)
    (active icon)
   )
  )
  (component 14 "START25"
   (interface
    (sequence out)
   )
   (implementation
   )
   (views
    (icon
    )
    (detail
     (origin -63 99)
     (extent 47 22)
    )
    (title off)
    (active detail)
   )
  )
  (configuration
   (connect D14:0 D0:0)
   (connect D2:1 D0:1)
   (connect D3:1 D0:2)
   (connect D6:1 D0:3)
   (connect D7:1 D0:4)
   (connect D4:1 D1:1)
   (connect D5:1 D1:2)
   (connect D13:1 D1:3)
   (connect D8:0 D4:0)
   (connect D4:0 D5:0)
   (connect D0:0 D8:0)
   (connect D12:1 D8:1)
   (connect D11:1 D8:2)
   (connect D10:1 D8:3)
   (connect D9:1 D8:4)
   (connect D0:1 D13:1)
   (connect D8:1 D13:2)
  )
)
(views
  (detail
   (origin 0 24)
   (extent 800 538)
   (configuration
    (connect D14:0 D0:0
     (Point -40 123)
     (Point -40 140)
     (Point 170 140)
     (Point 170 228)
    )
    (connect D2:1 D0:1
     (Point 28 250)
     (Point 50 250)
     (Point 50 260)
     (Point 66 260)
    )
    (connect D3:1 D0:2
     (Point 28 280)
     (Point 66 280)
    )
    (connect D6:1 D0:3
     (Point 19 320)
     (Point 50 320)
     (Point 50 300)
     (Point 66 300)
    )
    (connect D7:1 D0:4
     (Point 29 360)
     (Point 50 360)
     (Point 50 330)
     (Point 60 330)
     (Point 60 320)
     (Point 66 320)
    )
    (connect D4:1 D1:1
     (Point 287 100)
     (Point 310 100)
     (Point 310 110)
     (Point 414 110)
    )
    (connect D5:1 D1:2
     (Point 297 170)
     (Point 320 170)
     (Point 320 200)
     (Point 414 200)
    )
    (connect D13:1 D1:3
     (Point 337 300)
     (Point 360 300)
     (Point 360 290)
     (Point 414 290)
    )
    (connect D8:0 D4:0
     (Point 140 503)
     (Point 140 520)
     (Point 370 520)
     (Point 370 210)
     (Point 190 210)
     (Point 190 40)
     (Point 250 40)
     (Point 250 64)
    )
    (connect D4:0 D5:0
     (Point 250 117)
     (Point 260 134)
    )
    (connect D0:0 D8:0
     (Point 170 333)
     (Point 170 350)
     (Point 140 350)
     (Point 140 398)
    )
    (connect D12:1 D8:1
     (Point -2 420)
     (Point 20 420)
     (Point 20 430)
     (Point 36 430)
    )
    (connect D11:1 D8:2
     (Point -2 450)
     (Point 36 450)
    )
    (connect D10:1 D8:3
     (Point -11 490)
     (Point 10 490)
     (Point 10 480)
     (Point 20 480)
     (Point 20 470)
     (Point 36 470)
    )
    (connect D9:1 D8:4
     (Point -1 530)
     (Point 20 530)
     (Point 20 490)
     (Point 36 490)
    )
    (connect D0:1 D13:1
     (Point 274 290)
     (Point 303 290)
    )
    (connect D8:1 D13:2
     (Point 244 460)
     (Point 290 460)
     (Point 290 310)
     (Point 303 310)
    )
   )
   (stackingOrder 1 4 5 3 2 0 13 11 9 8
     12 10 14 6 7)
  )
  (active detail)
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
)
)


Outcomes