Greetings HPVee Users,
Sometimes there are just too many significant digits, and I would like to chop all of them off except for 2. My Default preferences have been set up for Decimal, Fixed, 2??however I continue to get about a dozen significant digits as the output from some of my formulas.
I could use the strFromThru, but this converts my data from numerical to text, and I need it to stay numerical so that I can perform more math on the data.
Does anyone have an idea about how to accomplish this? Am I missing a simple setting somewhere?
One last question?can you have an array of both text AND integer data with HPVee 4.0 ?
Best Regards,
Peter J. Cesarz
Test & Controls International
Tstcntrl@adept.net
Sometimes there are just too many significant digits, and I would like to chop all of them off except for 2. My Default preferences have been set up for Decimal, Fixed, 2??however I continue to get about a dozen significant digits as the output from some of my formulas.
I could use the strFromThru, but this converts my data from numerical to text, and I need it to stay numerical so that I can perform more math on the data.
Does anyone have an idea about how to accomplish this? Am I missing a simple setting somewhere?
One last question?can you have an array of both text AND integer data with HPVee 4.0 ?
Best Regards,
Peter J. Cesarz
Test & Controls International
Tstcntrl@adept.net
gvg@lvld.hp.com / 970-679-3030 / FAX 970-679-5971
website: http://hpislsup.lvld.hp.com
to: VRf / Peter J. Cesarz
date: Thursday, 06 November 1997 1411 MST
> Does anyone have an idea about how to accomplish this? Am I missing a =
> simple setting somewhere?
You would need to set the Number format from the object menu for the display
object you're using. You click on the box in the upper left corner of the
object, select Default Preferences from the menu, select the Number tab,
get rid of the "Global Format" flag, and define whatever format you want.
You can't do this globally, but once you set up an object you can clone it
indefinitely.
> One last question?can you have an array of both text AND integer data =
> with HPVee 4.0 ?
You mean one array with both? No -- but you could make a record with integer
and text arrays, or an array of records with an integer and text in each.
Please see example below.
> Best Regards,
> Peter J. Cesarz
> Test & Controls International
> Tstcntrl@adept.net
--------------------------------- cut here ----------------------------------
(saveFormat "2.3")
(date "Thu 06/Nov/1997 15:09:19 ")
(veerev "4.01")
(platform "PC")
(execMode fast)
(filterNAN 0)
(workspaceStackingOrder M)
(SaveCF no)
(device 0 ROOTCONTEXT
(properties
(trigMode deg)
(nextID 23)
(popupTitleText "Untitled")
(popupMoveable 1))
(deviceList
(device 5 FORMULA
(properties
(expr 1 "A.A[50]"))
(interface
(input 1
(name "A")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 6 FORMULA
(properties
(expr 1 "A.B[50]"))
(interface
(input 1
(name "A")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 7 TEXTDISPLAY
(interface
(input 1
(name "Data"))))
(device 8 TEXTDISPLAY
(interface
(input 1
(name "Data"))))
(device 9 RECCONST
(properties
(name "Record"))
(interface
(output 1
(name "Record")
(lock name constraints)))
(implementation
(value Record
(schema
(numFields 2)
(fieldName "A"
(type Int32))
(fieldName "B"
(type Text)))
(data
(record
("A" 0)
("B" "1.25"))))))
(device 14 RECCONST
(properties
(name "Record"))
(interface
(output 1
(name "Record")
(lock name constraints)))
(implementation
(value Record
(schema
(numFields 2)
(fieldName "A"
(type Int32)
(numDims 1)
(size 100))
(fieldName "B"
(type Text)
(numDims 1)
(size 100)))
(data
(record
("A" [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ])
("B" [ "1.25" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ]))))))
(device 15 TEXTDISPLAY
(interface
(input 1
(name "Data"))))
(device 16 TEXTDISPLAY
(interface
(input 1
(name "Data"))))
(device 17 FORMULA
(properties
(expr 1 "A[50].A"))
(interface
(input 1
(name "A")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 18 FORMULA
(properties
(expr 1 "A[50].B"))
(interface
(input 1
(name "A")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 19 RECCONST
(properties
(name "Record"))
(interface
(output 1
(name "Record")
(lock name constraints)))
(implementation
(value Record
(schema
(numFields 2)
(fieldName "A"
(type Int32)
(numDims 1)
(size 100))
(fieldName "B"
(type Text)
(numDims 1)
(size 100)))
(data
(record
("A" [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ])
("B" [ "1.25" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ]))))))
(device 21 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 22 FORCOUNT
(properties
(count 100))
(interface
(output 1
(name "Count")
(lock name constraints))))
(configuration
(connect D10:1 D0:1)
(connect D10:1 D1:1)
(connect D0:1 D2:1)
(connect D1:1 D3:1)
(connect D12:1 D4:0)
(connect D9:1 D6:1)
(connect D8:1 D7:1)
(connect D11:1 D8:1)
(connect D11:1 D9:1)
(connect D4:1 D11:1)
(connect D12:0 D11:2)))
(contextCarrier
(wndOrigin 2 9)
(wndState res)
(active detail)
(detail
(extent 959 617)
(anchorPt -14 -2)
(configuration
(devCarrierFor 5
(active open)
(icon)
(open
(extent 80 32))
(terminals on)
(pinCenter 600 100))
(devCarrierFor 6
(active open)
(icon)
(open
(extent 80 32))
(terminals on)
(pinCenter 600 180))
(devCarrierFor 7
(active open)
(icon)
(open
(extent 131 28))
(pinCenter 790 100))
(devCarrierFor 8
(active open)
(icon)
(open
(extent 131 28))
(pinCenter 790 180))
(devCarrierFor 9
(active open)
(icon)
(open
(extent 213 110)
(formatters))
(pinCenter 210 420))
(devCarrierFor 14
(active open)
(icon)
(open
(extent 213 110)
(formatters))
(pinCenter 660 800))
(devCarrierFor 15
(active open)
(icon)
(open
(extent 131 28))
(pinCenter 780 540))
(devCarrierFor 16
(active open)
(icon)
(open
(extent 131 28))
(pinCenter 780 460))
(devCarrierFor 17
(active open)
(icon)
(open
(extent 80 32))
(terminals on)
(pinCenter 580 460))
(devCarrierFor 18
(active open)
(icon)
(open
(extent 80 32))
(terminals on)
(pinCenter 580 540))
(devCarrierFor 19
(active open)
(icon)
(open
(extent 213 110)
(formatters))
(pinCenter 360 100))
(devCarrierFor 21
(active icon)
(icon
(extent 61 25))
(open
(extent 109 56))
(terminals on)
(pinCenter 410 460))
(devCarrierFor 22
(active open)
(icon
(iconImage "loop.icn"))
(open
(extent 106 32))
(pinCenter 90 290))
(connect D10:1 D0:1
(points 2 469 100 527 100))
(connect D10:1 D1:1
(points 4 469 100 500 100 500 180 527 180))
(connect D0:1 D2:1
(points 2 692 100 722 100))
(connect D1:1 D3:1
(points 2 692 180 722 180))
(connect D12:1 D4:0
(points 3 145 290 210 290 210 344))
(connect D9:1 D6:1
(points 2 672 540 712 540))
(connect D8:1 D7:1
(points 2 672 460 712 460))
(connect D11:1 D8:1
(points 2 443 460 507 460))
(connect D11:1 D9:1
(points 4 443 460 460 460 460 540 507 540))
(connect D4:1 D11:1
(points 4 319 420 340 420 340 450 377 450))
(connect D12:0 D11:2
(points 7 90 308 90 320 80 320 80 500 340 500 340 470 377 470)))
(stackingOrder 5 10 0 1 2 3 4 7 6 9 11 12 8))
(numberFormats
(realFormat standard)
(realSigDigits 4)
(realRadixSpec 4)
(integerBase decimal))))
--------------------------------- cut here ----------------------------------