AnsweredAssumed Answered

TDS3054 help

Question asked by ron.simonson on Nov 28, 2000
----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 18

Good afternoon,  I went into the lab and quickly
put this little program together to read a waveform
from the Tek3054.  It is certainly not elegant but
I hope that it gets you started on your project.
You will notice that I did not use the "WFMPRe?"
command.  This would then require some thought into
how to parse the preamble file.  Instead I just
asked for the things I thought I needed to calculate
the waveform time and amplitude.  I avoided the
"WAVFrm?" command for the same reasons.  This program
is essentially a translation from the "getwfm.c"
program that is on the floppy disk in your programmers
manual.  The program "getwfm.c" is also available
from the Tek website too (I think).  If you have
trouble finding the C program and would like a
copy of it please feel free to send me an email.

Regards,  Ron.
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: tek3054.vee
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 383

(saveFormat "2.3")
(date "Tue 28/Nov/2000 16:32:42 ")
(veerev "5.0")
(platform "PC")
(execMode ole)
(filterNAN 0)
(workspaceStackingOrder M)
(SaveCF no)
(device 0 ROOTCONTEXT
(properties
(trigMode deg)
(nextID 27)
(popupTitleText "Untitled")
(popupMoveable 1))
(deviceList
(device 7 IODEVICE
(properties
(name "Tek 3054 ( @ 1407)")
(transactions 7 "WRITE TEXT "DATA:SOURCE CH1" EOL"
"WRITE TEXT "DATA:ENCDG RIBINARY;WIDTH 2" EOL"
"WRITE TEXT "HORIZONTAL:RECORDLENGTH 500" EOL"
"WRITE TEXT "DATA:START ", data_start EOL"
"WRITE TEXT "DATA:STOP ", data_stop EOL" "WRITE TEXT "HEADER OFF" EOL"
"WRITE TEXT "ACQUIRE:STATE RUN" EOL"))
(interface
(input 1
(name "data_start")
(optional yes))
(input 2
(name "data_stop")
(optional yes)))
(implementation
(iopath "Tek 3054")))
(device 8 IODEVICE
(properties
(name "Tek 3054 ( @ 1407)")
(transactions 8 "WRITE TEXT "WFMPRE:PT_OFF?" EOL" "READ TEXT pt_off REAL"
"WRITE TEXT "WFMPRE:XINCR?" EOL" "READ TEXT xincr REAL"
"WRITE TEXT "WFMPRE:YOFF?" EOL" "READ TEXT yoff REAL"
"WRITE TEXT "WFMPRE:YMULT?" EOL" "READ TEXT ymult REAL"))
(interface
(output 1
(name "pt_off")
(optional yes))
(output 2
(name "xincr")
(optional yes))
(output 3
(name "yoff")
(optional yes))
(output 4
(name "ymult")
(optional yes)))
(implementation
(iopath "Tek 3054")))
(device 10 IODEVICE
(properties
(name "Tek 3054 ( @ 1407)")
(transactions 2 "WRITE TEXT "CURVE?" EOL" "READ BINARY curve INT16 ARRAY:500")
)
(interface
(output 1
(name "curve")
(optional yes)))
(implementation
(iopath "Tek 3054")))
(device 15 FORRANGE
(properties
(from 0)
(thru 499)
(step 1))
(interface
(input 1
(name "From")
(tag "From")
(requires
(datatype Real)
(shape "Scalar"))
(lock constraints)
(optional yes)
(buffer YES))
(input 2
(name "Thru")
(tag "Thru")
(requires
(datatype Real)
(shape "Scalar"))
(lock constraints)
(optional yes)
(buffer YES))
(output 1
(name "Data")
(lock name constraints))))
(device 16 FORMULA
(properties
(expr 3 "time=(index-ptoff)*xincr;" "volts=(data-yoff)*ymult;" ""))
(interface
(input 1
(name "ptoff")
(optional yes))
(input 2
(name "xincr")
(optional yes))
(input 3
(name "yoff")
(optional yes))
(input 4
(name "ymult")
(optional yes))
(input 5
(name "data")
(optional yes))
(input 6
(name "index")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))
(output 2
(name "time")
(optional yes))
(output 3
(name "volts")
(optional yes))))
(device 17 CONSTANT
(properties
(name "DATA:START"))
(interface
(output 1
(name "Int32")
(lock name constraints)))
(implementation
(value Int32
(data  1))
(initValue Int32
(data  0))))
(device 18 CONSTANT
(properties
(name "DATA:STOP"))
(interface
(output 1
(name "Int32")
(lock name constraints)))
(implementation
(value Int32
(data  500))
(initValue Int32
(data  0))))
(device 24 FROMARRAY
(properties
(expr 1 "Ary[index]"))
(interface
(input 1
(name "Ary")
(tag "Ary"))
(input 2
(name "index")
(optional yes))
(output 1
(name "SubAry")
(tag "Result"))
(output 2
(name "Type")
(tag "Type"))
(output 3
(name "NumDims")
(tag "NumDims"))
(output 4
(name "DimSizes")
(tag "DimSizes"))
(output 5
(name "TotSize")
(tag "TotSize"))))
(device 25 XYPLOT
(interface
(input 1
(name "XData")
(lock constraints))
(input 2
(name "YData1")
(lock constraints)))
(implementation
(tracePin 2)
(graphMode rectangular)
(autoAutoX)
(autoAutoY)))
(device 26 FORMULA
(properties
(expr 3 "from=data_start-1;" "through=data_stop-1;" ""))
(interface
(input 1
(name "data_start")
(optional yes))
(input 2
(name "data_stop")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))
(output 2
(name "from")
(optional yes))
(output 3
(name "through")
(optional yes))))
(configuration
(connect D5:1 D0:1)
(connect D6:1 D0:2)
(connect D0:0 D1:0)
(connect D1:0 D2:0)
(connect D2:0 D3:0)
(connect D9:2 D3:1)
(connect D9:3 D3:2)
(connect D1:1 D4:1)
(connect D1:2 D4:2)
(connect D1:3 D4:3)
(connect D1:4 D4:4)
(connect D7:1 D4:5)
(connect D3:1 D4:6)
(connect D2:1 D7:1)
(connect D3:1 D7:2)
(connect D4:2 D8:1)
(connect D4:3 D8:2)
(connect D5:1 D9:1)
(connect D6:1 D9:2)))
(contextCarrier
(wndRestoredOrigin 2 2)
(wndRestoredExtent 600 405)
(wndState max)
(active detail)
(detail
(extent 1020 633)
(anchorPt 648 59)
(configuration
(devCarrierFor 7
(active icon)
(icon
(extent 118 51)
(iconImage "io.icn"))
(open
(extent 343 143))
(terminals on)
(pinCenter -330 150))
(devCarrierFor 8
(active icon)
(icon
(extent 118 51)
(iconImage "io.icn"))
(open
(extent 268 179))
(terminals on)
(pinCenter -330 220))
(devCarrierFor 10
(active icon)
(icon
(extent 118 51)
(iconImage "io.icn"))
(open
(extent 270 74))
(terminals on)
(pinCenter -330 290))
(devCarrierFor 15
(active icon)
(icon
(extent 68 51)
(iconImage "loop.icn"))
(open
(extent 99 79))
(pinCenter -330 370))
(devCarrierFor 16
(active icon)
(icon
(extent 50 65))
(open
(extent 266 148))
(terminals on)
(pinCenter -100 300))
(devCarrierFor 17
(active open)
(icon
(extent 78 0))
(open
(extent 114 29)
(showFormat int))
(pinCenter -520 130))
(devCarrierFor 18
(active open)
(icon
(extent 71 0))
(open
(extent 114 29)
(showFormat int))
(pinCenter -520 200))
(devCarrierFor 24
(active icon)
(icon
(extent 68 54)
(iconImage "unbuild.icn"))
(open
(extent 93 110))
(terminals on)
(pinCenter -200 330))
(devCarrierFor 25
(active open)
(icon
(iconImage "display.icn"))
(open
(extent 318 279)
(displayMode 47)
(graphType cartesian)
(gridType grid)
(scale 0
(name "Y name")
(domainName "X name")
(Yspacing 1)
(Xspacing 2)
(pen 9)
(show 1)
(range -1 6 4 linear))
(domain 0 0.002 4 linear)
(trace 0 onScale 0
(name "YData1")
(pen 4)
(lineType 1)
(pointType 0)))
(pinCenter 170 290))
(devCarrierFor 26
(active icon)
(icon
(extent 50 34))
(open
(extent 121 69))
(terminals on)
(pinCenter -430 360))
(connect D5:1 D0:1
(points 4 -461 130 -440 130 -440 140 -392 140))
(connect D6:1 D0:2
(points 4 -461 200 -440 200 -440 160 -392 160))
(connect D0:0 D1:0
(points 2 -330 178 -330 192))
(connect D1:0 D2:0
(points 2 -330 248 -330 262))
(connect D2:0 D3:0
(points 2 -330 318 -330 342))
(connect D9:2 D3:1
(points 2 -403 360 -367 360))
(connect D9:3 D3:2
(points 4 -403 370 -390 370 -390 380 -367 380))
(connect D1:1 D4:1
(points 4 -269 200 -240 200 -240 270 -128 270))
(connect D1:2 D4:2
(points 4 -269 210 -250 210 -250 280 -128 280))
(connect D1:3 D4:3
(points 4 -269 220 -140 220 -140 290 -128 290))
(connect D1:4 D4:4
(points 4 -269 230 -150 230 -150 300 -128 300))
(connect D7:1 D4:5
(points 2 -164 310 -128 310))
(connect D3:1 D4:6
(points 6 -294 370 -270 370 -270 380 -140 380 -140 320 -128 320))
(connect D2:1 D7:1
(points 4 -269 290 -260 290 -260 310 -237 310))
(connect D3:1 D7:2
(points 4 -294 370 -260 370 -260 350 -237 350))
(connect D4:2 D8:1
(points 4 -73 300 -50 300 -50 220 8 220))
(connect D4:3 D8:2
(points 4 -73 320 -50 320 -50 360 8 360))
(connect D5:1 D9:1
(points 8 -461 130 -440 130 -440 140 -430 140 -430 250 -470 250 -470 350 -458
350))
(connect D6:1 D9:2
(points 6 -461 200 -440 200 -440 240 -480 240 -480 370 -458 370)))
(stackingOrder 5 1 2 8 7 4 3 6 9 0))
(numberFormats
(realFormat standard)
(realSigDigits 4)
(realRadixSpec 4)
(integerBase decimal))))

Outcomes