AnsweredAssumed Answered

VRf - Until break thing, strange !

Question asked by VRFuser on Jul 26, 1996
Henrik writes about propagation issue in his model:

>press the OK buttom to set the scales, nothing happens !

>If I set a delay after the virtual source then it works.

>By for now.

>   Henrik Grevelund
> mkpkor@inet.uni-c.dk


Just glancing at this I wouldn't expect the OK button to do anything
since it is in a seperate subthread from the "until break" which
is spitting out continuous waveforms. The OK button shouldn't operate
until this "until break" finishes

Try making this a single thread like the below model, so that the
OK is pinged. I think that this will do what you want. Please excuse
me though if I have misunderstood the issue!

regards

Stan "VEE user - not a developer" Bischof
stanb@sr.hp.com

(saveFormat "2.0")
(date "Fri 26/Jul/1996 08:39:23 PDT")
(veerev "3.21")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
(name "Untitled")
(implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 21)
  (component 0 TORECORD
   (interface
     (input 1
      (name "Scale")
      (optional yes)
     )
     (input 2
      (name "Name")
      (optional yes)
     )
     (input 3
      (name "Min")
      (optional yes)
     )
     (input 4
      (name "Max")
      (optional yes)
     )
     (output 1
      (name "Record")
      (tag "Record")
      (lock constraints)
     )
   )
   (implementation
     (outputType scalar)
   )
  )
  (component 1 YPLOT
   (name "Strip Chart")
   (interface
     (input 1
      (name "Trace1")
      (lock constraints)
     )
     (input 2
      (type control)
      (name "Scales")
      (tag "ScalesRecord")
      (requires
       (datatype Record)
      )
      (lock name constraints)
      (optional yes)
     )
   )
   (implementation
     (tracePin 1)
     (graphMode strip)
   )
  )
  (component 2 VFUNCTIONGENERATOR
   (interface
     (output 1
      (name "Func")
      (lock name constraints)
     )
   )
   (implementation
     (function Sine)
     (frequency 1000)
     (amplitude 1)
     (dcOffset 0)
     (phaseShift 0)
     (numPoints 1024)
     (interval 0.02)
     (degRad Deg)
     (errorOnAlias 1)
   )
  )
  (component 3 LITERALCONSTANT
   (name "Text")
   (interface
     (output 1
      (name "Text")
      (lock name constraints)
     )
   )
   (implementation
     (value Text
      (data  "X")
     )
     (initValue Text
      (data  "")
     )
   )
  )
  (component 4 LITERALCONSTANT
   (name "Text")
   (interface
     (output 1
      (name "Text")
      (lock name constraints)
     )
   )
   (implementation
     (value Text
      (data  "M345linger")
     )
     (initValue Text
      (data  "")
     )
   )
  )
  (component 5 SLIDER
   (name "Real Slider")
   (interface
     (output 1
      (name "Real")
      (lock name constraints)
     )
   )
   (implementation
     (value Real
      (values range 0 30000)
      (data  19709.302)
     )
     (autoTrigger on)
     (initValue Real
      (data  0)
     )
     (detents 0.001)
   )
  )
  (component 6 SLIDER
   (name "Real Slider")
   (interface
     (output 1
      (name "Real")
      (lock name constraints)
     )
   )
   (implementation
     (value Real
      (values range 0 30000)
      (data  28430.233)
     )
     (autoTrigger on)
     (initValue Real
      (data  0)
     )
     (detents 0.001)
   )
  )
  (component 7 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)
     )
   )
  )
  (component 8 LITERALCONSTANT
   (name "Text")
   (interface
     (output 1
      (name "Text")
      (lock name constraints)
     )
   )
   (implementation
     (value Text
      (data  "y")
     )
     (initValue Text
      (data  "")
     )
   )
  )
  (component 9 LITERALCONSTANT
   (name "Text")
   (interface
     (output 1
      (name "Text")
      (lock name constraints)
     )
   )
   (implementation
     (value Text
      (data  "M345linger")
     )
     (initValue Text
      (data  "")
     )
   )
  )
  (component 10 SLIDER
   (name "Real Slider")
   (interface
     (output 1
      (name "Real")
      (lock name constraints)
     )
   )
   (implementation
     (value Real
      (values range -10 10)
      (data  -1.744)
     )
     (autoTrigger on)
     (initValue Real
      (data  0)
     )
     (detents 0.001)
   )
  )
  (component 11 SLIDER
   (name "Real Slider")
   (interface
     (output 1
      (name "Real")
      (lock name constraints)
     )
   )
   (implementation
     (value Real
      (values range -10 10)
      (data  8.023)
     )
     (autoTrigger on)
     (initValue Real
      (data  0)
     )
     (detents 0.001)
   )
  )
  (component 12 TORECORD
   (interface
     (input 1
      (name "Scale")
      (optional yes)
     )
     (input 2
      (name "Name")
      (optional yes)
     )
     (input 3
      (name "Min")
      (optional yes)
     )
     (input 4
      (name "Max")
      (optional yes)
     )
     (output 1
      (name "Record")
      (tag "Record")
      (lock constraints)
     )
   )
   (implementation
     (outputType scalar)
   )
  )
  (component 15 START25
  )
  (component 17 REPEATUNTILBREAK
   (interface
     (output 1
      (name "Continuous")
      (lock name constraints)
     )
   )
  )
  (component 18 CONFIRM25
   (interface
     (output 1
      (name "Go")
      (lock name constraints)
     )
   )
   (implementation
     (component enterButton yes)
     (component escapeButton yes)
   )
  )
  (component 20 NEXT
  )
  (configuration
   (connect D3:1 D0:1)
   (connect D4:1 D0:2)
   (connect D5:1 D0:3)
   (connect D6:1 D0:4)
   (connect D2:1 D1:1)
   (connect D7:1 D1:2)
   (connect D14:1 D2:0)
   (connect D15:1 D5:0)
   (connect D15:1 D6:0)
   (connect D0:1 D7:1)
   (connect D12:1 D7:2)
   (connect D15:1 D10:0)
   (connect D15:1 D11:0)
   (connect D8:1 D12:1)
   (connect D9:1 D12:2)
   (connect D10:1 D12:3)
   (connect D11:1 D12:4)
   (connect D13:0 D14:0)
   (connect D14:1 D15:0)
   (connect D2:0 D16:0)
  )
)
(viewFor -1
  (active detail)
  (detail
   (geometry 0 53 1260 697)
   (configuration
     (viewFor 0
      (active detail)
      (icon
        (geometry 763 445 95 51)
        (iconImage "build.icn")
       )
      (detail
       (geometry 486 449 98 82)
      )
      (terminals on)
     )
     (viewFor 1
      (active detail)
      (icon
       (iconImage "display.icn")
      )
      (detail
       (geometry 794 219 293 262)
       (displayMode scrollGraph)
       (graphType cartesian)
       (gridType off)
       (scale 0
        (name "M345linger")
        (domainName "M345linger")
        (pen 9)
        (show 1)
        (range -1.744 8.023 4 linear)
       )
       (domain 0 8720.931000000004 4 linear)
       (trace 0 onScale 0
        (name "Trace1")
        (pen 4)
        (lineType 1)
        (pointType 0)
       )
       (stepSize 1)
       (trackingEnabled 1)
      )
     )
     (viewFor 2
      (active detail)
      (icon
       (iconImage "virtual.icn")
      )
      (detail
       (geometry 245 213 220 175)
      )
      (terminals on)
     )
     (viewFor 3
      (active detail)
      (icon
      )
      (detail
       (geometry 153 426 214 29)
      )
     )
     (viewFor 4
      (active detail)
      (icon
       )
      (detail
       (geometry 153 486 214 29)
      )
     )
     (viewFor 5
      (active detail)
      (icon
      )
      (detail
       (geometry 161 549 119 222)
       (layout vertical)
       (fastmode off)
      )
     )
     (viewFor 6
      (active detail)
      (icon
      )
      (detail
       (geometry 351 569 119 222)
       (layout vertical)
       (fastmode off)
      )
     )
     (viewFor 7
      (active icon)
      (icon
       (geometry 726 428 28 25)
      )
      (detail
      )
      (terminals on)
     )
     (viewFor 8
      (active detail)
      (icon
       )
      (detail
       (geometry 543 576 214 29)
      )
     )
     (viewFor 9
      (active detail)
      (icon
       )
      (detail
       (geometry 543 636 214 29)
      )
     )
     (viewFor 10
      (active detail)
      (icon
      )
      (detail
       (geometry 551 699 119 222)
       (layout vertical)
       (fastmode off)
      )
     )
     (viewFor 11
      (active detail)
      (icon
      )
      (detail
       (geometry 741 719 119 222)
       (layout vertical)
       (fastmode off)
      )
     )
     (viewFor 12
      (active detail)
      (icon
        (geometry 763 445 95 51)
        (iconImage "build.icn")
       )
      (detail
       (geometry 876 599 98 82)
      )
      (terminals on)
     )
     (viewFor 15
      (active detail)
      (icon
      )
      (detail
       (geometry 226 70 49 20)
      )
      (title off)
     )
     (viewFor 17
      (active icon)
      (icon
       (geometry 67 195 86 51)
       (iconImage "loop.icn")
      )
      (detail
       )
      (terminals on)
     )
     (viewFor 18
      (active detail)
      (icon
      )
      (detail
       (geometry 86 320 49 20)
      )
      (title off)
     )
     (viewFor 20
      (active icon)
      (icon
       (geometry 561 383 38 15)
      )
      (detail
      )
      (terminals on)
     )
     (connect D3:1 D0:1
      (points 4 369 440 390 440 390 460 433 460)
     )
     (connect D4:1 D0:2
      (points 4 369 500 390 500 390 480 433 480)
     )
     (connect D5:1 D0:3
      (points 4 282 660 400 660 400 500 433 500)
     )
     (connect D6:1 D0:4
      (points 6 472 680 490 680 490 540 420 540 420 520 433 520)
     )
     (connect D2:1 D1:1
      (points 4 507 300 530 300 530 280 791 280)
     )
     (connect D7:1 D1:2
      (points 4 756 440 770 440 770 420 791 420)
     )
     (connect D14:1 D2:0
      (points 5 155 220 190 220 190 170 360 170 360 192)
     )
     (connect D15:1 D5:0
      (points 7 137 330 160 330 160 360 130 360 130 510 220 510 220 528)
     )
     (connect D15:1 D6:0
      (points 9 137 330 160 330 160 360 130 360 130 790 300 790 300 540 410 540 410
548)
     )
     (connect D0:1 D7:1
      (points 4 646 490 670 490 670 430 723 430)
     )
     (connect D12:1 D7:2
      (points 6 1036 640 1060 640 1060 540 700 540 700 450 723 450)
     )
     (connect D15:1 D10:0
      (points 11 137 330 160 330 160 360 130 360 130 790 310 790 310 810 500 810 500
660 610 660 610 678)
     )
     (connect D15:1 D11:0
      (points 13 137 330 160 330 160 360 130 360 130 790 310 790 310 810 500 810 500
550 710 550 710 540 800 540 800 698)
     )
     (connect D8:1 D12:1
      (points 4 759 590 770 590 770 610 823 610)
     )
     (connect D9:1 D12:2
      (points 4 759 650 780 650 780 630 823 630)
     )
     (connect D10:1 D12:3
      (points 6 672 810 720 810 720 680 790 680 790 650 823 650)
     )
     (connect D11:1 D12:4
      (points 6 862 830 880 830 880 690 810 690 810 670 823 670)
     )
     (connect D13:0 D14:0
      (points 6 250 92 250 100 230 100 230 110 110 110 110 192)
     )
     (connect D14:1 D15:0
      (points 5 155 220 180 220 180 270 110 270 110 317)
     )
     (connect D2:0 D16:0
      (points 8 360 390 360 400 380 400 380 410 530 410 530 360 580 360 580 380)
     )
   )
   (stackingOrder 2 3 4 5 6 0 9 12 8 7
      11 1 13 14 15 10 16)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
)
)


Outcomes