AnsweredAssumed Answered

Vrf - stefan's array display problem

Question asked by VRFuser on Apr 21, 1997
I believe the attached code snipet will solve your problem of displaying a
number of 1-D arrays in columns with a horizontal and vertical scroll bar.
It involves the use of an alphanumeric display and a user object that
operates similarly to the collector.  The user object, appends the new 1-D
array to a concatenation of all previous 1-D arrays forming a 2-D array.
There is no XEQ pin on the user object.  This 2-D array can be displayed in
an alphanumeric which provides scroll bars and lines up the columns
reguardless of the font selected.  The attached code is in Vee4.0


I hope it helps

Steve


Steven Timian

stimian@ara.com
(802) 763 - 8349 Ext 16 phone
(802) 763 - 8283 fax

Applied Research Associates
New England Division
RR1 Box 120A
South Royalton, VT 05068


+++ Cut Here ++++++++++++++++++++++++++++++++++++
(saveFormat "2.3")
(date "Tue 22/Apr/1997 10:01:57 ")
(veerev "4.0")
(platform "PC")
(execMode fast)
(filterNAN 0)
(workspaceStackingOrder M)
(SaveCF no)
(device 0 ROOTCONTEXT
(properties
(trigMode deg)
(nextID 15)
(popupTitleText "Untitled")
(popupMoveable 1))
(deviceList
(device 4 TEXTDISPLAY
(interface
(input 1
(name "Data"))))
(device 5 FORMULA
(properties
(name "ramp(numElem,start,stop)")
(expr 1 "ramp(10, 0, 10)"))
(interface
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 8 FORCOUNT
(properties
(count 50))
(interface
(output 1
(name "Count")
(lock name constraints))))
(device 12 CONTEXT
(properties
(name "UCollector")
(trigMode deg)
(nextID 45)
(popupTitleText "UserObject")
(popupMoveable 1))
(interface
(input 1
(name "A")
(optional yes))
(output 1
(type data)
(name "X")
(lock constraints)
(optional yes)))
(deviceList
(device 3 FROMGLOBAL
(properties
(globalName "C2"))
(interface
(output 1
(name "Data")
(tag "Data")
(lock name constraints))
(output 2
(type exception)
(name "Error")
(lock name constraints)
(optional yes))))
(device 5 TOGLOBAL
(properties
(globalName "C2"))
(interface
(input 1
(name "Data")
(tag "Data"))))
(device 9 JUNCTION
(properties
(name "JCT"))
(interface
(input 1
(name "A")
(lock name constraints))
(input 2
(name "B")
(lock name constraints))
(output 1
(name "Data"))))
(device 30 FORMULA
(properties
(name "totSize(x)")
(expr 1 "totSize(A)/totSize(B)"))
(interface
(input 1
(name "A")
(optional yes))
(input 2
(name "B")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 38 FORCOUNT
(properties
(count 49))
(interface
(input 1
(name "Count")
(tag "Count")
(requires
(datatype Int32)
(shape "Scalar"))
(lock constraints)
(optional yes)
(buffer YES))
(output 1
(name "Count")
(lock name constraints))))
(device 39 FORMULA
(properties
(expr 1 "B[A, *]"))
(interface
(input 1
(name "A")
(optional yes))
(input 2
(name "B")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 40 COLLECTOR
(properties
(output1D 0))
(interface
(input 1
(name "Data")
(tag "Data"))
(input 2
(type trigger)
(name "XEQ")
(lock name constraints))
(output 1
(name "Array")
(tag "Array"))))
(device 41 JUNCTION
(properties
(name "JCT"))
(interface
(input 1
(name "A")
(lock name constraints))
(input 2
(name "B")
(lock name constraints))
(output 1
(name "Data"))))
(device 42 GATE
(interface
(input 1
(name "A")
(tag "InData"))
(output 1
(name "X"))))
(device 44 COLLECTOR
(properties
(output1D 0))
(interface
(input 1
(name "Data")
(tag "Data"))
(input 2
(type trigger)
(name "XEQ")
(lock name constraints))
(output 1
(name "Array")
(tag "Array"))))
(configuration
(connect D2:1 D1:1)
(connect D6:1 D2:1)
(connect D9:1 D2:2)
(connect D0:1 D3:1)
(connect I1:1 D3:2)
(connect D3:1 D4:1)
(connect D4:1 D5:1)
(connect D0:1 D5:2)
(connect D7:1 D6:1)
(connect D8:0 D6:2)
(connect D5:1 D7:1)
(connect D8:1 D7:2)
(connect D4:0 D8:0)
(connect I1:1 D8:1)
(connect I1:1 D9:1)
(connect D0:2 D9:2)
(connect D2:1 O1:1)))
(contextCarrier
(active detail)
(detail
(extent 350 300)
(anchorPt 2 -1)
(configuration
(devCarrierFor 3
(active open)
(icon)
(open
(extent 81 53))
(terminals on)
(pinCenter 75 90))
(devCarrierFor 5
(active open)
(icon)
(open
(extent 81 53))
(terminals on)
(pinCenter 675 420))
(devCarrierFor 9
(active icon)
(icon
(extent 29 25))
(open)
(terminals on)
(pinCenter 520 380))
(devCarrierFor 30
(active open)
(icon
(extent 63 25))
(open
(extent 160 42))
(terminals on)
(pinCenter 340 90))
(devCarrierFor 38
(active open)
(icon
(iconImage "loop.icn"))
(open
(extent 106 32))
(pinCenter 580 90))
(devCarrierFor 39
(active open)
(icon)
(open
(extent 73 42))
(terminals on)
(pinCenter 310 210))
(devCarrierFor 40
(active icon)
(icon
(extent 61 25))
(open
(extent 109 56))
(terminals on)
(pinCenter 540 230))
(devCarrierFor 41
(active icon)
(icon
(extent 29 25))
(open)
(terminals on)
(pinCenter 470 220))
(devCarrierFor 42
(active icon)
(icon
(extent 35 16))
(open)
(terminals on)
(pinCenter 220 290))
(devCarrierFor 44
(active icon)
(icon
(extent 61 25))
(open
(extent 109 56))
(terminals on)
(pinCenter 230 390))
(connect D2:1 D1:1
(points 4 537 380 560 380 560 420 592 420))
(connect D6:1 D2:1
(points 6 573 230 590 230 590 330 490 330 490 370 503 370))
(connect D9:1 D2:2
(points 2 263 390 503 390))
(connect D0:1 D3:1
(points 2 158 80 227 80))
(connect I1:1 D3:2
(points 4 -2 150 180 150 180 100 227 100))
(connect D3:1 D4:1
(points 2 472 90 524 90))
(connect D4:1 D5:1
(points 6 635 90 660 90 660 140 230 140 230 200 241 200))
(connect D0:1 D5:2
(points 4 158 80 210 80 210 220 241 220))
(connect D7:1 D6:1
(points 2 487 220 507 220))
(connect D8:0 D6:2
(points 5 220 300 220 320 500 320 500 240 507 240))
(connect D5:1 D7:1
(points 2 399 210 453 210))
(connect D8:1 D7:2
(points 4 240 290 420 290 420 230 453 230))
(connect D4:0 D8:0
(points 4 580 108 580 130 220 130 220 279))
(connect I1:1 D8:1
(points 4 -2 150 180 150 180 290 200 290))
(connect I1:1 D9:1
(points 4 -2 150 180 150 180 380 197 380))
(connect D0:2 D9:2
(points 4 158 100 170 100 170 400 197 400))
(connect D2:1 O1:1
(points 6 537 380 560 380 560 350 600 350 600 150 347 150)))
(stackingOrder 0 4 3 9 8 5 7 6 2 1))))
(configuration
(connect D3:1 D0:1)
(connect D2:1 D1:0)
(connect D1:1 D3:1)))
(contextCarrier
(wndRestoredOrigin 2 2)
(wndRestoredExtent 600 432)
(wndState max)
(active detail)
(detail
(extent 828 660)
(anchorPt 0 0)
(configuration
(devCarrierFor 4
(active open)
(icon)
(open
(extent 223 125)
(scFont "Courier New" 18)
(arFont "Times New Roman" 14))
(pinCenter 640 370))
(devCarrierFor 5
(active open)
(icon
(extent 179 0))
(open
(extent 205 62))
(terminals on)
(pinCenter 180 370))
(devCarrierFor 8
(active open)
(icon
(iconImage "loop.icn"))
(open
(extent 106 32))
(pinCenter 90 240))
(devCarrierFor 12
(active icon)
(icon
(extent 71 25))
(terminals on)
(pinCenter 420 370))
(connect D3:1 D0:1
(points 2 458 370 526 370))
(connect D2:1 D1:0
(points 3 145 240 190 240 190 318))
(connect D1:1 D3:1
(points 2 335 370 382 370)))
(stackingOrder 2 1 0 3))
(numberFormats
(realFormat standard)
(realSigDigits 4)
(realRadixSpec 4)
(integerBase decimal))))

Outcomes