Home
Tektronix Welding System 5505 User's Manual
Contents
1. INTERFACING INFORMATION a al AMPL N BURST El OFFSET INCR SIZE SPEE S ASTIN ORS TEEN TREI II SYNC OUT gen m This interfacing guide is designed to help you get started as quickly and easily as possible using the PFG 5105 5505 Programmable Function Generator with a GPIB controller This guide tells you how to program the Tektronix PEP 301 and 4041 controllers to communicate with the PFG 5105 5505 Sample programs are included This guide does not take the place of the op erators manual or other documentation supplied with the PFG 5105 5505 and your controller More complete information in these other documents will assist you in gaining the full benefit from the pro grammable and manual capabilities of your function generator SWEEP OUT 4 PELAR 2 ARE OH WV pi MAT FROM aan GPIB MADE EASY OUTPUT MAX 20V gdr FROM 560 Setting Up the PFG 5105 5505 for GPIB Operation Connecting Controller Connect a GPIB cable between the function gen erator and the controller The program examples in this guide assume that ihe PFG 5105 5505 and con troller are the only instruments on the bus For detailed information about connecting the GPIB con troller refer to the PFG 5105 5505 instruction Manual For additional copies order 070 7329 00 i First Printing DEC 1988 PFG 5105 PFG 5505 Instrument Interfacing Guide Displaying the GPIB Address and Terminator The PFG
2. is greater than 99 or less than 1 or if lt binblk gt is longer or shorter than required or if lt binblk gt has a bad checksum byte an execution error is reported Sequentially stores each front panel setup defined in lt binblk gt in a setting buffer beginning with buffer 1 Each lt binblk gt packet sends one front panel setup to one buffer Turns on the sweep The power on setting is SWEEP OFF Disables the sweep operation Returns the selected sweep output status Response SWEEP ON or SWEEP OFF Selects an internal trigger for the trigger source The power on setting is TRIG MAN Selects an external trigger TRIG IN connector for the trigger source Selects manual trigger as trigger source Returns the trigger source setting Response TRIG INT or TRIG EXT Executes internal checkout routines Failure produces error code in the response A response of 0 indicates that the test was successful 1 indicates a failure Response TEST 0 or TEST 1 During the test the GPIB port remains active Enables SRQ when INST ID front panel button is pressed The power on default setting is USER OFF Disables SRQ when INST ID front panel button is pressed Returns the status of the USER REQUEST setting Response USER ON or USER OFF DEG 5105 PFG 5505 Instrument Interfacing Guide Table 2 Cont Header Argument WIDTH lt width gt lt units gt WIDTH Description Sets the width of the output pulse
3. 5105 5505 primary address is displayed in the LCD display when you press the INST ID but ton The current setting of the GPIB terminator is dis played below the address The message terminator switch is set for EOI or LF with EOI no decimal point indicates EOl only See your controller docu mentation foris requirements The PFG 5105 5505 is supplied from the factory set to an address of 8 and to EOi oniy for the mes sage terminator Changing the GPIB Address and Terminator To change the GPIB address enter SPCL function code 240 on the keypad then press the ENTER key The current address is shown in the display window Press the INCREMENT up or down arrow keys to select the new GPIB address To change the terminator enter SPCL function code 241 then press the ENTER key The current terminator is shown in the display window Press the INCREMENT up and down arrow keys to toggle be tween displayed terminators Valid primary addresses include the range of 0 to 30 31 effectively disables the PFG 5105 5505 from communicating on the GPIB lf your controller re serves an address for itself do not set the PFG 5105 5505 to that address The Tektronix 4041 and PEP 301 default to address 30 on power up but may be programmed to use any primary address The PFG 5105 5505 ignores secondary addressing EOl only is recommended as the message ter minator for use with Tektronix controllers EOl or LF is recommended for use with H
4. CMD 260 RETURN 270 CMD CHRS V 64 SEND TALK ADDRESS 280 CALL IBCMD B0 CMD 290 RETURN 300 CMD CHR UNT SEND UNTALK 310 CALL IBCMD 80 CMO 320 RETURN 330 SEND DEVICE CLEAR 340 CMD CHR 20 350 CALL IBCMD BD CMD 360 RETURN 370 SEND MLA SELECTED DEVICE CLEAR UNL 380 CALL IBCLR DES 390 RETURN 400 LLO CHR 17 SEND LOCAL LOCKOUT 410 CALL IBCMD 80 LL03 420 RETURN 430 SEND MLA GO TO LOCAL UNL 440 CALL BLOC 80 450 RETURN 460 CMDS _ TRIGGER UNL 470 CALL IBCMD 8D CMO 480 CMD 8 2 490 CALL IBCMD 8D CMD 500 RETURN SEND MLA GROUP EXECUTABLE 4041 140 Pri_addr 8 PFG 5105 5505 Primary address xxx 150 160 Listen wbyte atn pri_addr 32 Send Listen Address MLA 170 Return 180 Unlisten wbyte atn unl Send Unlisten UNL 190 Return 200 Talk wbyte atn pri addr 64 Send Talk Address 210 Return 220 Untalk wbyte atn unt Send Untalk 230 Return 240 Devclear whyte de Send Device Clear 250 Return 260 SelctcIr whyte sde pri_addr atn un 270 Send MLA Selected Device Clear UNL 280 Return 290 Lockout 300 Return 310 Gtlocal wbyte gtl pri_addr atn un1 320 Send MLA Go to Local UNL Trigger UNL 330 Return 340 Trigger wbyte get pri_addr 350 Send MLA GET UNL 360 Return 370 Loclstat whyte ren 0 ren 1 380 Pulse unassert REN line 390 Return The PFG 5105 5505 responds to DCL and SDC by clearing its
5. GPIB bus Selects the frequency lock mode Option 02 syn thesizer If this mode is selected and the function generator does not have the synthesizer option in stalled an execution error will be reported Returns mode status Response MODE CONT MODE TRIG MODE BURST MODE SYNT or MODE GATE Sets the number of cycles that will be output in the burst mode The default setting is 2 when NBURST is selected without an argument The power on set ting is NBURST 2 Returns the current number of cycles set for the NBURST command Response NBUR lt cycles gt Sets the output open circuit offset voltage to the stated argument value in volts Argument O turns the offset off The power on default setting is O V Returns the current offset setting Response OFFS lt volts gt Connects the PFG 5105 5505 output signal to the front panel connector OUTPUT OFF is the power on default setting Disconnects the PFG 5105 5505 output signal from the front panel connector Output is terminated into 500 Disconnects the main output signal from the front panel OUTPUT connector and terminates it into a high impedance floating Returns the output signai status Response is OUT ON OUT OFF or OUT FLOAT PFG 5105 PFG 5505 Instrument Interfacing Guide Header PERIOD PERIOD PRELEVel RATE RATE RECail RNGLCK RNGLCK ROS RQS SEND Argument lt period gt lt units gt lt TTL C
6. IF VAL AMPL lt 01 OR VAL AMPL gt 9 99 THEN PRINT INVALID PARAMETER AMPLITUDE MUST SE gt 10m OR lt 9 99V GOTO 1350 1740 CALL IBWRT BDX WRTS 1750 GOSUB 2020 1760 PRINT PRINT COMMANDS SENT PRINT 1770 INPUT lt ENTER gt RETURN TO MENU A 1780 GOTO 840 1790 END 1800 1810 CLS CLEAR SCREEN 1820 PR 1 NTR RRR RR AR RRR EH e e e ERA RRA KEK RRR HH RIA RARE KIARA A ERK KEK EEK ERE RARA RARA ARS 1830 PRINTS PEG 5105 5505 TALKER LISTENER PROGRAM V1 0 ZC 1849 PR I NT PERN RAR HH e RR IE De Ae EKER REE ERE EERE ee EH HIRI REA ARA RARE RARA RE RAR RAR 1850 LOCATE 5 1 1860 INPUT ENTER MESSAGE S lt ENTER gt TO QUIT WRT ENTER COMMAND 1870 IF WRT GOTO 830 1880 CALL IBWRT BD WRTS SEND COMMAND 1890 GOSUB 2020 CHECK FOR GPIB ERROR 1900 ERA KA ARANA INPUT FROM DEVICE ARAKAAKAKRKAARAKLAAA ZEANI ERREKAK K 1910 IF RIGHT WRT 1 THEN 1920 ELSE 1960 1920 RDS SPACE 250 DIMMENSION STRING FOR READ 1930 CALL IBRD 8D RD READ FORM INSTRUMENT 1940 PRINT PRINT MESSAGE RETURNED RDS PRINT RETURNED MESSAGE 1950 GOSUB 2020 CHECK FOR GPIB ERROR 1960 CRKRARERKRKKRERKAREREKREKRE KEK SERIAL POLL RHR RAK REE RK IK KR KEK A RARA A RARA RAR 1970 CALL IBRSP BD SPR CALL SERIAL POLL ROUTINE 1980 PRINT 1990 PRINT RETURNED STATUS BYTE SPRZ PRINT RESPONSE 2000 PRINT GOTO 1860 2010 2020 1 HERRERA AA ARA RARA RARA ERROR LISTING RAHARRARARARE NARRAR ERE AA RRRARRASR 2030 2040 IF 8D lt 0
7. IN CREMENT keys toggle between terminators 260 Range lock to enabie external wide sweep INCREMENT keys toggle from ON to OFF 270 Downloads demo setting into settings buf fers 90 99 See Table 3 This overwrites any setting in these buffers 410 Enters duty cycle mode When a duty cycle of 10 80 is entered the PFG 5105 5505 will change width to maintain the duty cycle as the period changes A width entry removes the instrument from the duty cycle mode 420 Allows a predefined level to be set The INCREMENT keys select one of the follow ing TTL 0 to 3 V CMOS 0 to 4 99 Vi ECL 0 8 to 1 8 V The AMPL OFFSET value can be used to modify the pre defined levels Calibration 510 Calibration routines 38 settings This spe cial function is intended for service person nel only Sending Messages to the PFG 5105 5505 Controllers A GPIB controller such as the Tek tronix 4041 or PEP 301 system is needed to send messages to the PFG 5105 5505 BM Personal Computers PC and some PC com patible computers can be used as GPIB controllers by installing the Tektronix GPIB User s Resource Utility GURU Il software hardware package For the PEP 301 programming examples the GURU Il software must be initialized For an example of the exact program lines to use for the GURU in itialization see the Sample Utility Program on page 14 Refer to your GURU li documentation for more specific information PEP 301 200
8. RNGLCK OFF Enables the service request operation If RQS is ON errors are reported at the end of command execu tion if OFF errors are queued until an error query is sent or RQS is turned back on Errors are reported in the order acquired The power on setting is RQS ON Disables all service requests Returns the status of the RQS setting Response RQS OFF or RQS ON Returns the stored settings from the specified buff er s from O to 99 Response STOR lt num gt lt bin bik gt lt num gt lt binbik gt Returns the contents of all stored setting locations beginning with buffer 0 Response STOR ALL lt binblk gt lt binbik gt DEG 5105 PFG 5505 Instrument Interfacing Guide Header Argument SET STORe lt bufnum gt lt binblk gt lt bufnum gt lt binbik gt ALL lt binbik gt lt binbik gt SWEEP ON OFF SWEEP TRIG INT EXT MANual TRIG TEST USEReg N OFF USER Table 2 Cont Description Returns all instrument settings that can be set and queried except stored front panel settings See SEND Saves the current front panel settings in a specified buffer s lt bufnum gt for later recall Buffer 0 is a read only buffer that contains the power on settings Optionally stores the settings data defined in lt bin bik gt in the specified buffer lt num gt 1 99 Multiple arguments are allowed if connected by a comma if lt num gt
9. YO Buffer and any unexecuted setting commands in its Pending Settings Buffer along with any errors or events waiting to be reported except power on wbyte lla Send Local Lockout GET causes previously received settings to be ex ecuted or triggers outputs in TRIGGER GATE or BURST modes when the instrument receives the message while listen addressed GET is used after the DT command has been sent LLO locks out the operator from restoring local front panel control when the instrument is under remote control GTL restores local control if the instrument re ceives the message while listen addressed See the PFG 5105 5505 Instruction Manual for a full discussion of how the instrument responds to in terface messages 13 DEG 5105 PFG 5505 Instrument Interfacing Guide Sample Utility Program BASICA 10 20 30 30 50 50 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 14 ERR HR IRE KR III I KARA IIHR UA IRIS Li Litri iii RARA RARA ARA IRRRARARRRRR PEG 5105 5505 PULSE OUTPUT UTILITY PROGRAM V 1 0 E e e e He e Re Fe Re ee RAH Fe He R REE HER KK KK KK EKER RRREREER RE RARA AA RR D t r PWIDTH BY BRUCE VIRELL MPO MARKETING 11 28 88 COPYRIGHT C 1988 TEKTRONIX INC ALL RIGHTS RESERVED THIS SO
10. 5 respond in exact ly the same fashion For example when queried for instrument identification e the PFG 5505 responds with PFG 3 5108 Se Description The ON argument causes the function generator to use the signal applied to the AM IN connector to amplitude modulate the output signal The OFF argu ment disables amplitude modulation Returns the status of the amplitude modulation mode Response AM ON or AM OFF Sets peak to peak output voltage into 500 to the value stated by the argument Power on default set ting is 5 V The range is 10 mV to 9 99 If the argu ment is O only the OFFSET voltage is output Returns current output amplitude Response AMPL lt volts gt Selects dc output at the current value of the DC parameter or at the level specified by the optional ar gument The power on setting is 0 V Returns the current setting of the DC output function The range is 4 99 to 4 99 Vdc the response is in NR2 format Response DC lt volts gt Turns on and off the duty cycle mode and sets the duty cycle parameter When in duty cycle mode the width is changed to give the output pulse a constant duty cycle with changes in period Entering a new gt width parameter via GPIB command or front pa el button removes the instrument from duty cycle mode Returns duty cycle setting Response is DCYCLE lt duty cycle gt or DCYCLE 0 duty cycle mode off Sets the delay time from the trigger poi
11. ERAK R R KRR RAMA RAR PRINT SYSTEM ERROR ERR IF ERR 53 THEN 2300 PRINT INCORRECT PATH RESUME IF ERL 1320 THEN RESUME 1360 IF ERL 1740 THEN PRINT FILE NOT FOUND FOR T 1 TO 999 NEXT T RESUME 1630 IF ERL 1710 THEN PRINT FILE NOT FOUND FOR T 1 TO 999 NEXT T RESUME 1630 RESUME SYSTEM PFG 5105 PFG 5505 Instrument Interfacing Guide g w D 5 Si Cc re BITS B4 B3 B2 BI ASCII amp GPIB E n 0 0 3 K NUMBERS SYMBOLS Enia 2 LOWER CASE GE Gi 60 18 18 7 140 0 180 8 ep p 9 0 0 0 e 20 e 80 Teo 96 70 H 112 1 41 z 17 f 141 H 164 17 0001 SOH DC A a q 1 A 33 31 61 a7 71 413 2 2 62 S 442 2 162 18 9010 STX DC 2 R 2 2 34 32 82 52 98 72 114 a 8 Se 8a g 8 GA o EN 19 143 al 163 19 0011 EX pes S c Ss a 3 5 19 5 43 sa 83 4 63 98 73 115 soc DCL d 44 4 64 20 104 124 203 144 4 164 20 0100 EOT pea 4 D T t 4 4114 20 24 38 34 52 44 88 54 84 GA 100 i 74 118 18 PPC 25 PPU 45 5 405 SI 125 21 145 Si 165 2f 0101 ENG a NAK o E e H u 5 25 85 65 101 78 117 q S Mi i 128 22 1148 8 168 22 o 1 1 0 ACK 6 Ev f v 8 8 e N na 70 158 88 368 102 76 118 7 47 7 187 1 7 1127 23 3147 7 1167 23 o 1 1 1 BEL 7 G W g Ww 7 E S 27 55 147 a7 Ss 103 177 119 110 GET e AN 50 24 119 24 8 70 24 H 1000 BS a n x Th X g Ma 28 72 58 88 Tea 104 78 gt 120 11 51 Do 9 Wa 23 151 9 317 25 1001 HT Y
12. EXIKERNERXNRARIA RA AA RRA RARA PRINT PRINT INPUT ENTER DESIRED PERIOD IE lt 2E 9 gt PERIODS IF PERIOD THEN 1260 IF LEFT PERIOD 1 lt THEN PRINT INCORRECT SYNTAX GOTO 1510 IF VAL PWIDTH lt 4E 08 OR VAL PWIDTH gt 0999 THEN PRINT INVALIO PARAMETER WIDTH MUST BE gt 40 nS AND lt 39 9 mS GOTO 1510 INPUT ENTER DESIRED DUTY CYCLE IE lt 50 gt DCYC IF DCYC THEN 1550 IF LEFT DCYC 1 lt THEN PRINT INCORRECT SYNTAX GOTO 1550 IF VAL DCYC lt 10 OR VAL DCYC gt 80 THEN PRINT INVALID PARAMETER DUTY CYCLE MUST BE gt 10 OR lt 80 GOTO 1550 PFG 5105 PFG 5505 Instrument Interfacing Guide 1590 PRINT ENTER THE DESIRED PULSE AMPLITUDE IN VOLTS IE lt 1 02 gt 1600 PRINT OR SELECT ONE OF THE FOLLOWING PREDEFINED LEVELS 1610 PRINT lt C gt FOR CMOS LEVELS 1620 PRINT lt E gt FOR ECL LEVELS 1630 PRINT lt T gt FOR TTL LEVELS 1640 INPUT AMPL 1650 IF AMPL THEN 1350 1860 IF AMPL C OR AMPL3 c THEN AMPL PRELEVEL CMOS 1670 IF AMPL E OR AMPL e THEN AMPL PRELEVEL ECL 1680 IF AMPL T OR AMPL t THEN AMPL PRELEVEL TTL 1690 IF LEFTS AMPL 1 lt OR RIGHTS AMPL 1 V OR RIGHTS AMPL 1 v THEN PRINT INCORRECT SYNTAX GOTO 1640 1700 IF VAL AMPL lt 01 OR VAL AMPL gt 9 99 THEN PRINT INVALID PARAMETER AMPLITUDE MUST BE gt 10mY OR lt 9 99Y GOTO 1640 i 1710 AMPLIT AMPL AMPL 1720 WRT DCYCLE DCYC PERIOD PERIOD AMPLIT QUT ON 1730
13. FTWARE IS PROVIDED ON AN AS IS BASIS WITHOUT WARRANTY OF ANY KIND AND IS NOT SUPPORTED BY TEKTRONIX THIS SOFTWARE MAY BE REPRODUCED IN WHOLE OR IN PART WITHOUT PRIOR PERMISSION COPIES MUST INCLUDE THE ABOVE COPY RIGHT AND WARRANTY NOTICE REQUIRED EQUIPMENT PFG5105 5505 TM5000 SERIES MAINFRAME GPIB CABLING PC REQUIREMENTS TEKTRONIX PEP 301 IBM PC XT AT PORTABLE PC OR COMPATIBLE IBM 5153 COLOR DISPLAY OR EQUIVALENT OR A COMPOSITE VIDEO MONITOR COLOR OR MONOCHROME S3FG100 GURU II HARDWARE SOFTWARE amp BASICA WITH IBM PC DOS 2 0 OR HIGHER OR MS DOS 2 02 OR HIGHER PROGRAM PURPOSE SELL FACILITATE PULSE OUTPUT WAVEFORMS VIA IEEE 488 SEL2 TALKER LISTENER PROGRAM WHICH SENDS INSTRUMENT COMMMANDS SEL3 QUITS BASICA PROGRAM AND RETURNS TO DOS OPERATING PROCEOURE CONNECT SYSTEM CONTROLLER VIA GPIB CABLE TO THE MAINFRAME POWER ON PFG5105 5505 MUST BE SET FOR FACTORY GPIB PRIMARY ADDRESS OF 8 CONNECT OSCILLOSCOPE TO PFG OUTPUT FOR WAVEFORM VIEWING VARIABLES IBINITI MEMORY LOCATION BASICA WORKSPACE SIZE BIB728 M SIZE BIB M IBINIT2 IBINITI 3 DEVICES TEKDEV1 ISCONF DRIVER FOR TEKTRONIX INSTRUMENTATION WRT COMMAND VARIABLE SENT TO PFG VIA IBWRT ROUTINE RD VALUE RETURNED FROM PFG REQUESTED VIA IBRD ROUTINE SPACES xx DIMMENSIONS STRING VARIABLE SIZE AMPL STRING VARIABLE NAME FOR AMPLITUDE VALUE STRING VARIABLE NAME FOR PULSE WIDTH VALUE PERIOD STRING VARIABLE NAME FOR PERIOD VA
14. HH HR HK RIKI KE TR RR RE iii ei iii ER ERERE 690 EXAARARARA RARA ARA RRA DEG SYSTEM IN IT TAL 1 ZE RARARRARAA A RARRARA RARA 7 00 1K HK RE RE ARE EE RE RE DET RRA RARA RAR RAARIAARER RR RR ERE KEKE KERERRERER EER EERE E REE 710 DEVICES TEKDEVI SELECT TEKDEVI GURU DRIVER 720 CALL IBFINO DEVICES 8D 730 V 8 PFG5105 ADDRESS 740 CALL IBPAD B0 V SET TEKDEVI ADORESS TO 8 750 GOSUB 2020 CHECK FOR GPIB ERROR 760 10 GPIBO SET GPIB TO BOARD LEVEL 770 CALL IBFIND 10 GP 780 CALL IBCLR 80 INTERFACE CLEAR 790 GOSUB 2020 CHECK FOR GPIB ERROR 800 WRT INIT INIT COMMAND 810 CALL IBWRT 80 WRT INITALIZE PFG 820 GOSUB 2020 CHECK FOR GPIB ERROR 830 COLOR 15 1 SET PC SCREEN COLOR 840 CLS CLEAR SCREEN 850 PR H k iert 860 PRI Wf e PEG 5105 5505 UTILITY PROGRAM V1 0 Perenne 870 PR 1 NT RAR e De He e FE RRR RRR RRR RAR RAK IRE AK HK KE RR AE FEDE RR EPE ETE SE RAR RRA RR RRA RARA AA RARA RANA ERE HN 880 KEY 1 OFF 0N KEY 1 GOSUB 1050 KEY 1 ON ENABLE KEY Fl 890 KEY 2 OFF 0N KEY 2 GOSUB 1810 KEY 2 ON ENABLE KEY F2 900 KEY 3 OFF 0N KEY 3 GOSUB 1020 KEY 3 ON ENABLE KEY F3 910 KEY 4 OFF 0N KEY 4 GOSUB 2340 KEY 4 ON ENABLE KEY F4 920 KEY 5 OFF KEY 6 OFF KEY 7 OFF DISABLE OTHER KEYS 930 KEY 8 OFF KEY 9 OFF KEY 10 OFF DISABLE OTHER KEYS gag tee Re MK RK KR ene ee RK SCREEN PROMPTS KR KR KKK REIKI KR ERE KERR ER RR REE ICE 950 LOCATE 7 27 CLEAR SCREEN amp LOCATE 960 LOCATE 7 27 PR
15. INT SELECTION MENU SCREEN PROMPTS 970 LOCATE 9 20 PRINT F1 PFG PULSE OUTPUT ROUTINE 980 LOCATE 11 20 PRINT F2 PFG TALKER LISTENER ROUTINE 990 LOCATE 13 20 PRINT F3 PFG INITIALIZE 1000 LOCATE 15 20 PRINT F4 QUIT amp RETURN TO DOS 1010 GOTO 880 1020 WRT INIT PFG INIT COMMAND 1030 CALL IBWRT BD WRT INITIALIZE PFG 1040 RETURN 1050 CLS CLEAR PC SCREEN 1060 ON ERROR GOTO 2250 CHECK SYSTEM ERROR 15 DEG 5105 PFG 5505 Instrument Interfacing Guide 1070 1080 1030 1100 1110 1120 1130 1140 1150 1160 1170 1180 1190 1200 1216 1220 1230 1240 1250 1260 1270 1280 1290 1300 1310 1320 1330 1340 1350 1360 1370 1380 1390 1400 1410 1420 1430 1440 1450 1460 1470 1480 1490 1500 1510 1520 1530 1540 1550 1560 1576 1586 16 PRINT RRA eRe RH RRR HR RARER RHR ERE KER EHR E LEALE RR RIE EEK RATE AERA EN PRIATIN A De e He Ae Hede e Ae e Ae Fe Ae e Te e 1e Fe PULSE OUTPUT PROGRAM VI 4 0 RHARAARARERA RRA RRA ARA AAA PRI NT Fe KR ht he RE A RE RE RE RE RE RE HE A RR AE TE kR RRI ARIER A AR R k A A R ERE EERE RREEREREREERERERER REE A RARA LOCATE 6 25 PRINT SELECTION MENU SCREEN PROMPTS LOCATE 8 25 PRINT 1 WIDTH PERIOD CONTROL LOCATE 10 25 PRINT 2 DUTY CYCLE PERIOD CONTROL LOCATE 12 25 PRINT 3 RETURN TO MAIN MENU LOCATE 14 25 INPUT SEL IF SEL 3 THEN 830 IF SEL THEN 1100 WRT FUNC SPULSE TRIG INT MODE CONT PFG SETUP FOR PULSE CALL IBWRT BD WRT
16. LSE or FUNC DPULSE Returns all PFG 5105 5505 commands This command will return identification information for the function generator in the form ID TEK lt model number gt lt Tek Codes and Format version gt lt firm ware version gt lt installed options gt ie TEK PFG5105 V81 1 F1 0 0PT02 Restores all settings to the power on state except stored settings DEG 5105 PFG 5505 Instrument Interfacing Guide Header MODE MODE NBURst NBURst OFFSet OFFSet OUTput OUT put Araument BURST CONT GATED TRIG SYNT lt cycles gt lt volts gt ON OFF FLOAT Table 2 Cont Description Selects the burst trigger mode When a trigger oc curs a burst of the programmed output signal is produced the number of cycles is determined by the NBURST parameter All trigger modes apply Selects the continuous output mode Trigger events are ignored CONT is the power on setting Selects the gated trigger mode Output is generated while the manual button is pushed or the trigger gate input is enabied H the gate signal on the trigger input is removed in the middle of a cycle the cycle is com pleted Sending lt GET gt will toggle the gate on or off Selects the triggered output mode One cycle of the output signal occurs for each trigger event Trigger sources include an external trigger internal trigger manual trigger or Group Execute Trigger lt GET gt over the
17. LUE DCYC STRING VARIABLE NAME FOR DUTY CYCLE VALUE V PFG 5105 5505 PRIMARY ADDRESS 8 B0 V PFG 5105 5505 PRIMARY ADDRESS SPR STATUS BYTE RETURNED VIA IBRSP ROUTINE IBSTA STATUS WORD RETURNED VIA EACH FUNCTION CALL IBERRX ERROR BIT RETURNED VIA EACH FUNCTION CALL GURU II CALL ROUTINES TBWRT SENDS COMMANDS TO PFG IBRD RETURNS PARAMETERS FROM PFG IBRSP PERFORMS SERIAL POLL OF PFG PFG 5105 PFG 5505 Instrument Interfacing Guide 540 IBPAD CONVERTS IBCONF ADDRESS TO 8 550 560 REFER TO GURU II DOCUMENTATION FOR A COMPLETE LISTING 570 gt 580 PE RE SRD DE DE ETO DR RE RE RICK e k TRE VE RE E RE DR E ERE ERIK EAE IAI RR RIKI ARK RKKK KERIK ATTRA K K KRE K RRR 590 GURU II PEP 301 CALL ROUTINE LINES 620 670 MUST BE INCLUDED IN PROGRAM 500 TRARERACARA KARA RAMKRZAM AIA LAAAAYTKARARAKKAKLA NATIA AA EA AAA RA A RR RARA RARA RARA RA 610 620 CLEAR 59455 BASICA workspace size bib728 m size bib m 630 IBINITI 59455 same 640 IBINIT2 IBINITi 3 650 BLOAD bib m IBINIT1 LOAD ASSEBMLY LANGUAGE ROUTINES TO IBINIT1 660 CALL IBINITI IBFIND IBTRG IBCLR IBPCT IBSIC IBLOC IBPPC IBBNA IBONL IBRSC IBSRE IBRSV IBPAD IBSAD 18157 IBDMA IBEOS ISTMO IBEOT IBRDF IBWRTF IBTRAP 670 CALL IBINIT2 IBGTS IBCAC IBWAIT IBPOKE IBWRT IBWRTA IBCMD IBCMDA IBRD IBRDA IBSTOP IBRPP IBRSP IBDIAG IBXTRC IBRDI IBWRTI IBRDIA IBWRTIA IBSTA IBERR IBCNT 880 fH THE Te
18. MOS ECL gt lt rate gt lt units gt lt bufnum gt lt ON OFF gt ON OFF lt bufnum gt lt bufnum gt ALL Table 2 Cont Description Changes the period of the output waveform It is an alias for the FREQuency parameter Power on defauit setting is 1 ms Returns the period value set by the period parameter Response is PERIOD lt period gt Sets the amplitude and offset for an output of the fol lowing levels 1 TTL 0 to 3 V 2 CMOS 0 to 4 99 V 3 ECL 0 8 to 1 8 V Amplitude and offset can then be modified to make changes from the pre defined leveis Sets the internal trigger interval This trigger is used in a number of operations including internal trigger and sweep rate Default units S seconds Units can be S MS or US The power on setting is 10 ms Returns the current internal trigger interval Response RATE lt rate gt Units are returned as S or H based on the units of the last command sent Sets the PFG 5105 5505 to the settings stored in the front panel buffer specified by the argument except that the ROS DT and USER settings remain un changed Argument options are 0 to 99 location 0 contains the INIT settings this location cannot be changed Locks or unlocks the frequency range When RNG LCK ON is sent the frequency is locked to the current range Only RNGLCK OFF releases the fre quency lock Returns the RNGLCK status Response RNGLCK ON or
19. ONT NBURST 2 OFFSET DV OUTPUT OFF PERIOD 1 ms RATE 10 us RNGLCK OFF RQS ON SWEEP OFF TRIG MAN USEREQ OFF WIDTH 0 5 ms Power on SRQ The SRQ line on the GPIB is also asserted unless the GPIB address is set to 31 ignore GPIB commands if the function generator is polled by the controller the status byte returned will be 0100 0001 65 decimal power on SRQ Copyright 1988 by Tektronix Inc Beaverton Oregon All rights reserved 2 a PFG 5105 PFG 5505 Instrument Interfacing Guide PFG 5105 5505 Command Messages Commands are provided to control PFG 5105 5505 settings cause PFG 5105 5505 actions or re quest information These commands are listed in Table 2 PFG 5105 5505 commands begin with a header a word or abbreviation that describes the function implemented The command may include one or more arguments which are delimited from the header by a space muitipieargumentssare delimited by a comma PFG 5105 5505 commands can be combined in a message by separating the com y atea AR EE sE SEO Header Argument ee i AM Sach AM e AMPLitude lt amplitude in volts gt AMPL DC lt volts gt DC DCYCLE lt duty cycle gt 0 DCYCLE DELAY lt delay gt lt units gt DELAY Table 2 mands with the message unit delimiter semicolon Either upper or lower case ASCII characters are accepted NOTE For ali GPIB operations and commands the PFG 5105 and the PFG 550
20. S SEND COMMAND GOSUB 2020 CHECK GPIB ERROR IF SEL 2 THEN 1490 PRINT PRINT INPUT ENTER PULSE WIDTH IN SECONDS IE lt 40E 9 gt PWIDTHS IF PWIDTH THEN 1230 IF VAL PWIDTH lt 4E 08 OR VAL PWIDTHS gt 0999 THEN PRINT INVALID PARAMETER WIDTH MUST BE gt 40 nS AND lt 99 9 m GOTO 1230 INPUT ENTER PERIOD IN SECONDS IE lt 200E 9 gt PERIOD IF PERIOD THEN 1260 IF VAL PERIOD lt 8 300001 08 OR VAL PERIOD gt 83 THEN PRINT INVALID PARAMETER PERIOD MUST BE gt 83 nS OR lt 83 S G0TO 1260 IF VAL PWIDTHS gt 9 VAL PERIODS THEN PRINT INVALID PARAMETERS WIDTH gt 9 PERIOD GOTO 1220 PRINT ENTER THE DESIRED PULSE AMPLITUDE IN VOLTS IE lt 1 02 gt PRINT OR SELECT ONE OF THE FOLLOWING PREDEFINED LEVELS PRINT lt C gt FOR CMOS LEVELS PRINT lt E gt FOR ECL LEVELS PRINT lt T gt FOR TTL LEVELS INPUT AMPL IF AMPL THEN 1350 IF AMPL C OR AMPL c THEN AMPL PRELEVEL CMOS IF AMPL E OR AMPL e THEN AMPL PRELEVEL ECL IF AMPL T OR AMPL t THEN AMPL PRELEVEL TTL IF LEFT AMPL 1 lt OR RIGHTS AMPLS 1 Y OR RIGHTS AMPLS 1 v THEN PRINTINCORRECT SYNTAX GOTO 1350 AMPLITS AMPL AMPL WRT WIDTH PWIDTH PERIOD PERIOD AMPLITS 0UT ON PRINT PRINT COMMANDS SENT PRINT CALL IBWRT BD WRT PFG PULSE COMMANDS GOSUB 2020 INPUT lt ENTER gt RETURN TO MENU A GOTO 840 END CAMARA RARA A AAA ARA RARA RR DUTY CYCLE ROUTINE R
21. THEN PRINT device not installed use IBCONF then reboot 2050 IF IBSTAX gt 0 AND BD gt 0 AND ISSTAX lt amp H4000 AND IBERR lt gt 6 THEN RETURN no error to report 2060 IF IBSTA gt O AND IBSTAZ gt 4H4000 THEN PRINT timeout l 2070 IF IBERR 8 THEN PRINT timeout 2080 PRINT GPIB error IBERR 2090 IF IBERR 0 THEN PRINT DOS error is device installed 2100 IF IBERR 1 THEN PRINT function requires GPIB PC to be CIC 2110 IF IBERR 2 THEN PRINT no listner on write function 17 DEG 5105 PFG 5505 Instrument Interfacing Guide 2120 2130 2140 2150 2160 2170 2180 2190 2200 2210 2220 2230 2240 2250 2260 2270 2280 2290 2300 2310 2320 2330 2340 18 IF IF IF IF IF IF IF IF IF IF iF IF IBERR 3 THEN PRINT IBERR 4 THEN PRINT IBERR 5 THEN PRINT IBERR 8 THEN PRINT IBERR 7 THEN PRINT IBERR 10 THEN IBERR 11 THEN IBERRA 12 THEN IBERR 14 THEN IBERRA 15 THEN IBERRA 16 THEN PRINT PRINT PRINT PRINT PRINT PRINT GPIB PC not addressed correctly invalid argument to function cal GPIB PC not system controller as required 1 0 operation aborted non existant GPIB PC board 1 0 started before previous operation completed no capability for operation file system error command error during device cal serial poli status byte lost SRQ stuck in on position HELP THEN INPUT enter to continue A8 RETURN PLATEA EE RARA R SYSTEM ERROR HANDLER kekk kekk kR K
22. WRT FUNC SQUARE FREQ 6 7 0UTON 210 CALL IBWRT 80 WRT 4041 180 PRINT 8 FUNCT SQUARE FREQ 6 7E 6 QUT ON PFG 5105 PFG 5505 Instrument Interfacing Guide Tabie 3 DEMO SETUPS SETUPS PARAMETER FUNCTION PULSE SWEEP i DEMO RECALL FREQ RATE AMPLI OFFSET NBURST FUNCTION WIDTH DELAY START STOP TRIG MODE OUT Basic Sinewave __ 90 ret teeter tT Tt J INT CONT ON a las 1 MHz 100 us ul ov do iw TI INT BURST ON 8 ae LIT 10 us int TRIG ON n eee Ce TETIN A 3 pel 0 js INL TRIG ON ima liv iv __r_____ INT CONT ON o Nee 10 KHZ i Fast Sweep NT CONT ON dl A L SE i 100 KHz e 10 MHz i Setups Requiring External Signal Source VCO FM 97___ 10 MHZ ee NT CONT FM ON Delayed Puise 98 8 oes CA E TRIG ON Amplitude Modulation 99 1 Mhz av ov Ay CONT FM ON 1 Demo setups loaded by pressing SPC t ama ENTER 2 1 28 seconds per sweep 3 Press RUN Togo 4 5 12 ms per sweep 5 A 0 5 voit input at the VCO FM IN connector affects a 10 idiz 12 MHz frequency range For VCO mode RANGE LOCK accessed thru SPCL 260 is turned OFF 8 With 1 msec delay extemal trigger TTL levels rate ta TRIG IN connector should not exceed about 800 kHz 7 A 3 voit pp 2 5 Y to 2 5 Y input to the AM IN connector effects 100 modulation output ranges from O V to 2 Y A useful variation assigns the PFG 5105 5505 address to a variable and inserts that variable i
23. Width out of range 281 Delay out of range 282 Pulse mode Width delay gt 0 9 x period 283 Pulse mode Period width delay lt 40 ns 284 Double pulse Delay lt width 285 Double pulse Delay lt width Ni 286 Synthesizer illegal data 290 INTERNAL ERRORS 300 SRQ byte 99 decimal Save RAM failure 340 Synthesizer out of lock 350 11 DEG 5105 PFG 5505 Instrument Interfacing Guide Table 5 Cont BUS ERROR CODES NORMAL CONDITIONS Bus Response Description Response to Serial to EVENT Poll SYSTEM EVENTS 400 Power on 401 65 Operation Complete 402 66 User Request 403 67 INTERNAL WARNING 600 Low battery condition 650 Ouput overload 660 STORED BUFFER ERRORS 800 801 This error is returned if some error exists in 899 a binary block packet used in sending Bi nary Block data to a stored settings buffer The buffer number at which the error occurs is equal to the error number minus 800 Front Panel Error Codes The following error codes are shown in the instru ment display window Error Description 010 Incorrect syntax 011 Increment step error 012 Increment limit 013 Decrement limitt 014 increment decrement error 015 SPCL Function Mode does not exist 016 Mode conflict 020 Not implemented 204 Settings conflict 205 Out of range 250 AMPL OFST conflict 255 illegal settings 261 Sweep operation error 262 Synthesizer not installed 271 RATE out of range 273 FREQ out of range 274 AMPL ou
24. are provided in the PFG 5105 5505 to inform the controller of asynchronous events such as command errors syntax errors or in strument events The status bytes returned in re sponse to an error query ERR or EVENT are shown in Table 3 The error query obtains more detail in the case of abnormal events For instance in the case of a command error was it a problem with a header argument or delimiter You can find out from the error code The error messages defined in Table 5 are re turned as arguments to the ERR or EVENT query Table 5 BUS ERROR CODES ABNORMAL CONDITIONS Bus Response Description to ERR NOTHING TO REPORT 0 COMMAND ERRORS 100 SRQ byte 97 decimal Command header error 101 Header delimiter error 102 Command argument error 103 Argument Delimiter Error 104 Missing argument 106 invalid message unit delimiter 107 Checksum error 108 Bytecount error 109 EXECUTION ERRORS 200 SRQ byte 98 decimal Command not executabie in local 201 Settings lost due to rtl 202 Output buffer full 203 Settings conflict 204 Argument out of range 205 lt GET gt ignored 206 AMPL OFST conflict 250 Bad set buffer 255 Sweep operation error 261 Synthesizer option not installed 262 Puise error 263 NBURST count out of range 270 Rate out of range 271 Frequency out of range 273 Amplitude out of range 274 Offset out of range 275 Sweep Start frequency out of range 276 Sweep Stop frequency out of range 277 DC out of range 280
25. de pendent message Ali the statements shown in the table send the same standard Tektronix Codes amp Formats message RQS ON that enables SQR inter rupts All send the message to an instrument with primary address 5 The difference lies in the syntax of the statement for a particular controller 4041 BASIC HP 85 BASIC Getting PFG 5105 5505 Settings Information PFG 5105 5505 queries include a as the last character of the command such as SET FREQ or ID and prepare the instrument for data output but do not start such output The PFG 5105 5505 waits until it sees its talk address to begin sending the requested date This is accomplished by the INPUT statement DEG 5105 PFG 5505 Instrument Interfacing Guide PEP 301 290 WRT FUNC 300 CALL IBWRT BD WRT 310 RD SPACE 250 320 CALL IBRD BD FNTIONS 4041 290 INPUT 8 PROMPT FUNC FNCTIONS All instrument settings can be obtained in one message Just dimension a string large enough 200 characters and input the settings string PEP 301 330 SETTINS SPACES 250 340 WRT SET 350 CALL IBWRT BD WRT 360 CALL IBRD B0 SETTING 370 PRINT SETTINGS 4041 330 DIM SETTING TO 250 340 INPUT 8 PROMPT SET SETTING You can restore the settings you input from the PFG 5105 5505 by sending back the settings string PEP 301 380 CALL IBWRT 80 SETTING 4041 340 PRINT 7 SETTING Using PFG 5105 5505 Interrupts Programmable interrupts
26. ewlett Packard con trollers In the latter position the PFG 5105 5505 still recognizes EO as a terminator and transmits EO concurrently with the LF character to terminate a message Programming the PFG 5105 5505 PFG 5105 5505 Power On Self Test When powered on the PFG 5105 5505 microprocessor performs a diagnostic routine self test to check the functionality of the ROM and RAM if no ROM or RAM error is found the microproces sor goes on to check the functionality of the other instrument hardware If a ROM or RAM error is found an error code is displayed in the front panel display The function generator will not respond to input from the front panel or the GPIB interface Internal errors detected after the ROM and RAM tests have passed will be reported to both the front panel and the GPIB The function generator will respond to input and attempt to function in spite of the error An error code may be removed from the display by pressing the INST ID key by starting a numeric entry by incrementing the selected paramete by pressing the clear key or by a transition into the remote state REMS Power on Settings When the self test is finished the function generator enters the local state LOCS with default settings as shown in Table 1 Tabie 1 POWER ON DEFAULT SETTINGS AM OFF AMPLITUDE 5V DC OV DCYCLE 0 DELAY 0 DT OFF FM OFF FRQLCK ON FRQSTART 1 Hz FRQSTOP 1200 Hz FREQUENCY 1 kHz FUNCTION SINE MODE C
27. i y 8 8 M 43 zi E 89 199 108 79 121 12 10 Ea 152 10 172 26 1010 LF SUB J 2 j A e 2 4A Ta P so lea 108 7A 122 13 113 27 1153 tf 173 27 1011 VT ESC a K B 11 27 128 43 136 58 107 178 123 14 54 12 pa 134 12 RS 28 Ar 1100 ab ad o 12 110 28 Ta 44 isc 8150 g2 sc 108 70 124 15 55 75 115 195 155 19 175 29 11001 es M al D 20 29 120 30 EA 50 93 160 109 7D 125 18 38 56 78 2 e 30 fisa 1e Na 30 1110 SO RS N gt Mao ME 48 3E 62 146 2 z 94 165 110 7E 126 Q ni O n 17 7 15 77 UNL 4117 a MOS 4 SI US EA e 15 tF 31 2F OF 89 j4F ADDRESSED UNIVERSAL LISTEN COMMANDOS COMMANDS ADORESSES KEY octal 25 PPU GPIB code NAK ASCH character hex 15 21 decimal TEKTRONIX STD 082 5435 00 4 SEP 80 COPYRIGHT 1979 1980 TEKTRONIX INC ALL RIGHTS RESERVED ASCII and IEEE GP1B Code Chart TALK ADDRESSES 137 UNT 3157 15 177 DEL O RUBOUT 5 95 16F ttt 7F 127 OR COMMANDS PPE PPO i on some keyboards or systems Tektronix COMAST TED TO EELER REF ANSI STD X3 4 1977 IEEE STD 488 1978 iSO STD 646 1973 SECONDARY ADDRESSES 1a PFG 5105 PFG 5505 Instrument interfacing Guide TEKTRONIX INSTRUMENTATION SOFTWARE LIBRARY Utility Software is available from Tektronix Inc for TM 5000 instruments This software consists of a set of subroutines and subprograms that perform com mon instrument functions over the GPIB such as data acq
28. ication Software is available see Tekware Catalog 49W 6829 The Library Catalog provides abstracts of the avail able software Programs are available as ready to load media or as listings see Catalog For a copy of the latest catalog contact your local Tektronix Field Office or representative and ask for the Tek tronix Instrumentation Software Library Catalog If you wish you can contact the Library directly as follows Tektronix Software Application Library Tektronix Inc 02 382 P O Box 500 Beaverton OR 97077 Software Limited Warranty Tektronix warrants that the media tapes disks ROMs etc on which Software Products are fur nished and the encoding of the programs on the med a will be free from defects in materials and workmanship for a period of three 3 months from the date of shipment If any such medium or encod ing proves defective during the warranty period Tektronix will provide a replacement in exchange for the defective medium Except as to the media on which Software Products are furnished Software Products are provided as is without warranty of any kind either expressed or implied Tektronix does not warrant that the functions contained in the programs will meet Customer s requirements or that the opera tions of the programs will be uninterrupted or error free In order to obtain service under this warranty Customer must notify Tektronix of the defect before the expiration of the war
29. n call 1650 IF IBERR 5 THEN PRINT GPI8 PC not system controller as required 1660 IF IBERRX 6 THEN PRINT I O operation aborted 1670 IF IBERRZ 7 THEN PRINT non existent GPIB PC board 1680 IF IBERR 10 THEN PRINT 1 0 started before previous operation completed 1690 IF IBERR 11 THEN PRINT no capability for operation 1700 IF IBERR 12 THEN PRINT file system error 1710 IF IBERR 14 THEN PRINT command error during device call 1720 IF IBERR 15 THEN PRINT serial poll status byte lost 1730 IF IBERR 16 THEN PRINT SRQ stuck in on position 1740 INPUT ENTER TO CONTINUE A 1750 RETURN DEG 5105 PFG 5505 Instrument Interfacing Guide SO 4041 120 On sra then gosub dopoll 130 Enable srq 140 150 660 670 680 i 630 Stop 700 Dopoll poll stabyt addr 8 710 Input addr prompt ERR errnum 720 Print STATUS stabyt AODRESS addr ERROR errnum 730 Resume PFG 5105 5505 Response to Interface Messages The following program sequences show various in terface messages transmitted to the PFG 5105 5505 PEP 301 120 PFG 5105 5505 PRIMARY ADDRESS 8 130 3 140 BD GP1B0 150 CALL IBFIND 80 80 160 ID TEKDEVI 170 CALL IBFIND 10 DEV 180 V 8 190 CALL IBPAD DEV V CHANGE ADDRESS TO 8 200 RETURN 210 CMD CHR V 32 SEND LISTEN ADDRESS MLA 220 CALL IBCMD 8D CMD 230 RETURN 240 CMOS CHR UNL SEND UNLISTEN UNL 250 CALL ISCMD 80
30. n the print statement in place of the number for the ad dress This works with either the PEP 301 or 4041 and allows you to change the program to work with the PFG 5105 5505 set to other addresses by chang ing only the statement that assigns the variable PEP 301 200 DEVICES TEKDEV1 210 CALL IBFIND DEVICE 8D 220 V 8 230 CALL IBPAD BD V 4041 200 PFG 8 210 PRINT APG FUNCT SQUARE FREQ 6 7 6 0UT ON Here s how to use the 4041 OPEN statement to allow such flexibility with a logical unit LU number instead of available for the PFG 5105 5505 address 230 OPEN 100 GPIB PRI 8 240 PRINT 100 FUNCT SQUARE FREQ 6 7E 6 0UT ON The PFG 5105 5505 command message inside the guote marks is the same for all of the above ex amples The rest of each example varies to match the statement syntax designed into each controller as shown in Table 4 This suggests that once you un derstand your controllers input output statements it s just a matter of plugging in the PFG 5105 5505 commands you need 10 Table 4 Controller Print Output Statements CONTROLLER STATEMENT PEP 301 BASIC WRT RQS CALL IBWRT BD WRTS PRINT 5 RQS ON OUTPUT 705 RQS ON FLUKE 1720A BASIC PRINT 5 RQS ON HP 9826 BASIC OUTPUT 705 RQS ON A message to a GPIB device is contained within the controllers GPIB output statement The state ment is composed of three parts the keyword the address or logical unit number and the device
31. nt to the first pulse if the instrument is in single pulse mode or sets the delay time between the first pulse and the second pulse if the instrument is in double pulse mode If no time unit is specified the default unit Svar Ss seconds The power on default is 0 seconds The range of delay time is 40 ns to 99 9 ms Response is DELAY lt delay gt ran sec il Returns the value of the delay parameter in seconds PFEG 5105 PFG 5505 Instrument Interfacing Guide Header Argument DiSPlay lt parameter gt DISPlay DT TRIG GATE SET OFF DT ERRor or EVENT ERRM FM lt ON OFF gt FM Table 2 Cont Description Changes the display window to show the parameter specified in the argument and its current value Par ameters FREQuency AMPLitude OFFSet WIDth FROSTART DELAY FRQSTOP NBURst or RATE Returns the parameter that is currently shown in the display window Response FREQ AMPL OFFS WID FRQSTART DELAY FROSTOP NBUR or RATE Triggers the function generator on receipt of lt GET gt interface message to output a one cycle waveform if in TRIG mode or a burst of cycles if in BURST mode Toggles the gate setting on or off on receipt of lt GET gt when in GATE mode Can be overridden by an external gate This is a software gate Causes the function generator to wait for lt GET gt before updating to new settings Allows the function generator to update its settings witho
32. on Sets output frequency to the argument value Power on default setting is 1 kHz Range is 0 12 Hz to 12 00 MHz The programmed value will round to the near est increment of the generator Default units Hz Units can be HZ Hertz KHZ MHZ S MS US or NS Frequency is specified in 4 digits in normal mode 5 digits in synthesizer mode Returns the current ouput frequency Response FREQ lt freq gt Enables internal software control of the output fre quency The power on setting is FRQLCK ON Disables internal software control of the output frequency Returns the status of the frequency lock mode Re sponse FROL ON or FRQL OFF Sets the sweep start frequency 4 digit resolution The start frequency must be greater than the stop fre quency Default units is Hz Power on default setting is 1 Hz Returns ine sweep siart frequency in Hz Response FRQSTART lt freq gt Sets the sweep stop frequency 4 digit resolution Power on default setting is 1200 Hz Returns the stop frequency in Hz Response FRQ STOP lt freq gt Selects the sine waveform for output This is the power on default setting Selects square waveform for output Selects triangle waveform for output Selects DC output at the current value of the DC parameter Selects single pulse mode Selects double pulse mode Returns the output waveform selection status Re sponse FUNC SINE FUNC SQUARE FUNC TRI ANGLE FUNC DC FUNC SPU
33. ranty period if Tektronix is unable to provide a replacement that is free from defects in materials and workmanship within a reas onable time thereafter Customer may terminate the license for the Software Product and return the Software Product with the associated materials for credit or refund Tektronix disclaims any implied warranties of mer chantability or fitness for a particular purpose Tek tronix responsibility to replace defective media or refund customer s payment is the sole and exclusive remedy provided to the customer for breach of this warranty Tektronix will not be liable for any indirect special incidental or consequential damages irre spective of whether Tektronix has advance notice of the possibility of such damages 21 Copyright 1988 by Tektronix inc Beaverton Oregon All rights reserved Printed in the United States of America Tha information presented in this document is provided for instructional purposes only Tektronix inc does not warrant or represent in any way the accuracy or completeness of any program herein or its fitness for a users particular pur pose Produced by the MPD Marketing Applications Support Group
34. s if the units parameter is omitted the default unit is seconds The range of the width time argument is 40 ns to 99 9 ms In duty cycle mode the existing width value is re placed by the value calculated by the duty cycle function If a width command is issued the instru ment exits duty cycle mode Returns the value of the width parameter in seconds The width value will be calculated by the duty cycle functon when the function generator is in duty cycle mode Response WID lt width gt SPCL Function Codes SPCL function codes are selected from the front panel of the PFG 5105 5505 To invoke a SPCL func tion enter the three digit SPCL code shown below on the key panel and press ENTER Use the keys in dicated in the SPCL function description to modify the function Press any FUNCTION key to exit the SPCL function mode and change the display SPCL Code Description 100 Displays the product type product version number and firmware version number 210 Selects the pulse generator period as a time or frequency entry Press an INCREMENT key to change the units selection 220 Changes the intensity and back lighting level INCREMENT up and down arrow keys increase or decrease character intensity ENTER key toggies between ON and OFF 230 Selects Frequency lock mode INCREMENT keys select ON or OFF 240 Allows changing the GPIB address INCRE MENT keys change the address 241 Allows changing the GPIB termination
35. t of range 275 OFFSET out of range 280 DC out of range 281 Width out of range 282 Delay out of range 12 Error Description 283 284 285 286 290 302 350 650 660 Pulse mode Width delay gt 0 9 x period Pulse mode Period width delay lt 40 ns Double pulse Delay lt width Double pulse Delay lt width NI Synt illegal parameter System error Synthesizer out of lock Low battery Output overload SRQ Handiers Here are typical SRQ handlers that alert you to a reporting instruments address status and error code with a message on your console The error code is helpful during debugging because it identifies the specific command or execution problem shouid one occur PEP 301 1540 1 ARKKAARRTIATRARAEKLAKLKAKARAAAE ERROR ROUTINE KRM KK RARA RA RCA AR ERRE 1550 IF IBSTAX gt 0 AND BD gt 0 AND IBSTAZ lt amp H4000 AND IBERR lt gt 6 THEN RETURN 1560 IF 80 lt 0 THEN PRINT device not installed use IBCONF then reboot 1570 IF IBSTAZ gt 0 AND IBSTA gt amp H4000 THEN PRINT timeout 1580 IF IBERR 6 THEN PRINT timeout 1590 PRINT gpib error IBERRZ 1600 IF IBERR 0 THEN PRINT OOS error device not installed 1610 IF IBERR 1 THEN PRINT function requires GPIB PC to be CIC 1620 IF IBERR 2 THEN PRINT no listener on write function 1630 IF IBERR 3 THEN PRINT GPI8 PC not addressed correctly 1640 IF IBERR 4 THEN PRINT invalid argument to functio
36. uisition front panel setup etc These rou tines are designed to be easily integrated into your application programs And since they are small and well documented the routines are easy to modify to suit your particular applications Refer to the current Tektronix Instrument Library Catalog for instrument options ROM packs and other required equipment The following Software Hardware was available when this Instrument Interfacing Guide was printed Other software may be available contact your local Tektronix Field Office for further information Tektronix Description Part No TM 5000 4041 Utility Software 062 6958 01 Tek EZ test 4041 360 K Floppy Disk S45F010 Tek EZ test PC 360 K Floppy Disk 45F030 GURU Il Users Resource Utility hardware software package for PC S3FG100 Ordering Utility Software U S Only Your local Tektronix Field Office has the current prices for software available from the Tektronix In strumentation Software Library Order Tektronix Instrumentation Software pro grams from Tektronix Central Parts Ordering by using the toll free number serving your area The fol lowing map identifies the geographical regions in the U S and the toll free number serving your area Tektronix Direct Purts Order Desk Toll Free Numbers 800 854 7580 o E a 800 225 4550 ep 000 323 1834 z in itinols 7 342 289 7580 800 432 3461 800 432 7150 20 Call the toll free number ser
37. ut waiting for lt GET gt Disables TRIG and GATE lt GET gt functions GET is disabled OT OFF is the power on setting Queries the Device Trigger function Response DT GATE DT SET DT TRIG or DT OFF Returns an error code matching the last SRQ that was polled with RQS ON or the oldest error in the error queue if RQS is OFF ERR 0 nothing to report is returned if there are no errors in the error queue Response ERR lt num gt or EVENT lt num gt de pending on which query was sent Returns the error code and associated text shown in the front panel window The returned code and test matches the last SRQ that was polled with RQS ON or the oldest error in the error queue if RQS is OFF ERR 0 is returned if there are no errors in the error queue Response lt error gt lt error message gt The ON argument causes the function generator to use the signal applied to the VCO FM IN connector to control the output frequency allowing frequency modulation The OFF argument disables frequency modulation Returns frequency modulation mode status Re sponse FM ON or FM OFF PFG 5105 PFG 5505 Instrument Interfacing Guide Header Argument FREQuency lt freq gt lt units gt FREQ FRQLck ON OFF FAQLck FRQSTART lt freq gt lt units gt FROSTART FRQSTOP lt treq gt lt units gt FRQSTOP FUNCtion SINE SQUare TRIAngle DC SPULSE DPULSE FUNC HELP iD INIT Table 2 Cont Descripti
38. ving your area and give the Customer Service Representative the Tek tronix nine digit part number and name of the soft ware package you want to order if you have any questions about the software call your local Tek tronix Field Office Ordering Utility Software Outside the U S Outside of the U S order Tektronix Instrumenta tion Software Library programs through your local Tektronix sales office or from the Tektronix Instru mentation Software Library order point serving your area Refer to the following list for the applicable library order point Africa Europe Middle East Contact local Tektronix sales office Australia _ Tektronix Instrumentation Software Library Tektronix Australia Pty Limited Sydney 80 Waterloo Road North Ryde N S W 2113 Canada Tektronix Instrumentation Software Library Tektronix Instrumentation Canada Ltd P O Box 6500 Barrie Ontario Canada LAM 4V3 Caribbean Latin America and Far East except Japan Tektronix Instrumentation Software Library Export Marketing Tekronix Inc P O Box 500 Beaverton OR 97077 U S A Japan Tektronix instrumentation Software Library Sony Tektronix Corporation 9 3 Kitashinagawa 5 Tokyo 141 Japan PFG 5105 PFG 5505 Instrument Interfacing Guide Program Library The Tektronix Instrumentation Software Library in cludes over 200 software program listings for a variety of Tektronix programmabie instruments and controllers Low cost Tekware Appl
Download Pdf Manuals
Related Search
Related Contents
mitsubishi electric Scanneur d`images fi-5900C Honey-Can-Do SHF-01567 Instructions / Assembly Setting up the 4247 Model Z03 Printer MANUEL DE L`UTILISATEUR UP User Manual Nero Vision - ftp.nero.com ASUS CPX20 User's Manual Panasonic KIT-UE12-JKE air conditioner Copyright © All rights reserved.
Failed to retrieve file