AnsweredAssumed Answered

VRf-Looping_Control

Question asked by VRFuser on Jul 27, 1996
> OK buttom to set the scales, but the repaet until that is running the
> virtual source steals all the time, so it dosnt matter how many times i
> 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
>
> P.S. I have some problems with sending mail to the forum, so if this mail
> isnt complete, then please send me a mote !

Sir:

Stan was right, you need to put a NEXT object in to ensure that the loop
completes properly.  You also only need *one* Until-Break ... I have modified
the program accordingly and am returning it with this message.

If you have more questions, let us know.

[%%] regards -- gvg


(saveFormat "2.0")
(date "Sun 28/Jul/1996 13:20:32 MDT")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
(name "Untitled")
(implementation
  (locked no)
  (trigMode deg)
  (nextID 22)
  (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  14651.163)
     )
     (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 19 NEXT
  )
  (component 20 CONFIRM25
   (interface
     (output 1
      (name "Go")
      (lock name constraints)
     )
   )
   (implementation
     (component enterButton yes)
     (component escapeButton yes)
   )
  )
  (component 21 EXITPROCESS
   (implementation
     (comp code 0)
   )
  )
  (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 D1:0 D16:0)
   (connect D14:1 D17:0)
   (connect D17:1 D18:0)
  )
)
(viewFor -1
  (active detail)
  (detail
   (geometry 0 55 1258 931)
   (configuration
     (viewFor 0
      (active icon)
      (icon
       (geometry 553 455 95 51)
       (iconImage "build.icn")
      )
      (detail
       (geometry 576 279 98 82)
      )
      (terminals on)
     )
     (viewFor 1
      (active detail)
      (icon
       (geometry 916 365 88 51)
       (iconImage "display.icn")
      )
      (detail
       (geometry 874 239 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 13779.07 4 linear)
       (trace 0 onScale 0
        (name "Trace1")
        (pen 4)
        (lineType 1)
        (pointType 0)
       )
       (stepSize 1)
       (trackingEnabled 1)
      )
     )
     (viewFor 2
      (active icon)
      (icon
       (geometry 305 305 151 51)
       (iconImage "virtual.icn")
      )
      (detail
       (geometry 265 253 220 175)
      )
      (terminals on)
     )
     (viewFor 3
      (active icon)
      (icon
       (geometry 462 403 36 15)
      )
      (detail
       (geometry 193 276 214 29)
      )
     )
     (viewFor 4
      (active icon)
      (icon
       (geometry 463 432 34 17)
      )
      (detail
       (geometry 193 336 214 29)
      )
     )
     (viewFor 5
      (active icon)
      (icon
       (geometry 329 463 83 15)
      )
      (detail
       (geometry 201 449 119 222)
       (layout vertical)
       (fastmode off)
      )
     )
     (viewFor 6
      (active icon)
      (icon
       (geometry 329 533 83 15)
      )
      (detail
       (geometry 371 609 119 222)
       (layout vertical)
       (fastmode off)
      )
     )
     (viewFor 7
      (active icon)
      (icon
       (geometry 796 428 28 25)
      )
      (detail
      )
      (terminals on)
     )
     (viewFor 8
      (active icon)
      (icon
       (geometry 462 553 36 15)
      )
      (detail
       (geometry 563 616 214 29)
      )
     )
     (viewFor 9
      (active icon)
      (icon
       (geometry 462 583 36 15)
      )
      (detail
       (geometry 563 676 214 29)
      )
     )
     (viewFor 10
      (active icon)
      (icon
       (geometry 329 593 83 15)
      )
      (detail
       (geometry 571 739 119 222)
       (layout vertical)
       (fastmode off)
      )
     )
     (viewFor 11
      (active icon)
      (icon
       (geometry 329 653 83 15)
      )
      (detail
       (geometry 761 759 119 222)
       (layout vertical)
       (fastmode off)
      )
     )
     (viewFor 12
      (active icon)
      (icon
       (geometry 553 595 95 51)
       (iconImage "build.icn")
      )
      (detail
       (geometry 896 639 98 82)
      )
      (terminals on)
     )
     (viewFor 15
      (active detail)
      (icon
      )
      (detail
       (geometry 136 110 49 20)
      )
      (title off)
     )
     (viewFor 17
      (active icon)
      (icon
       (geometry 117 255 86 51)
       (iconImage "loop.icn")
      )
      (detail
       )
      (terminals on)
     )
     (viewFor 18
      (active detail)
      (icon
      )
      (detail
       (geometry 216 420 49 20)
      )
      (title off)
     )
     (viewFor 19
      (active icon)
      (icon
       (geometry 1001 553 38 15)
      )
      (detail
      )
      (terminals on)
     )
     (viewFor 20
      (active detail)
      (icon
      )
      (detail
       (geometry 256 160 49 20)
      )
      (title off)
     )
     (viewFor 21
      (active icon)
      (icon
       (geometry 346 205 68 51)
       (iconImage "stop.icn")
      )
      (detail
       (geometry 344 215 72 31)
      )
     )
     (connect D3:1 D0:1
      (points 4 500 410 520 410 520 460 550 460)
     )
     (connect D4:1 D0:2
      (points 4 499 440 510 440 510 470 550 470)
     )
     (connect D5:1 D0:3
      (points 4 414 470 430 470 430 480 550 480)
     )
     (connect D6:1 D0:4
      (points 4 414 540 430 540 430 490 550 490)
     )
     (connect D2:1 D1:1
      (points 4 458 330 480 330 480 300 871 300)
     )
     (connect D7:1 D1:2
      (points 2 826 440 871 440)
     )
     (connect D14:1 D2:0
      (points 3 205 280 380 280 380 302)
     )
     (connect D15:1 D5:0
      (points 3 267 430 370 430 370 460)
     )
     (connect D15:1 D6:0
      (points 5 267 430 290 430 290 510 370 510 370 530)
     )
     (connect D0:1 D7:1
      (points 4 650 480 670 480 670 430 793 430)
     )
     (connect D12:1 D7:2
      (points 4 650 620 690 620 690 450 793 450)
     )
     (connect D15:1 D10:0
      (points 7 267 430 290 430 290 530 280 530 280 570 370 570 370 590)
     )
     (connect D15:1 D11:0
      (points 9 267 430 290 430 290 530 280 530 280 570 310 570 310 630 370 630 370 650)
     )
     (connect D8:1 D12:1
      (points 4 500 560 530 560 530 600 550 600)
     )
     (connect D9:1 D12:2
      (points 4 500 590 520 590 520 610 550 610)
     )
     (connect D10:1 D12:3
      (points 4 414 600 430 600 430 620 550 620)
     )
     (connect D11:1 D12:4
      (points 4 414 660 430 660 430 630 550 630)
     )
     (connect D13:0 D14:0
      (points 2 160 132 160 252)
     )
     (connect D14:1 D15:0
      (points 3 205 280 240 280 240 417)
     )
     (connect D1:0 D16:0
      (points 2 1020 503 1020 550)
     )
     (connect D14:1 D17:0
      (points 5 205 280 230 280 230 140 280 140 280 157)
     )
     (connect D17:1 D18:0
      (points 3 307 170 380 170 380 202)
     )
   )
   (stackingOrder 2 1 7 15 8 9 12 0 3 4
      16 13 14 10 11 6 5 18 17)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
)
)

Date: Fri, 26 Jul 1996 15:59:20 -0600
To: Stan Bischof <stanb@hpnmrsb2.sr.hp.com>
From: b98803@phxase.allied.com (Robert Seiler)
Subject: Re: VRF- "silent" DOS command call?

Have you tried to run in minimized. It's a selectable setup in the Execute
PC object.

Bob Seiler


Date: Fri, 26 Jul 1996 16:01:11 -0600
To: Stan Bischof <stanb@hpnmrsb2.sr.hp.com>
From: b98803@phxase.allied.com (Robert Seiler)
Subject: Re: VRF- "silent" DOS command call?

P.S you will find the minimize in the Run Style. Click the arrow and see if
it's there.

Bob


From: Stan Bischof <stanb@hpnmrsb2.sr.hp.com>
Return-Path: <stanb@hpnmrsb2.sr.hp.com>
Subject: Re: VRF- "silent" DOS command call?
To: hpvxd_xc@hpislsup.lvld.hp.com
>
> P.S you will find the minimize in the Run Style. Click the arrow and see if
> it's there.
>
> Bob
>
>

OK I'm all set for the moment. Between the "minimize" and custom pif file
hints I can bring in a directory listing OK. Still very clumsy to have to
pop up an icon whenever I want to do this however!

Such is the DOS world I suppose.

Two further questions:

(1) Is it a big deal to write a C program that can do the directory
    listing? That way I could have a compiled function that presumably
    wouldn't have to open another window.

(2) How does this operation change when I move to Win 95 or NT?

thanks

Stan

Outcomes