Home

LEC LW400, LW400A Series AWG Remote Programmers

image

Contents

1. Prompt for AWG address verify AWG is present FOUND 0 WHILE FOUND 0 GOSUB InitDevice WEND Initialize screen display selection menu prompt for selection and branch to function CALL InitScreen CONT 1 WHILE CONT 1 COLOR 11 LINE INPUT ENTER OPTION OPT OPTIONS UCASE OPT SELECT CASE OPTIONS CASE D CALL StoreWave AWG CASE U CALL RecallWave AWG CASE C CALL o yee CASE Q CALL SendQuery AWG CASE L CALL SetLocal AWG CASE A CALL IBLOC AWG GOSUB InitDevice WHILE FOUND 0 7 3 REMOTE PROGRAMMING EXAMPLES _ GOSUB InitDevice WEND CASE E CONT 0 CASE H CALL HelpScreen CALL InitScreen CASE ELSE COLOR 12 PRINT INVALID OPTION END SELECT COLOR 14 WEND CALL IBLOC AWG SYSTEM InitDevice Subroutine to prompt for GPIB address of AWG and verify that it is present COLOR 14 1 11 CLS PRINT LCGPIB PRINT COLOR 10 LINE INPUT ENTER GPIB ADDRESS OF LW4XX AWG ADD DEV DEV ADD AWG ILFIND DEVS IF AWG lt 0 THEN COLOR 12 PRINT COULD NOT FIND AWG AT ADDRESS ADD LINE INPUT CHECK ADDRESS SETTING AND CABLE THEN HIT ANY KEY X FOUND 0 ELSE CALL IBTMO AWG 10 CMD IDN STA ILWRT AWG CMDS 5 RD SPACE 100 STA ILRD AWG RD 100 IF STA AND amp H4000 THEN COLOR 12 PRINT COULD NOT FIND AWG AT ADDRESS ADD LINE INPUT CHECK ADDRESS SETTING AND CABLE THEN HIT ANY KEY X 7 4 REMO
2. The purchaser is responsible for transportation and insurance charges for the return of products to the servicing facility LeCroy will return all in warranty products with transportation prepaid This warranty is in lieu of all other warranties expressed or im plied including but not limited to any implied warranty of mer chantability fitness or adequacy for any particular purpose or use LeCroy shall not be liable for any special incidental or con sequential damages whether in contract or otherwise Answers to questions concerning installation calibration and use of LeCroy equipment are available from the Customer Service Dept 700 Chestnut Ridge Road Chestnut Ridge New York 10977 6499 U S A tel 914 578 6020 1 1 GENERAL INFORMATION MAINTENANCE AGREEMENTS UPDATED MANUALS SERVICE PROCEDURE LeCroy offers a selection of customer support services Mainte nance agreements provide extended warranty and allow the customer to budget maintenance costs after the initial one year warranty has expired Other services such as installation training enhancements and on site repair are available through specific Supplemental Support Agreements LeCroy is committed to providing state of the art instrumentation and is continually refining and improving the performance of its products While physical modifications can be implemented quite rapidly the corrected documentation frequently requires more time to produce Co
3. Arguments None 6 147 Remote Commands WAVE MARKer EDGE TIME Purpose Command Query Response Arguments Sets the time where the next edge of a marker may be inserted In order for this field to have affect WAVE MARKer TYPE must be set to EDGE WAVE MARKer EDGE TIME lt numeric_value gt WAVE MARKer EDGE TIME lt numeric_value gt lt numeric_value gt time in seconds WAVE MARKer EDGE STATe Purpose Command Query Response Arguments 6 148 Set marker state at MARKer EDGE TIME This defines a new edge Max edges 128 WAVE MARKer EDGE lt character_data gt WAVE MARKer EDGE lt character_data gt lt character_data gt LOW or HIGH BREBRBRBESBSBEBHREBBE SE FSB WAVE MARKer LEVel Purpose Sets the voltage levels of the marker The marker can be either TTL or ECL Command WAVE MARKer LEVel lt character_data gt Query WAVE MARKer LEVel Response lt character_data gt TTL or ECL Arguments lt character_data gt TTL or ECL WAVE MARKer TYPE Purpose Selects either a clock marker or an edge marker A clock marker allows a frequency of the clock to be defined and where the first edge is located The edge marker allows edges to be set at specific times in the waveform Command WAVE MARKer TYPE lt character_data gt Query WAVE MARKer TYPE Response lt character_data gt EDGE or CLOCK Arguments lt character_data gt EDGE or CLOCK 6 149 WAVE MATH COUPlin
4. When the queue is cleared empty the corresponding bit in the Status Byte Register will be cleared Conversely when the queue contains an error code the corresponding bit in the Status Byte Register will be set IEEE 488 2 allows two ways to record an event and the WaveStation registers are implemented as both condition and event registers to provide full functionality The names of the condition and event registers are the same Only the commands to query the event and condition registers differ Condition Registers are updated continually and are not cleared when read If a condition was true but is no longer true the corresponding bit in the condition register will be false The WaveStation has only two condition registers the Questionable Status Register and the Operational Status Register These two registers also function as event registers Whether the condition or event register is queried depends on the form of the query used Event Registers capture changes in conditions They are not cleared until they are read even if the condition which caused the event no longer exists All registers in the WaveStation function as event registers The Questionable Status Register and Operational Status Register function as both event and condition registers depending on how they are queried Each bit in an Event Register either summarizes an event register or reports a condition or event in the WaveStation A bit is set to true 1 when th
5. 400 MHz O to 2 5 ms 0 1 ns resolution 40 kHz 0 to 25 sec 1 us resolution See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe MMediate WAVE INSert SHAPe RAMP AMPLitude Purpose Command Query Response Arguments Notes 6 132 Sets the peak to peak amplitude of the ramp which will be inserted into the waveform WAVE INSert SHAPe RAMP AMPLitude lt numeric_value gt WAVE INSert SHAPe RAMP AMPLitude lt numeric_value gt Oto 10V See also WAVE INSert SHAPe SELect and WAVE INSen SHAPe lMMediate WAVE INSert SHAPe RAMP CYCLes Purpose Command Query Response Arguments Notes The number of cycles of the ramp that are inserted into the waveform WAVE INSert SHAPe RAMP CYCLes lt numeric_value gt WAVE INSert SHAPe RAMP CYCLes lt numeric_value gt 01 to 65536 See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe MMediate WAVE INSert SHAPe RAMP FREQuency Purpose Command Query Response Arguments Notes Sets the frequency of the ramp WAVE INSert SHAPe RAMP FREQuency lt numeric_value gt WAVE INSert SHAPe RAMP FREQuency lt numeric_value gt lt numeric_value gt limits depend on clock decade 400 MHz 400 Hz to 25 MHz 1 Hz resolution 40 kHz 0 04 Hz to 2 5 kHz 0 0001 Hz See also WAVE INSert SHAPe SELect and WAVE INSen SHAPe lMMediate 6 133 Remote Commands a WAVE INSert SHAPe RAMP INVert Purpose Command Query Response
6. Command WAVE CLOCK LIMit lt character_data gt Query WAVE CLOCKk LIMit Response lt character_data gt Arguments YES or NO YES Limit to internal filters NO Allow continuously variable clock Note This command applies to the LW400A series not the LW400 series WAVE CLOCk MAX Purpose When Limit Clock field is set to YES this command is used to select the clock decade in which the internal clock runs The choices are 40 kHz 400 kHz 4 MHz 40 MHz 400 MHz When the Limit Clock field is set to NO this is a query only command Command WAVE CLOCk MAXt lt numeric_value gt Query WAVE CLOCk MAX Response lt numeric_value gt Arguments lt numeric_value gt 40066 4086 4e6 400e3 40e3 Note This command applies to the LW400A series not the LW400 series 6 112 WAVE CUT COPY Purpose Copies the region between the right and left time cursors and store the data to the cut buffer All data under and between the time cursors is copied Command WAVE CUT COPY Query None Response None Arguments None WAVE CUT DELete Purpose Copies the data between the left and right time cursors to the cut buffer and deletes the data from the waveform All data under and between the time cursors is deleted Command WAVE CUT DELete Query None Response None Arguments None 6 113 Remote Commands WAVE CUT EXTRact Purpose Copies the value of the waveform minus the value of the baseline to the cut bu
7. 000000 28 44 49 46 20 28 56 45 52 53 69 6f 6e 20 31 39 000010 39 33 2e 30 20 53 43 4f 50 65 20 46 55 4c 4c 29 000020 20 49 44 45 4e 74 69 66 79 28 20 4e 41 4d 45 20 000030 22 4e 45 57 5f 57 41 56 45 22 20 50 52 4f 4a 20 000040 63 74 20 22 44 45 4d 4f 2e 50 52 4a 22 20 29 20 000050 45 4e 43 6f 64 65 28 20 46 4f 52 4d 61 74 20 49 000060 46 50 33 32 20 48 52 41 4e 47 45 20 30 2e 35 30 000070 30 30 30 30 20 4c 52 41 4e 47 45 20 2d 30 2e 35 000080 30 30 30 30 30 20 29 20 44 49 4d 65 6e 73 69 6f 000090 6e 20 3d 20 56 6f 6c 74 73 20 28 20 54 59 50 45 0000420 20 45 58 50 4c 69 63 69 74 53 49 5a 45 20 36 34 0000b0 20 55 4e 49 54 73 20 22 56 22 20 29 20 44 49 4d 0000c0 65 6e 73 69 6f 6e 20 3d 20 54 69 6d 65 20 28 20 000000 54 59 50 45 20 49 4d 50 4c 69 63 69 74 20 53 43 0000e0 41 4c 65 20 32 2e 35 65 2d 30 30 39 20 4f 46 46 0000f0 53 65 74 20 30 20 55 4e 49 54 73 20 22 73 22 20 000100 29 20 54 52 41 43 65 20 3d 20 43 75 72 73 6f 72 000110 73 5f 69 6e 63 6c 75 64 65 20 28 4c 41 42 45 4c 000120 20 54 69 6d 65 20 53 54 41 52 74 20 30 20 53 54 000130 4f 50 20 31 2e 35 39 39 65 2d 30 30 37 29 20 44 000140 41 54 41 20 3d 20 64 61 74 61 5f 61 72 72 61 79 000150 20 28 20 43 55 52 56 65 20 28 20 56 41 4c 75 65 000160 73 20 23 33 32 35 36 00 00 00 00 00 00 f0 be 00 000170 30 8d 24 00 00 00 bf 00 30 Od a5 00 00 00 3f 00 000180 c8 53 25 00 00 00 bf 00 30 Od a5 00 00 00 3f 00 000190 c8 53 25 00 00 00 bf 00 30 Od a5 00 00 00 3f 00 0001a0 c8 53 25 00 00 00 bf 00 30 Od a5 0
8. Arguments Notes 6 128 Sets the voltage of the non triggered level of the pulse WAVE INSert SHAPe PULSe BASE lt numeric_value gt WAVE INSert SHAPe PULSe BASE lt numeric_value gt lt numeric_value gt 5 to 5 V See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe MMediate Remote Commands WAVE INSert SHAPe PULSe CYCLes Purpose Sets the number of cycles that will be inserted into the waveform The duration of the inserted section will be CYCLes PERiod TDELay Command WAVE INSert SHAPe PULSe CYCLes lt numeric_value gt Query WAVE INSert SHAPe PULSe CYCLes Response lt numeric_value gt Arguments lt numeric_value gt 0 01 to 65536 Notes See also WAVE INSen SHAPe SELect and WAVE INSent SHAPe lMMediate 6 129 Remote Commands WAVE INSert SHAPe PULSe ETIMe Purpose Command Query Response Arguments Notes The 10 90 edge time of both the rising and falling edges of the pulse WAVE INSert SHAPe PULSe ETIMe lt numeric_value gt WAVE INSert SHAPe PULSe ETIMe lt numeric_value gt lt numeric_value gt limits depend on clock decade 400 MHz 5 ns to 510 ns 40 kHz 50 us to 5 1 ms The time to transition from base to top 0 to 100 will be approximately 100 80 x ETlMe or 1 25 x ETIMe As shown in the diagram below PULSe WIDth 1 25xETIMe must be lt PULSe PERiod or the pulse cannot be produced Vo zo aaa WIDTH PERIOD See also WAVE INSent
9. COLOR 13 Set trace color to violet PRINT AWG REPLY Print response header TMO 10 STA ILTMO AWG TMO NI488 2 function sets timeout to TMO seconds 7 10 returns the status word ibsta to the variable STA The response is read and displayed one character at a time using the National Instrument s GPIB read function ILRD This process continues until the AWG s output buffer is empty This is determined by using the serial poll function ILRSP to read the status byte The message available REMOTE PROGRAMMING EXAMPLES MAV bit bit 4 is tested to determine if the query response is complete REPLY SPACE 1 Dimension the response string REPLY as 1 character long GetReply STA ILRD AWG REPLY 1 NI488 2 function read string REPLY from device AWG and returns the status word ibsta IF REPLY CHR 10 THEN GOTO GetReply loop to GetReply if response is a line feed COLOR 14 Set trace color to yellow PRINT REPLY Build a response string by concatenating single characters until the query output buffer is em STA ILRSP AWG SPR NI488 2 function returns contents of device AWG s serial poll byte IF SPR AND 16 THEN GOTO GetReply If message available MAV bit is set in status byte get additional characters ELSE If no additional characters are available print a blank line and exit PRINT END IF END SUB Downloading A Waveform The selected waveform in the AWG ca
10. PRE Mbl ninia costs 6 115 WAVE DIG DURation C TIME D r aa a A A N Na 6 116 WAVE DIGIta DURation PONS liada 6 116 WV AY Be DIGIC ar E MAS e do ee bol 6 117 WAVE DIGItaLCUR sor PONES via 6 117 WAVE DIGA LEURSOF TIME ad 6 118 WAVE DIGital MODE de td ae 6 118 WAYE DIGI LMVAL UC oranan aine ET oo 6 119 WAVE DIGA SIVA a Deia da 6 119 WAVE DICISES VALUES is a 6 120 WAVE DIGI ALC il iii 6 120 WAVE IN Sert COR SOM isis ET EE dE pecas 6 121 WAVE INS OVER ml coin 6 122 WAVEINSCE WRAP dono 6 145 WAVE NS n MODE iiinn aaa E N ana 6 121 WAVE INS6t PAS Te COUN cnra tasas tala 6 122 WAVE INSert PAS Tel IMMediate Laia cd 6 123 WAVE NSen SCOPE DW Li e ea nes ono ed 6 124 WAY EVINSGrE SCOPE ADDRESS od 6 123 WAVE INSert SCOPE CON Troll A tec 6 124 WAVE INS rt SCOPE PRESO Era icicn 6 125 WAVE IN Set SCOPE SOUR Coi rodada 6 125 WAVE INSert SCOPE TYPE Se e ae OA acer ks 6 126 WAVE INSert SCOPe IM Mediate ici ac 6 126 BHREREBRBEERBEREHREHREEHEEREBE SE WAVE INSert SHAPE PUES TDEL aY 0 cba 6 131 WAVEVINSGHt SHAPG PULSE WIDTA 0 A ads 6 132 WAVE INSert SHAPe RAMP AMPLitude sscssssssesssssssssessttevssseveccesvcceccececessesscsececscersasenaeneness 6 132 WAVE TINSert SHAPe RAMP CYCLES ccsccsscocsosscssosavossoscccossssessnavsvsnsecccecseennssncsacescsvesescososoessbocesoossoeene 6 133 WAVE INSert SHAPe RAMP FREQuENCY ccssccscscsessessssssnesecccessscnssnccceseescessnsenestucsseesessscvessnscscsoacs 6 133 W
11. QUEStionable CONDition ENABle EVENt 3 22 Query the Operation Status Condition Register Enabie bits in the Operation Status Event Register that will be summarized in the Status Byte Register Query the contents of the Operation Status Event register Clear all status registers and clear all enable registers Sets enable registers to the same as power on conditions Query the Questionable Status Condition Register Enable bits in the Questionable Status Event Register that will be summarized in the Status Byte Register Query the Questionable Status Event Register 488 2 Common Commands CAL CLS ESE ESR IDN LRN OPC OPC PCB RST SRE STB TRG TST WAI In addition to the SCPI subsystems 488 2 mandatory are supported by the WaveStation Following is a brief listing of the standard 488 2 commands The 488 2 commands work in combination with the SCPI commands to provide full control of the WaveStation Performs a system calibration and returns a status code indicating if the calibration was successful 0 Calibration successful 1 Calibration failed Clears all status registers Enable bits in the Event Status Register Reads and clears the contents of the Event Status Register Identifies the instrument The response indicates the manufacturer the model the serial number and the software revision level Read the current instrument setup When overlapped operations
12. See also WAVE INSen SHAPe SELect and WAVE INSent SHAPe lMMediate WAVE INSert SHAPe SQUare TDELay Purpose Command Query Response Arguments Notes Sets the amount of time before the first edge of the square wave WAVE INSert SHAPe SQUare TDELay lt numeric_value gt WAVE INSert SHAPe SQUare TDELay lt numeric_value gt lt numeric_value gt TDELay adds time before the beginning of the first rising edge After that the number of 50 duty cycle pulses specified by SQUare CYCLes are inserted as specified by SQUare FREQuency etc See also WAVE INSent SHAPe SELect and WAVE INSen SHAPe lMMediate 6 141 Remote Commands WAVE INSert SHAPe TRiangle AMPLitude Purpose Command Query Response Arguments Notes Sets the peak to peak amplitude of the triangle wave WAVE INSert SHAPe TRlangle AMPLitude lt numeric_value gt WAVE iNSert SHAPe TRlangle AMPLitude lt numeric_value gt lt numeric_value gt 0 to 10 V 1 mV resolution See also WAVE INSent SHAPe SELect and WAVE INSert SHAPe lMMediate WAVE INSert SHAPe TRlangle CYCLes Purpose Command Query Response Arguments Notes 6 142 The number of cycles that will be inserted into the waveform by WAVE INSert SHAPe MMediate WAVE INSert SHAPe TRlangle CYCLes lt numeric_value gt WAVE INSert SHAPe TRlangle CYCLes lt numeric_value gt lt numeric_value gt 01 to 65536 01 resolution See also WAVE INSent SHAPe SEL
13. either 1 or 2 Sets the voltage of the base level of the square wave Sets the 10 90 edge time of both the rising and falling edges of the square wave Sets the frequency of the square wave Selects the sweep type either linear or log Sets the start frequency of the sweep Sets the stop frequency of the sweep Sets the sweep duration Turns the sweep on or off Sets the amount of time between the start of the waveform and the first edge of the square wave Useful in single trigger mode in continuous this time lowers the frequency Sets the peak to peak amplitude of the triangle wave in the specified channel s function generator either 1 or 2 Sets the frequency of the triangle wave Sets the median voltage of the triangle waveform Sets the start phase of the triangle wave Selects the sweep type either linear or log Sets the start frequency of the sweep Sets the stop frequency of the sweep Sets the sweep duration Turns the sweep on or off Turns the function generator on or off in the specified channel either 1 or 2 3 13 instrument Model and Subsystem Hierarchy EQUation Subsystem The equation subsystem is used to enter select save and recall equations which describe waveforms mathematically It is also used to calculate the waveform sample values based on the equation Overview of EQUation Commands EQUAation CALCulate DATA DEFine DURation LINE NEW OPEN SAVE 3 14
14. generator either 1 or 2 Command FGENerator SINE PHASe lt numeric_value gt Query FGENerator SINE PHASe Response lt numeric_value gt Arguments lt numeric_value gt 0 to 360 degrees Notes FGEN SINE PHASe and FGEN TRiangle PHASe are value coupled See also FGEN STATe and FGEN SELect FGENerator SINE SWEep SPACing Purpose Selects the sweep type either linear or log in the specified channel s function generator either 1 or 2 Command FGENerator SINE SWEep SPACing lt character_data gt Query FGENerator SINE SWEep SPACing Response lt character_data gt Arguments LiNear or LOG Notes See notes for FGEN PULSe SWEep SPACing See also FGEN STATe and FGEN SELect 6 51 Remote Commands FGENerator SINE SWEep STARt Purpose Command Query Response Arguments Notes Sets the start frequency of the sweep in the specified channel s function generator either 1 or 2 FGENerator SINE SWEep STARt lt numeric_value gt FGENerator SINE SWEep STARt lt numeric_value gt lt numeric_value gt 1 Hz to 100 MHz See notes for FGEN PULSe SWEep STAARt See also FGEN STATe and FGEN SELect FGENerator SINE SWEep STOP Purpose Command Query Response Arguments Notes 6 52 Sets the stop frequency of the sweep in the specified channel s function generator either 1 or 2 FGENerator SINE SWEep STOP lt numeric_value gt FGENerator SINE SWEep
15. one of 0 1 OFF ON O Turns the voltage cursors off 1 Turns the voltage cursors on OFF Turns the voltage cursors off ON Turns the voltage cursors on DISPlay WINDow TRACe GRATicule COLor Purpose Command Query Response Arguments 6 22 Set the display intensity for the grid DISPlay TRACe GRATicule COLor lt numeric_value gt DiSPlay TRACe GRATicule COLor lt numeric_value gt lt numeric_value gt Grid intensity in percentage 0 100 Default is 40 DISPlay WINDow TRACe GRATicule GRID STATe Purpose Command Query Response Arguments Notes Select or query the grid style The grid may be a full grid enabled no grid disable or set to a cross hair CHAir DISPlay TRACe GRATicule GRID lt character_data gt DISPlay TRACe GRATicule GRID lt character_data gt one of ON OFF CHAir CHAir Select a Cross Hair grid OFF Disable Grid ON Enable Grid SCPI defines this command as taking a Boolean argument Our implementation matches our menu controls but conflicts with SCPI in that 0 and 1 are not useable as arguments 6 23 Remote Commands _ DISPlay WINDow TRACe GRATicule TYPE Purpose Command Query Response Arguments Selects the type of grid to display The query form returns the currently selected grid type DISPlay TRACe GRATicule TYPE lt character_data gt DISPlay TRACe GRATicule TYPE lt character_data gt one of SINGle
16. 32 is returned STATus OPERation Or STATus OPERation CONDition Note If using the STATus OPERation command it is important to clear the register before using it since once it is set it will remain set until cleared Another method of polling is to poll the Status Byte Register with the STB command and enable Operation Status register to be reflected in the Status Byte Register bit 7 To use this method the Operation Status Enable bits must be set and then the Status Byte Register is polled The steps are as follows STATus PREset clear all status registers set all enable registers to 0 everything disabled STATus OPERation Enable 32 Enable Waiting for Trigger Bit CLS Clear all Registers STB Poll to check for bit 7 decimal 64 Note All registers should be cleared before starting the next operation but there is no need to re enable the Operation Register The Operation Register bit 5 decimal 32 will remain enabled until altered with the ENABle or PREset command The STB command may also show that other bits are set as well as bit 7 For example bit 6 will also be set because it summarizes all the other bits in the register It is possible to check only for bit 6 and then if bit 6 is set check for other bits of interest To check for a single bit in the register AND the STB results with the decimal value of the bit and test to see if the result is greater than 0 Hint In the C programming language this
17. 72 INITiate IMMediate Purpose Command Query Response Arguments This command is used to trigger the system INITiate the trigger system The INITiate command is equivalent to the 488 2 command TRG or the MANUAL button on the TRIGGER menu If the system is not in a triggered mode or not waiting for a trigger this command has no effect INITiate None None None MMEMory CATalog ALL Purpose Command Query Response Arguments Read out information about waveform sequence and equation files in the current project MMEMory CATalog MMEMory CATalog Each file is listed in an entry formatted as follows DEFAULT EQUATION 272 1993 08 03 07 49 lt 15 char name type of file size date time blank filled to in bytes 15 chars None 6 73 Remote Commands MMEMory CATalog EQUation Purpose Command Query Response Arguments Notes Read out directory information about equation files in the current project None MMEMory CATalog EQUation See MMEMory CATalog ALL None This is not the same as SCP MMEM CAT query MMEMory CATalog IMAGe Purpose Command Query Response Arguments Example 6 74 Read out directory information about the image files in the current project None MMEMory CATalog IMAGe 0filename type size date time None MMEMory CATalog IMAGe gets a directory listing of image files stored in the current project MMEMory CAT
18. DUAL SXY XY DUAL Select a dual grid display SINGle Select a single grid display SXY Select a single XY display XY Select a XY display DISPlay WINDow TRACe X SCALe CENTer Purpose Command Query Response Arguments Notes 6 24 Sets the time at the horizontal center of the grid Zoom functions zoom around the center of the grid DISPlay TRACe X CENTer lt numeric_value gt DISPlay TRACe X CENTer lt numeric_value gt lt numeric_value gt Sets the time at the center of the grid Os maximum waveform duration Maximum waveform duration depends on the clock decade and the amount of installed high speed memory Remote Commands DISPlay WINDow TRACe X SCALe PDIVision Purpose Command Query Response Arguments Sets the horizontal time per division of the grid DISPlay TRACe X PDIVision lt numeric_value gt DISPlay TRACe X PDIVision lt numeric_value gt lt numeric_value gt Horizontal time per divison 3ns maximum waveform duration 8 DISPlay WINDow TRACe X SCALe TCURsors Purpose Command Query Response Arguments To Cursors displays the portion of the waveform between the time cursors with the left cursor one division from the left edge of the grid and the right cursor one division from the right edge of the grid DISPlay TRACe X TCURsors None None None 6 25 Remote Commands DISPlay WINDow TRACe Y SCALe PDIVision Purpose C
19. No other command terminators are required Hardcopy Operation over GPIB Talk Only 2 2 The WaveStation enters this mode whenever the hardcopy destination is set to GPIB and the Hardcopy Execute soft key is pressed Talk only is a special GPIB mode where there is no controller allowed on the bus the WaveStation is the only talker and all connected devices must be listeners i e printers plotters must be in Listen Only mode Talk Listen IEEE 488 Standard Messages Serial Poll Function Receiving the Trigger Message Interface Clear lf hardcopy destination is GPIB and then sending the HCOPy command over the GPIB bus will cause the WaveStation to send the hardcopy output to the host computer as a response message In this mode the WaveStation will wait to be addressed to talk before sending the hardcopy data The host computer then has three options in generating the hardcopy 1 The host computer may read the data into internal memory and then send the data to a printer plotter 2 The host computer may send the HCOPy remote command and then address the printer to listener and the WaveStation to talk and read the data from the WaveStation As the data is read into the computer it is also printed to the printer which is a listener 3 The host computer may send the HCOPy remote command and then address the printer plotter to listen the WaveStation to talk and the controller to go into stand by mode waiting for E
20. STARL ccceeeeeeees a odas 6 52 FGENeratorft SINE SWEep STOP oooonnocncccccccnccononnnoos a cuts E EAA E 6 52 FGENerator SINE S WEep TIME ccros a a a eaea s ei iaei 6 53 FGEN r tor SINE SWEep STATe iii AA di 6 54 EGENerator SOUare AMPLIOS ii ica ii canes paces 6 55 FGENeratorit SOU are BA En a nie ea 6 55 FGENe tatort SQUar E TIME oda rie 6 56 FGENe rator SOQUare FREQUENCY wie isisecvszescaseusenohdcicuneasiicncsduaehneSeceysvasdeadececaseddsusibi ses ACEEA ica 6 57 FGENerator SQUare SWEep SPACIng cccsesssssecscsocscceceosssssscsscsecseesvsvsssnenssccnsesenensesscsessesseesenseseess 6 57 FGENerator SQUare SW Bep S TAR tiissicisvetsssscs viasesecesvstencecnnanoseesennescnsnsstverubsstessaodeiseasasesesesecsseewidedssantecs 6 58 FGENerator SQUare S W Eep S TOP criar ii e ico 6 58 FGENerator SQU are S W Hep TIME iio indicate 6 59 FGENerator SOU are S W Eep STA Te ccscscsiviciccaccecsnseivinn cssccuacusanenssaeseevcisesssoncvssedaesabwtedivecetcosvenadaceensbar 6 60 EGENerator SOU are TDEL AV ie 6 61 FGENer tortt TRianglesA MPL tide visi n AA dez 6 61 FGENerator FRiangle FREQUENCY osissa ieren aS NEEE AE EOE 6 62 FGENeratortt TRlangle OFES Cta ie aE aia aa a idia aaaea 6 62 FGENerator TRiangle PHASE A 6 63 FGENerator TRiangle S WEecp S PACO cocino ida ii AAA 6 63 FGENerator TRiangle SWEep STAR ici c0 cscccccncesccoscosssssensncsevesesnsttesabovsevenesoesteseseescsnnensbapstesbnnsacsvesens 6 64 FGE
21. STOP lt numeric_value gt lt numeric_value gt 1 Hz to 100 MHz See notes for FGEN PULSe SWEep STOP See also FGEN STATe and FGEN SELect FGENerator SINE SWEep TIME Purpose Sets the amount of time that it will take to go from SWEep STARt to SWEep STOP in the specified channel s function generator either 1 or 2 Command FGENerator SINE SWEep TIME lt numeric_value gt Query FGENerator SINE SWEep TIME Response lt numeric_value gt Arguments lt numeric_value gt 1 nsto1S Notes This command is value coupled to all FGEN any gt SWEep TIME commands for the specified channel See also FGEN STATe and FGENF SELect 6 53 Remote Commands FGENerator SINE SWEep STATe Purpose Command Query Response Arguments Notes 6 54 Turns the sweep on or off for the SINE function in the specified channel s function generator either 1 or 2 When sweep is off the parameters specified by FGENerator SINE FREQuency defines the output sine wave FGENerator SINE SWEep lt Boolean gt FGENerator SINE SWEep lt Boolean gt one of 0 1 OFF ON O Turn sweep off 1 Turn sweep on OFF Turn sweep off ON Turn sweep on See also FGEN STATe and FGEN SELect 7 Remote Commands FGENerator SQUare AMPLitude Purpose Sets the base to top amplitude of the square wave in the specified channel s function generator either 1 or 2 Command FGENerator SQUare AMPLitude lt
22. TRIGger BCOunt lt numeric_value gt lt numeric_value gt Burst count 1 4095 TRIGger SEQuence DELay Purpose Command Query Response Arguments Notes 6 104 Sets the delay from trigger to start of output of the waveform TRIGger DELay lt numeric_value gt TRIGger DELay lt numeric_value gt lt numeric_value gt Trigger delay Os max The maximum delay depends on the clock frequency It is over 4 29 billion clocks TRIGger SEQuence LEVel Purpose Command Query Response Arguments Notes Set or query the trigger level The trigger level is specified in volts TRIGger LEVel lt numeric_value gt TRIGger LEVel lt numeric_value gt lt numeric_value gt Trigger level 2 5 volts The resolution of the trigger level is 20 mV steps The value will be rounded to the nearest multiple of 20 mV TRiGger SEQuence MODE Purpose Command Query Response Arguments Set or query the trigger mode The trigger mode may set to CONTinuous SINGle BURSt or GATE Continuous will continually play the waveform regardless of trigger state Single will play one repetition of the waveform after a trigger is received Burst will play a burst count number of repetitions of the waveform after a trigger is received Gate will continuously play the waveform as long as the trigger input is true TRIGger MODE lt character_data gt TRIGger MODE lt character_data gt one of CONTin
23. an overlapped command See TIME DELay WAVE TIME MOVE Purpose Command Query Response Arguments Notes Moves the feature between the left and right time cursors The feature is extracted from the waveform using a baseline that is defined by a line drawn from the voltage point under the left cursor to the voltage point under the right cursor and then summed back into the waveform at the new time position The feature can be moved in 100 ps steps The argument is the new position of the time left cursor WAVE TIME MOVE lt numeric_value gt WAVE TIME MOVE lt numeric_value gt lt numeric_value gt seconds The destination of move must be such that the entire region can be summed back into the waveform Therefore the argument should be less than waveform duration minus time right time left Repeated moves use the original extracted data so the feature does not degrade with repeated moves This is an overlapped command See the note on WAVE TIME DELay 6 159 Remote Commands This page left intentionally blank 6 160 Introduction Setting Up The Environment For The QuickBASIC Programming GPIB Interface REMOTE PROGRAMMING E EXAMPLES This section of the manual provides programming examples based on a GPIB remote control program LWGPIB BAS written in Microsoft QuickBASIC ver 4 5 for 80X86 based personal computers This is a simple GPIB terminal program which i
24. and in the case of products returned to the factory a Return Authorization Number RAN The RAN may be obtained by contacting the Customer Service Department in New York tel 914 578 6020 Return shipments should be made prepaid LeCroy will not accept C O D or Collect Return Shipments Wherever possible the original shipping carton should be used If a substitute carton is used it should be rigid and be packed such that the product is surrounded with a minimum of four inches of excelsior or similar shock absorbing material In addressing the shipment it is important that the Return Authorization Number be displayed on the outside of the container to ensure its prompt routing to the proper department within LeCroy This manual explains the programming protocol for controlling the LW400 LW400A Series Arbitrary Waveform Generators including the LW420 LW 420A LW410 and LW410A from a host computer These models may also be reffered to as the WaveStiation Pupose of this manual Gain an overview of the instrument remote programming interface Familiarize yourself with the SCPI programming language as it applies to the LW400 LW 400A Provide detailed information on all of the WaveStation remote commands 1 3 GENERAL INFORMATION Section 1 Section 2 Section 3 Section 4 Section 5 Section 6 Section 7 1 4 The following sections are contained in this manual Introduction Gives a brief history of re
25. are complete place a t into the output queue When overlapped operations are complete assert the OPC bit in the EVENT STATUS register Identifies the address to pass control back to when the WaveStation is about to be given control of the GPIB bus Sets all settings I O and Scope setup to their default values Enable bits in the Service Request Enable mask Read the contents of the main status byte Same as the manual button on the Trigger menu Performs selftest and returns a status code indicating if selftest was successful O success WAIT for completion of overlapped operations before parsing more commands The operations under WAVE TIME and SEQ COMP LC are overlapped operations 3 23 Instrument Model and Subsystem Hierarch This page left intentionally blank Status Register Status Byte Operation Status Data Structures Register Model Queue Model STATUS amp ERROR REPORTING A set of status registers allows the user to quickly determine the AWG s internal processing status at any time The status registers as well as the status and event reporting system adhere to the SCPI recommendations The WaveStation continually updates its status to report the latest events conditions and settings Changes are summarized by designated bits in the Status Byte register STB The seventh bit RQS is asserted whenever any other bits in the STB are reported as set and their corresponding enable bits a
26. can be done with the following test If STB_result amp 32 RQS bit is set take action here else RQS bit is not set take action here In the QBASIC programming language the AND operation can be done with the following test IF STB_result AND 32 THEN RQS bit is set take action here ELSE RQS bit is not set take action here END IF Status amp Error Reporting GPIB Service Request 4 14 When the WaveStation reports a change in its condition it can asynchronously request service from the GPIB controller for example when a measurement is questionable The WaveStation requests service asynchronously by asserting the GPIB Service Request SRQ bus line To identify the source of the SRQ the controller serial polls the devices attached to the GPIB and reads the main Status Byte register STB of each device polled To read the STB the controller sends the device a Serial Poll bus command In return the device sends its STB The device whose STB has an asserted RQS bit seventh bit generated the SRQ Serial polling the device will clear the SRQ line but the serial poll must be followed by sending the CLS message to the device to fully clear the status that caused the SRQ to be generated The CLS command does not have to be sent immediately following the serial poll but MUST be sent before waiting for the next SRQ The commands to generate an SRQ when th
27. function generator either 1 or 2 FGENerator PULSe AMPLitude lt numeric_value gt FGENerator PULSe AMPLitude lt numeric_value gt lt numeric_value gt 10 to 10 V See also FGEN STATe and FGEN SELect Remote Commands FGENerator PULSe BASE Purpose Command Query Response Arguments Notes Sets the voltage of the non triggered level of the pulse in the specified channel s function generator either 1 or 2 FGENerator PULSe BASE lt numeric_value gt FGENerator PULSe BASE lt numeric_value gt lt numeric_value gt 5 V to 5 V FGEN PULSE BASE and FGEN SQUare BASE are value coupled See also FGEN STATe and FGEN SELect 6 35 Remote Commands FGENerator PULSe ETIMe Purpose Command Query Response Arguments Notes The 10 90 edge time of both the rising and falling edges of the pulse in the specified channel s function generator either 1 or 2 FGENerator PULSe ETIMe lt numeric_value gt FGENerator PULSe ETIMe lt numeric_value gt lt numeric_value gt 5 ns to 5 ms FGEN PULSe ETIME and FGEN SQUare ETIME are value coupled The time to transition from BASE to top 0 to 100 will be approximately 100 80 ETIME or 1 25 ETIME As shown in the diagram below PULSE WIDTH 1 25 ETIME must be lt FGENF PULSE PERiod or the pulse cannot be produced Cal PERIOD IFPULSE SWEEP STATe is ON remember that ETIME does not change with frequency At
28. gt may be from 5 to 5 See also FGEN STATe and FGEN SELect When FGEN1 STATE is on the multitone waveform is recalculated on the receipt of any FGEN1 MULT command FGENerator MULTitone TONE RAMPlitude Purpose Command Query Response Arguments Notes Set the relative amplitude of the current tone in the specified channel s function generator either 1 or 2 FGENerator MULTitone TONE RAMPlitude lt numeric_value gt FGENerator MULTitone TONE RAMPlitude lt numeric_value gt lt numeric_value gt may be from 1 000 to 1 000 See also FGEN STATe and FGEN SELect When FGEN1 STATE is on the multitone waveform is recalculated on the receipt of any FGEN1 MULT command 6 33 Remote Commands FGENerator MULTitone TONE FREQuency Purpose Command Query Response Arguments Notes Set the frequency of the current tone in the specified channel s function generator either 1 or 2 TONE is TONE1 to TONE10 FGENerator MULTitone TONE lt numeric_value gt FGENerator MULTitone TONE lt numeric_value gt enamorccvelaes Frequency 1Hz 100 MHz See also FGEN STATe and FGEN SELect When FGEN1 STATE is on the multitone waveform is recalculated on the receipt of any FGENT MULT command FGENerator PULSe AMPLitude Purpose Command Query Response Arguments Notes 6 34 Sets the base to top amplitude of the pulse in the specified channel s
29. horizontal or sampling interval and the OFFSet lists the horizontal offset displacement The UNIT s field lists the horizontal units s stands for seconds This field indicates the waveform is analog 0 or digital 1 If _ the field is not present the waveform is analog The trace block is used to report the time cursor positions as indicated by cursor_include The ABel field defines the time interval between the time left cursor STAR and time right cursor Stop WAVEFORM TRANSFERS VIA GPIB 5 4 DATA DiMension ORDer DATA The data block contains the actual values of the waveform amplitude data This is a fixed length block of 256 bytes defined by the block length field in this example the 3 indicates that the byte count contains 3 digits which are 256 The data which is not printable follows A second DIF expression which contains information on the waveform marker is appended to the file describing the waveform This is done because the marker data is described differently from the waveform data Two marker types are available edge or clock markers If the edge marker type is selected then the marker is described as a series of paired data values or tuples The first value in the pair is the marker time position The second is its binary state i e 1 or 0 The following blocks are specific to the waveform edge marker description The time statement defines the first value
30. if found will be fixed by passing the discontinuity through a low pass filter If NO is chosen the data will not be checked for discontinuities WAVE INSert OVERsample lt character_data gt WAVE INSert OVERsample lt character_data gt YES or NO YES oversample NO do not oversample WAVE INSert PASTe COUNt Purpose Command Query Response Arguments 6 122 Sets the number of times that the data in the cut buffer is inserted into the waveform WAVE INSert PASTe COUNt lt numeric_value gt WAVE INSert PASTe COUNt lt numeric_value gt lt numeric_value gt 1 to 32767 WAVE INSert PASTe IMMediate Purpose Command Query Response Arguments Inserts the cut buffer into waveform WAVE INSert PASTe COUNt times at the left time cursor in the edit mode described by WAVE INSert MODE If the data was extracted the it is summed back into the waveform WAVE INSert PASTe None None None WAVE INSert SCOPe ADDRess Purpose Command Query Response Arguments Sets which GPIB address the digital oscilloscope that data is to be downloaded from is using WAVE INSert SCOPe ADDRess lt numeric_value gt WAVE INSert SCOPe ADDRess lt numeric_value gt 0 30 lt numeric_value gt 0 30 6 123 Remote Commands WAVE INSert SCOPe BWLimit Purpose Command Query Response Arguments Set to YES and the LW400 will check for and oversample to eliminate disconti
31. in Data Interchange Format DIF to or from host computer Transfer waveform DIF preamble to or from host computer Selects insert or overwrite insertion mode Inserts the contents of the cut buffer into the waveform Sets the insert repetition count i e number of times the contents of the cut buffer is inserted into the waveform Selects if waves are inserted before or after the cursor Selects if waveform is to be continuous with the last point wrapped to first or if waveform is single shot a WAVE INSert SCOPe IMMediate ADDRess BWLimit CONTrol PREServe SOURce TYPE SHAPe DC DURation LEVel PULSe AMPLitude BASE CYCLes ETIMe PERiod TDELay WIDTh RAMP AMPLitude CYCLes FREQuency INVert OFFSet SPOSition Downloads the data from the specified digital oscilloscope DSO Sets the GPIB address of the source DSO Select option to check for and correct waveform discontinuities or to not check or correct discontinuities Selects the GPIB request control mode for DSO transfers Sets how the data from the digital oscilloscope is preserved The data can be preserved in time or by points Selects waveform source from available DSO traces Selects DSO type model Set the time duration length of the inserted DC function Set the voitage level of the inserted DC function Sets the base to top amplitude of the standard wave pulse Sets the base voltage level of the pulse Sets the numb
32. in the marker data pair In this example the marker consists of two edges at 0 and 80ns Up to 125 marker edges can be defined The second dimension block describes the marker amplitudes at each time value in terms of the logical value The UNIT s field defines the selected marker logic level which can be TTL or ECL This block specifies that the data will be paired into tuples consisting of a time value and a binary state 1 or 0 The marker data block identified by the markers statement contains ordered pairs of data values representing the edge marker time position and logical state All values in the data field will be separated by commas If the clock marker has been selected then the data block will be different A typical data block for the clock marker follows DATA markers WAVeform PERiod 8 000000e 008 TMAX 5 0000008 8 The marker is described as waveform type data which summarizes the key clock marker parameters the clock period and time to the first rising or positive going edge TMAX Viewing Waveform Data In The DIF file The waveform data within the DIF file is encoded as IEEE 32 bit single precision floating point numbers Viewing this data requires a program which converts binary data into printable hexadecimal hex values Programs such as DOS s debug provide this capability A DIF file for the waveform NEW_WAVE is shown below in an HEX ASCI format The waveform data is indicated by bold text
33. is left unchanged Command WAVE AMPLitude VMIN lt numeric_value gt Query WAVE AMPLitude VMIN Response lt numeric_value gt Arguments lt numeric_value gt 5 to 5 Clock and Filter Ranges This table of clock and filter ranges is for reference when using the WAVE CLOCK commands Decade Lower Limit Upper Limit Filter 400 MHz 355 MHz 400 MHz 100 MHz 40 MHz 35 5 MHz 40 MHz 10 MHz 4 MHz 3 55 MHz 4 MHz 1 MHz 400 kHz 355 kHz 400 kHz 100 kHz 40 kHz 35 5 kHz 40 kHz 10 kHz Note The LW400A series provides a continuously variable clock from 6 kHz to 400 MHz when the WAVE CLOCK LIMit NO is issued 6 109 WAVE CLOCk ACSet Purpose Set to YES and the WaveStation automatically selects the best sample clock rate to achieve the required duration of the waveform Set to NO and the clock is held at the user set frequency while the number of samples is varied to set the waveform duration Command WAVE CLOCk ACSet lt character_data gt Query WAVE CLOCk ACSet Response lt character_data gt Arguments YES or NO YES automatic selection of sample clock rate NO held at user set frequency WAVE CLOCk DECade Purpose Selects the clock decade in which the internal clock runs The choices are 40 kHz 400 kHz 4 MHz 40 MHz 400 MHz Command WAVE CLOCk DECade lt numeric_value gt Query WAVE CLOCk DECade Response lt numeric_value gt Arguments lt numeric_value gt 40066 4066 4e6 400e3 4083 Note This command
34. name other than the current one is given then the current project is save with the new name The old project is left unchanged If a name other than the current project is given that already exists then an error message will be displayed and the project will not be saved PROJect SAVE lt string gt PROJect SAVE lt string gt the up to 15 character name of the current project or the name entered into PROJECTSAVE from the menus A quoted string of up to 15 characters SEQuence ADVance Purpose To advance to the next sequence in the list The current sequence will stop where ever it currently is and the next sequence will begin playing If there is no next sequence the last sequence will continue to play The channel that is advanced is selected by SEQuence AON Command SEQuence ADVance Query None Response None Arguments None Example SEQuence ADVance advances to the next sequence in the list SEQuence AON Purpose To select on which channel the SEQuence ADVance and SEQuence JUMP commands will operate Command SEQuence AON channel Query SEQuence AON Response channel either CH1 or CH2 Arguments channel either CH1 or CH2 Example SEQuence AON CH1 sets the advance on to channel 1 6 85 Remote Commands SEQuence COMPile Purpose Compiles and executes the sequence in the currently selected editor Channel 1 or Channel2 6 86 Command WAVE SEQuence COMPile Query None Respo
35. operate on Cause the desired sequence to play Tansfers a sequence file identified by a filename to or from the WaveStation via GPIB in 0 blobk format Transfers a group sequence file to or from the AWG via GPIB in 0 block format Add a new sequence to the end of the sequence list in the currently selected group sequence Creates a new group sequence Recall a saved image file Save a binary image of the hardware to a file Jump to the nth sequence in the list Add on entry to the end of the sequence list in memory Empty the sequence list associate a new name with sequence list Open and compile a sequence file from the project Save the sequence list from memory to the current project FGENerator Subsystem The WaveStation s standard function generator mode is controlled by the FGENerator subsystem Any of the seven standard waveforms sine triangle square ramp pulse multitone and DC can be specified Key parameters such as frequency amplitude offset and start phase can be controlled directly Additionally the frequency of the sine triangle square ramp and pulse waveforms can be swept linearly or logarithmically Overview of FGEN Commands FGENerator DC LEVel MULTitone AMP Litude NTONes OFFSet TONE RAMPlitude FREQuency PULSe AMPLitude BASE ETIMe PERiod SWEep SPACing STATe Set the DC voltage level for the specified channel s function generator either 1 or 2 Sets t
36. parallel byte serial format A device connected to the GPIB is either a talker listener or controller Although some devices can change roles a device can perform just one role at a time Talker Places messages or data on the GPIB bus for transmission to other devices Only one device on the network can be the talker Listener Receives data or commands over the bus Several listeners may be active at one time Governs the operation of the bus A controller usually a computer normally sends program messages to devices and receives responses from them One controller task is to decide which device is the talker and which is a listener s The controller may assign itself to be the talker at one time and a listener at other times If devices on the bus never change their roles a controller is not required The GPIB bus has 16 signal lines and eight ground lines Eight of the 16 signal lines form a bi directional data bus which transfers data and commands The remaining eight signal lines control the bus operation Three lines are for handshaking signals which synchronize data transmission The remaining five lines are management lines which control the flow of information across the bus and take special action The GPIB address is set in the System Sub menu accessed through the Project and Preference menu From the front panel press the Project key Press the soft keys adjacent to the Preferences and then system entries on the menus
37. quotes Example SEQuence GLINk sequence1 adds sequence to the end of the currently selected group sequence 6 87 Remote Commands SEQuence GNEW Purpose Command Query Response Arguments Example Note 6 88 Creates a new group sequence in the currently selected editor with the specified name SEQuence GNEW filename SEQuence GNEW filename returns the last name specified by this command filename a file name for the new group sequence in quotes SEQuence GNEW example SEQ GNEW has no effect on the output of the LW400 until the next SEQ COMPile The new sequence is not saved in the current LW400 project until SEQ SAVE is issued SEQuence IRECall Purpose Command Query Response Arguments Example Recails a stored image file to the specified channel The image file must have been previously stored using SEQuence ISAVe This command decreases the setup time for loading sequences into hardware Since we re saving the state of hardware there is no compile of the sequence or conversion from floating point to dac codes Remember this is the state of the hardware when saved If the sequence that was saved changes the changes won t be reflected in the image until a new image is stored SEQuence IRECall channel filename None None channel 1 channel 1 2 channel 2 filename file name of image to recall in quotes The file name can have eight characters followed by
38. ras A VAE Meroe 6 102 SYSTEM VERSION A A 6 103 T TRIGger SEQuence SOURCE scccsssssscsseesseesecsesessreesesscersrassssessensesssescenensneessesvsusssesonsensensseseenes 6 106 TRiGger SEQuence BCOuN ooonoccaccoconncanonnncanararanannonorononnnonacanonercn nacen nono nneno none none nnann cano rana nc conca ranas 6 104 TRIGger SEQuence DELay occccococoononnonnaccnnnnnoonanoononanonconnn coran nro nrnnonnoneonnoncnn cana rana na ranona nono onoscrconnonnos 6 104 TRIGger SEQuence LEVel o oonnnnconoonoonononaonconecononnnacconaconacononncnonnonnannconc cnn aora non corsa rnn nro nr an ccoo nao nca renos 6 105 TRIGger SEQuence MODE ooconcononocconoconnonoranoncnannonnonornronconenn non non rene nnerenonannnnn con ronornnone one ra ron nana rca canon 6 105 TRIGger SEQuence SLOPe sssscosssscssorsersossesssncssensecsassasersasteasansseeessenssonsesaseasocsnensrseroressonsse see 6 106 W WAVE AMPLitude AMPLI o e a a e 6 107 WAVE AMPLItUGEIN Vert A e a aes 6 107 WAVE SAMPLE Ide MEDIANOS didas 6 108 WAVE AMPLitude YVMAZX aida 6 108 WAVEAMP mde MIN bdo edo e 6 109 WAVE CLOCK ELIMINA lo edad 6 112 WAVE CLOCK MAS rt tot dto ra Cree 6 112 WAVE CLOCK AC SES E 6 110 WAVE CLOCK DECI 0 ada 6 110 WAVE CLOCK EDO ss 6 111 WAVE CLOCK ER BOUCHCY naa c 6 111 WAVECUTCOPY ae tere te a IRENE OP oe PERE 6 113 Bt E Gt Wd E DI AE i olas 6 113 WAVE CUTEXTRacE ias id AA R 6 114 WAVE DATA aa adi 6 114 WAVE DATA
39. s function generator either 1 or 2 FGENerator SQUare SWEep STOP lt numeric_value gt FGENerator SQUare SWEep STOP lt numeric_value gt lt numeric_value gt 1 Hz to 50 MHz See notes for FGEN PULse SWEep STOP See also FGEN STATe and FGEN SELect FGENerator SQUare SWEep TIME Purpose Sets the amount of time that it will take to go from SWEep STARt to SWEep STOP in the specified channel s function generator either 1 or 2 Command FGENerator SQUare SWEep TIME lt numeric_value gt Query FGENerator SQUare SWEep TIME Response lt numeric_value gt Arguments lt numeric_value gt 1nsto1s Notes See notes for FGEN PULSe SWEep TIME See also FGEN STATe and FGEN SELect 6 59 Remote Commands FGENerator SQUare SWEep STATe Purpose Command Query Response Arguments Notes 6 60 Turns the sweep on or off for the square wave function in the specified channel s function generator either 1 or 2 When sweep is off the parameter specified by FGENerator SQUare FREQuency defines the output square wave FGENerator SQUare SWEep lt Boolean gt FGENerator SQUare SWEep lt Boolean gt one of 0 1 OFF ON O Turn sweep off 1 Turn sweep on OFF Turn sweep off ON Turn sweep on See also FGEN STATe and FGEN SELect d e Remote Commands FGENerator SQUare TDELay Purpose Sets the amount of time before the first edge of the square wave in the speci
40. the STOP frequency width 1 25 ETIME must fit in 1 STOP frequency See also FGEN STATe and FGEN SELect FGENerator PULSe PERiod Purpose Sets the period 1 frequency of the pulse in the specified channel s function generator either 1 or 2 assuming FGEN PULSE TDELay is 0 Command FGENerator PULSe PERiod lt numeric_value gt Query FGENerator PULSe PERiod Response lt numeric_value gt Arguments lt numeric_value gt 20 nsto 1s Notes See also FGEN STATe and FGEN4 SELect 6 37 Remote Commands FGENerator PULSe SWEep SPACing Purpose Command Query Response Arguments Notes Selects the type of sweep either linear or log in the specified channel s function generator either 1 or 2 FGENerator PULSe SWEep SPACing lt character_data gt FGENerator PULSe SWEep SPACing lt character_data gt LiNear or LOG LiNear Sweep the frequency is SWEEP START at the beginning SWEEP STOP at SWEEP TIME and increases at a constant rate in Hz unit time in between LOG Sweep the frequency increases from SWEEP START to SWEEP STOP at a rate which is a constant percentage change in frequency per unit time The time needed for the frequency to double tx2 for example is _ Sweeptime fi r qstop freqstart fx2 log 2 Log This command is value coupled to all F EN lt any gt SWEEP SPACing commands for the specified channel that is FGEN1 or FGEN2 Se
41. the Status Byte Register Each bit in an event enable register is AND ed with its corresponding bit in its associated status event register If the result of the AND operation is a one true the summary bit will be set in the Status Byte Register All event registers are edge sensitive meaning they are set when the status changes state The SCPI standard allows for choosing the edge of interest positive going or negative going but this capability is not implemented in the WaveStation The WaveStation will set the bit in the status register to true 1 whenever the status changes from false 0 to true 1 Event register bits are set on a positive going transition a The status registers and enable registers are associated as follows Status Byte Register Service Request Enable Register Standard Event Status Register Event Status Enable Register Operation Status Register Operation Status Enable Register Questionable Status Register Questionable Status Enable Register The following commands are used to set the value of the enable registers SRE 3 Service Request Enable Register ESE Event Status Enable Register STATus OPERation ENABle Operation Status Enable Register STATus QUEStionable ENABle Questionable Status Enable Register The enable registers for the Operation Status Register and the Questionable Status Register are 15 bits wide with each bit selecting a different condition or event The enable regis
42. the output channel s additive noise and low pass filter bandwidth selections Because the instrument may have two channels the OUTPut subsystem is controlled using OUTPut1 or OUTPut2 in order to uniquely control each of the arbitrary waveform generator s outputs In this manual the numeric suffix to the OUTPut subsystem is shown in general form using a character e OUTPutit NOISe controls the noise output of either channel Overview of OUTPut Commands OUTPut STATe FiLTer LPASs FREQuency NOISe STATE LEVel PATH OUTPut2 RESample WAVE Subsystem Enables or disables the output for the specified channel Sets the bandwidth for the specified channel Enables or disables the addition of uncorrelated pseudo random noise into the specified output channel Sets the level of noise that is inserted into the waveform for the specified channel INTERNAL or EXTERNAL EXTERNAL routed through BNC s on rear Note OUTP1 NOISE PATH is functionally coupled to OUTP2 NOISE PATH Both are either internal or external Issues command to resample channel 2 waveform This command only applies to channel 2 The WAVE subsystem controls the selection creation editing and mathematical manipulation of waveforms in the selected waveform editor channel 1 channel 2 or scratch pad The operation of the WAVE subsystem is augmented by the FGENerator and EQUation subsystems which handle the specialized operations ass
43. where edit operations begin Command WAVE REGion LEFT lt numeric_value gt Query WAVE REGion LEFT Response lt numeric_value gt Arguments lt numeric_value gt WAVE REGion RIGHt Purpose Set the position of the right time cursor This command only has effect if DISPlay WINDow TRACe CURSors TIME TRACKk is off This is a synonym for DISP TRACE CURSORs TIME RIGHT The right cursor delimits a region for those operations that affect a region e CUT WAVE AMPLitude WAVE TIME Command WAVE REGion RIGHt lt numeric_value gt Query WAVE REGion RIGHt Response lt numeric_value gt Arguments lt numeric_value gt 6 154 WAVE SAVE Purpose Saves the current waveform with the name supplied by the Arguments If a name other than the current name of the waveform is given then the current waveform is saved with the new name The old waveform is left unchanged If a name other than the current waveform is given that already exists then an error message will be displayed and the waveform will not be saved Command WAVE SAVE lt string gt Query WAVE SAVE Response lt string gt The name of the last waveform saved by WAVE SAVE Arguments lt string gt File name is quotes up to 15 characters Example WAVE SAVE NEWWAVENAME Creates a file named NEWWAVENAME WAVE SELect Purpose Selects which waveform editor will be the target of all WAVE commands Command WAVE SELect lt character_data gt Query WA
44. 0 00 00 3f 00 0001b0 c8 53 25 00 00 00 bf 00 30 Od a5 00 00 00 3f 00 0001c0 c8 53 25 00 00 00 bf 00 30 0d a5 00 00 00 3f 00 0001d0 c8 53 25 00 00 00 bf 00 30 0d a5 00 00 00 3f 00 0001e0 c8 53 25 00 00 00 bf 00 30 Od a5 00 00 00 3f 00 0001f0 c8 53 25 00 00 00 bf 00 30 Od a5 00 00 00 3f 00 000200 c8 53 25 00 00 00 bf 00 30 0d a5 00 00 00 3f 00 000210 c8 53 25 00 00 00 bf 00 30 0d a5 00 00 00 3f 00 000220 c8 53 25 00 00 00 bf 00 30 Od a5 00 00 00 3f 00 000230 c8 53 25 00 00 00 bf 00 30 Od a5 00 00 00 3f 00 DIF VERSion 19 93 0 SCOPe FULL IDENtify NAME NEW_WAVE PROJe ct DEMO PRJ ENCode FORMat FP32 HRANGE 0 50 0000 LRANGE 0 5 00000 DiMensio n Volts TYPE EXPLicitSIZE 64 UNITS V DIM ension Time TYPE IMPLicit SC ALe 2 5e 009 OFF Set 0 UNITS s TRACe Cursor s_include LABEL Time STARt O ST OP 1 599e 007 D ATA data_array CURVe pa S 3256 0 0 2 S S 0 Sh S SV S SV SIA Sh S O S E Bebe eo eh os REC o y o o e o e o 5 5 000240 c8 53 25 00 00 00 bf 00 30 0d a5 00 00 00 3f 00 000250 c8 53 25 00 00 00 bf 00 30 0d a5 00 00 00 3f 00 000260 30 8d 24 00 00 00 bf 20 29 20 29 20 29 28 44 49 000270 46 20 28 56 45 52 53 69 6f Ge 20 31 39 39 33 2e 000280 30 29 20 44 49 4d 65 6e 73 69 6f 6e 20 3d 20 54 000290 69 6d 65 20 28 20 54 59 50 45 20 45 58 50 4c 69 000240 63 69 74 20 53 49 5a 45 20 32 29 20 44 49 4d 65 0002b0 6e 73 69 6
45. 5 PRINT LWGPIB PRINT GPIB REMOTE CONTROL PROGRAM FOR LECROY LW4XX AWG s PRINT FOR USE WITH NATIONAL INSTRUMENTS GPIB INTERFACE COLOR 11 PRINT PRINT AVAILABLE OPTIONS ARE PRINT COLOR 14 PRINT A CHANGE GPIB ADDRESS PRINT C SEND REMOTE COMMAND PRINT Q SEND REMOTE QUERY PRINT L RETURN TO LOCAL OPERATION PRINT D DOWNLOAD WAVEFORM TO DIF FILE PRINT U UPLOAD WAVEFORM FROM DIF FILE PRINT H HELP PRINT E EXIT VIEW PRINT 18 TO 24 END SUB Subroutine to upload waveform from disk for AWG SUB RecallWave AWG COLOR 12 LINE INPUT ENTER FILENAME FILENAME file UCASE FILENAME COLOR 15 PRINT s file IS BEING UPLOADED TO THE AWG CALL ibeot AWG 0 NI488 2 subroutine to prevent EOI being asserted CMD WAVE DATA LW400 remote command to accept waveform data CALL IBWRT AWG CMD NI488 2 subroutine to write command string CMD to device AWG CALL ibeot AWG 1 NI488 2 subroutine to assert EOI and end of command 7 6 CALL IBWRTF AWG file NI488 2 subroutine to write a binary file file to device AWG END SUB Subroutine to send a remote command SUB SendCommand AWG COLOR 10 LINE INPUT ENTER COMMAND CMD CALL IBWRT AWG CMD NI488 2 subroutine to write command string CMD to device AWG CLS END SUB Subroutine to send a remote query and receive and display the reply SUB SendQuery AWG COLO
46. 5 measurements IBWRT SRE 128 Enable SRQ IBWAIT RQS Wait for SRQ Note The computer will wait infinitely here until the WaveStation asserts SRQ If it never does the computer will wait forever To have the computer wait for a SRQ or a time out send the following command IBWAIT TIMO ROS IBRSP Serial poll the bus Note The serial poll will return one byte on data This is the status byte The status byte can be checked to see which bits were set This is particularly useful if several conditions could have caused the SRQ IBWRT CLS clear all registers Status amp Error Reporting This page left intentionally blank 4 16 introduction Transferring Waveforms Via GPIB WAVEFORM TRANSFERS VIA GPIB Waveforms can be transferred between the host computer and the WaveStation via GPIB The WaveStation stores waveform internally using the standard Data Interchange Format or DIF This format is fully documented in Volume 3 of the Standard Commands For Programmable Instruments SCPI manual 1993 Waveforms transferred from a host computer to the WaveStation must be in this format Waveforms exported from the WaveStation to floppy disk in WaveStation format are stored in a compressed form and cannot be transferred directly back to the WaveStation via GPIB Waveforms can be read from the WaveStation using the GPIB command query WAVE DATA The response will be a data block containing the currently sele
47. 5 MHz See notes for FGEN PULSe SWEep STARt See also FGEN STATe and FGEN SELect FGENerator TRlangie SWEep STOP Purpose Command Query Response Arguments Notes 6 64 Sets the stop frequency of the sweep in the specified channel s function generator either 1 or 2 FGENerator TRlangle SWEep STOP lt numeric_value gt FGENerator TRlangle SWEep STOP lt numeric_value gt lt numeric_value gt 1 Hz to 25 MHz See notes for FGEN PULSe SWEep STOP See also FGEN STATe and FGEN SELec FGENerator TRilangle SWEep TIME Purpose Command Query Response Arguments Notes Sets the amount of time that it will take to go from SWEep STARt to SWEep STOP in the specified channel s function generator either 1 or 2 FGENerator TRlangle SWEep TIME lt numeric_value gt FGENerator TRlangle SWEep TIME lt numeric_value gt lt numeric_value gt 1 ns to1s See notes for FGEN PULSe SWEep TIME See also FGEN STATe and FGEN SELect FGENerator TRlangle SWEep STATe Purpose Command Query Response Arguments Notes Turns the sweep on or off for the TRlangle function in the specified channel s function generator either 1 or 2 When sweep is off the parameter specified by FGENerator TRlangle FREQuency defines the output triangle wave FGENerator TRlangle SWEep lt Boolean gt FGENerator TRlangle SWEep lt Boolean gt one of 0 1 OFF ON O Turn sweep o
48. A LeCroy WaveStation LW400 LW400A Series AWG Remote Programmer s Manual August 1996 Rev C LeCroy Corporate Headquarters 700 Chestnut Ridge Road Chestnut Ridge NY 10977 6499 Tel 914 578 6020 FAX 578 5985 European Headquarters Mannheimerstrasse 175 D 69123 Heidelberg Germany Tel 49 6221 840989 FAX 49 6221 833827 European Manufacturing 2 rue du Pr de la Fontaine P O Box 341 1217 Meyrin 1 Geneva Switzerland Tel 41 22 719 21 11 FAX 22 782 39 15 Copyright August 1996 LeCroy All rights reserved Information in this publication supersedes all earlier versions Specifications subject to change LeCroy is a registered trademark of LeCroy Corporation WaveStation is a registered trademark of LeCroy Corporation Centronics is a registered trademark of Data Computer Corp Citizen is a registered trademark of Citizen America Corp Epson is a registered trademark of Epson America Inc Hewlett Packard is a registered trademark and HP is a trademark of Hewlett Packard Co IBMO is a registered trademark and IBM PC XT PC AT and PS 2 are trademarks of International Business Machines Corporation MATHCADO is a registered trademark of MATHSOFT INC MATLABO is a registered trademark of MATHWORKS PSPICEO is a registered trademark of MICROSIM Corporation Smart Trigger is a trademark of LeCroy Corporation Microsoft MS DOSO QuickBasicO Excel and Windows are trademark
49. ANTISSA Bits 22 0 reversed order EXPONENT lt Bits 30 23 SIGN BIT Bit 3D Note that interpretation of the floating point values is simplified by reversing the byte order of the data as shown The sign bit bit 31 is now the most significant bit The exponent is represented by bits 30 through 23 The mantissa or fractional part of the floating point number is contained in bits 22 through 0 WAVEFORM TRANSFERS VIA GPIB For the hex value OOOOFOBE the components of the floating point encoded amplitude value are S 1 E 125 011 1110 1 in binary F 0 875 Note that the fraction F is calculated as 700000 800000 7340032 8388608 This is the binary value of bits 22 O divided by Using the values obtained above in the equation for the data value DATA Value Volts 1 21 1 875 0 46875 Other Data Formats The WaveStation can export and import files in multiple data formats including spreadsheet Mathcad Matlab Pspice Easywave and compressed DIF Import and export file transfers are made directly to and from the internal floppy disk drive only 5 8 CAL Purpose Performs a system calibration and returns a numeric response indicating if the calibration was successful Command None Query CAL Response 0 Calibration successful 1 Calibration failed Arguments None CLS Purpose Clears all event status registers This includes the main Status Byte Register Event Sta
50. AVE INSert SHAPe RAMP INVert co scsccccsccsscscscssccrsovevscvessosscsevectsoccancccvessensssosssdscssascareescossodssseceeeense 6 134 WAVE INSert SHAPe RAMP OFFSet cccessesccsssscrscsccessvsesnsessssssccesscceesesscrecsssceetsssesesecsesersevseesesens 6 134 WAVE INSert SHAPe RAMP SPOSItION cccccscssscsesercvesscssncncccsessecscensscstscesecsescsccscccercvcececcecccosesenes 6 135 WAVE IN Ser SHA Pe SEL CO diu di 6 135 WAVE INSert SHAPe SINE AMPLitude wcssissicccscsccacivacssdvenecctsnsensatacciceosedewtiadsovovussessdvadccssoecessacavaacooweses 6 136 WAVE INSert SHAPE SINE CYUELES isis abia 6 136 WAVE INSert SHAPe SINE FREQUENOY iicsdicisivetinssscsachesivcoyssvotavvcsvansepesbecessesnssesssassconescdoevaeeessaderseues 6 137 WAVE INSert SHAPe SINE OFFSet cccscccssssccccccssceseccssrsscseensscecscucsecssuseseccccescrensresessesesecseeecers 6 137 WA VE VINSert SHA Pe SINE PHAGE dad 6 138 WAVE INSert SHAPe SQUare AMPLitude ccccccssssssssssscssscccsscssesssssonscsscesccevecescesoecesesesonenenenecen 6 138 WAVE INSert SHAPe SQUare BASE 0 ad 6 139 WAVE INSGert SHAPE SOU ate CY Clits e erenssoesssrereorooosonsessseseeoereoeorssveveevoreesesesseeresersssseseraccoeeoresssss 6 139 WAVE INSert SHA Pe SQUare ETIMG cccccsscssssssssssssssosssssresssssscssevsvsceccesscseasecccesecssececeseseneccees 6 140 WAVE INSert SHAPe SQUare FREQuency sscsccscssssvsssvesonessessssssensecesscescs
51. Arguments Notes Controls whether the ramp is rising or falling WAVE INSert SHAPe RAMP INVert lt Boolean gt WAVE INSert SHAPe RAMP INVert lt Boolean gt one of 0 1 OFF ON O Normal 1 Inverted OFF Normal ON Inverted See also WAVE INSert SHAPe SELect and WAVE INSen SHAPe IMMediate WAVE INSert SHAPe RAMP OFFSet Purpose Command Query Response Arguments Notes 6 134 Set the voltage of the zero degree phase of the ramp WAVE INSert SHAPe RAMP OFFSet lt numeric_value gt WAVE INSert SHAPe RAMP OFFSet lt numeric_value gt lt numeric_value gt 5 to 5 V resolution 1 mV See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe MMediate WAVE INSert SHAPe RAMP SPOSition Purpose Command Query Response Arguments Notes Sets the start position of the ramp in percentage of the ramp slope WAVE INSert SHAPe RAMP SPOSition lt numeric_value gt WAVE INSert SHAPe RAMP SPOSition lt numeric_value gt lt numeric_value gt 0 to 100 resolution 0 001 See also WAVE INSen SHAPe SELect and WAVE INSen SHAPe lMMediate WAVE INSert SHAPe SBELect Purpose Command Query Response Arguments Selects which shape will be inserted into the waveform by WAVE INSert SHAPe MMediate WAVE INSert SHAPe SELect lt character_data gt WAVE INSert SHAPe SELect lt character_data gt DC PULSE RAMP SINE SQUare TRlangle 6 135 Remote Commands WAVE INSert SHAPe SI
52. Arguments Purpose Command Query Response Arguments Turns the time cursors on or off DISPlay TRACe CURSors TIME lt Boolean gt DISPlay TRACe CURSors TIME lt Boolean gt one of 0 1 OFF ON O Turns the time cursors off 1 Turns the time cursors on OFF Turns the time cursors off ON Turns the time cursors on DISPlay WINDow TRACe CURSors VOLTage BOTTom Set the position of the bottom voltage cursor DISPlay TRACe CURSors VOLTage BOT Tom lt numeric_value gt DISPlay TRACe CURSors VOLTage BOT Tom lt numeric_value gt lt numeric_value gt Bottom voltage cursor position 5 volts 6 19 DISPlay WINDow TRACe CURSors VOLTage DELTa Purpose Command Query Response Arguments Notes Change the delta voltage between the voltage cursors This command only has effect if DISPlay WINDow TRACe CURSors VOLTage TRACKk is on DISPlay TRACe CURSors VOLTage DELTa lt numeric_value gt DISPlay TRACe CURSors VOLTage DELTa lt numeric_value gt lt numeric_value gt Delta between the voltage cursors in volts 5 volts The state of DELTa is not coupled to the cursors if VOLTAGE TRACK is off The command has no affect and the query response does not necessarily reflect the separation of the cursors DISPlay WINDow TRACe CURSors VOLTage TGRid Purpose Command Query Response Arguments To Grid moves both voltage cursors so they are on the display The top voltage cursor ge
53. Boolean gt Query HCOPy AUToincr Response lt Boolean gt Arguments 1 of 0 1 OFF ON O OFF 1 ON HCOPy FiLename Purpose Set or query the current hardcopy file name Command HCOPy FiLename lt string gt Query HCOPy FlLename Response lt string gt Arguments A quoted string containing up to 5 alpha characters A three digit HCOPy INDex is appended to this to form the file name HCOPy FiLename can be changed only by this command not from the front panel Default is HCOPY 6 67 Remote Commands HCOPy INDex Purpose Command Query Response Arguments Set the index number used when the hardcopy filename is automatically incremented For the file name HCOPY001 PRN the index is 1 The index may range from 0 to 999 HCOPy INDex lt numeric_value gt HCOPy INDex lt numeric_value gt lt numeric_value gt 0 TO 999 HCOPy TARGet GRAPhics DESTination Purpose Command Query Response Arguments 6 68 Set or query the destination for the hardcopy graphics file This command is meant to be used with possible future options At the moment the only destination is FLOPPY HCOPy TARGet GRAPhics DESTination lt character_data gt HCOPy TARGet GRAPhics DESTination lt character_data gt FLOPPY Remote Comman ds HCOPy TARGet GRAPhics FORMat Purpose Command Query Response Arguments Set or query the hardcopy graphics file format Graphics files may be expor
54. Calculates the currently specified equation line for the preset duration and inserts it into the current waveform at the left cursor position using the current insert mode Transfers all the lines of the equation sheet as a 0 block 0 is an indefinite length block of data terminated with EOI Defined in IEEE 488 2 Defines an equation for the current equation line The equation line may be up to 50 characters in length and must be surrounded by quotes Valid functions are SIN COS SQRT PULSE STEP LN LOG ABS EXP and TAN Valid operators are and Valid variable names are X1 through X16 Valid arguments are T PI NOISE and GNOISE Sets the time span over which the equation will be calculated Selects an equation line from the current equation sheet Creates a new equation sheet Opens an existing equation sheet Saves the current equation sheet DISPlay Subsystem The DISPlay subsystem controls the selection and presentation of text graphics and waveform information In addition the cursor system is controlled by this subsystem Overview of DISPlay Commands DISPlay ANNotation DATE STATe LOGO STATe PARameter STATEe ALL SSAVe WINDow TRACe ALL COLor CURSors TIME DELTa LEFT RIGHt SALL TEND TGRid TRACk STATe VOLTage BOTTom DELTa TGRid Allows the time date annotation field to be switched on or off Allows the Company Logo to be switched on or off Turns the
55. Centronics port or it may be the floppy disk drive where a file in printer format will be stored Set whether a form feed is automatically generated following a hardcopy Set the specified printer model Set the print quality draft or proof This setting is not available for all supported printers Set the size of the hardcopy notebook or presentation Sets the hardcopy format Hardcopies may be formatted to provide data suitable for printers or graphics files Begin a hardcopy 3 17 Instrument Model and Subsystem Hierarchy _ TRIGger Subsystem The trigger subsystem is used to control the Trigger section of the AWG This includes controls for triggering such as level mode source and slope Overview of TRIGger Commands INITiate IMMediate TRIGger SEQuence BCOunt DELay LEVel MODE SLOPe SOURce 3 18 Triggers the system equivalent to the IEEE 488 2 command TRG Sets the burst count or number of repetitions of the waveform that will be output after a trigger is received in burst mode Sets the delay from trigger to start of output of the waveform Sets the trigger level in volts Sets the trigger mode The trigger mode may set to CONTinuous SINGle BURSt or GATE Sets the trigger slope Sets the trigger source The trigger source may internal or external MMEMory Subsystem The MMEMory mass memory subsystem provides support for the extensive hard disk storage capability of the WaveSt
56. DIGital DURation POINts lt numeric_value gt WAVE DIGital DURation POINts lt numeric_value gt lt numeric_value gt 1 to the maximum memory length WAVE DIGital DURation TIME Purpose Command Query Response Arguments 6 116 Sets the duration of the inserted waveform in time WAVE DIGital DURation TIME lt numeric_value gt WAVE DIGital DURation TIME lt numeric_value gt lt numeric_value gt Clock period to the maximum memory length times the clock period WAVE DIGital FMASk Purpose Command Query Response Arguments Notes Sets the mask value used to select desired bits which are then set using the WAVE DiGital SMValue command WAVE DIGital FMASk lt numeric_value gt WAVE DIGital FMASk lt numeric_value gt lt numeric_value gt 0 255 The numeric value may be specified in decimal hexadecimal or binary 0 255 in decimal h00 hFF in hexadecimal or b00000000 b11111117 in binary WAVE DiIGital LCURsor POINts Purpose Command Query Response Arguments Sets the position of the Time Left cursor in sample points This is the position at which the digital values SVALue or SMValue will be inserted WAVE DiGital _LCURSOR POINts lt numeric_value gt WAVE DIGital LCURSOR POINts lt numeric_value gt lt numeric_value gt 0 to maximum number of points in the waveform 6 117 Remote Commands WAVE DIGital LCURsor TIME Purpose Sets the posi
57. DISPlay ANNotation lt Boolean gt one of 0 1 OFF ON DISPlay SSAVe Purpose Allows the automatic screen saver to be enabled or disabled Command DISPlay SSAVe lt Boolean gt Query DISPlay SSAVe Response lt Boolean gt Arguments one of 0 1 OFF ON O Disables screen saver 1 Enables screen saver OFF Disables screen saver ON Enables screen save DISPlay WINDow TRACe ALL Purpose Displays the whole waveform on the screen Command DISPlay TRACe ALL Query None Response None Arguments None 6 13 Remote Commands DISPlay WINDow TRACe COLor Purpose Command Query Response Arguments Set the trace intensity Although trace intensity may be set for each trace these commands are coupled Setting the intensity for one trace will set the same intensity for all traces DiSPlay TRACe COLor lt numeric_value gt DISPlay TRACe COLor lt numeric_value gt lt numeric_value gt Intensity expressed as a percentage 0 100 Default is 75 DISPlay WINDow TRACe CURSors TIME DELTa Purpose Command Query Response Arguments Notes 6 14 Change the delta time between the time cursors This command only has effect if DISPlay WINDow TRACe CURSors TIME TRACK is on DISPlay TRACe CURSors TIME DELTa lt numeric_value gt DISPlay TRACe CURSors TIME DELTa lt numeric_value gt lt numeric_value gt Delta between the time cursors Os waveform length IFDISP TRACE CUR
58. DOS commands LINK Q QBIB OBJ BQLB45 LIB Creates a QuickLibrary QBIB QLB QB APPLIC L QBIB QLB Run QuickBASIC with the application loaded using the QuickLibrary The application must include QBDECL BAS at the beginning of the program This program also supplied by National Instruments contains constants declarations and subroutine prototypes required to control the GPIB interface QBDECL BAS can be merged with the application program or the metacommand INCLUDE can be used within the application to incorporate QBDECL BAS during compilation Additional information on setting up QuickBASIC to work with the National Instruments PCII IIA GPIB adapters can be found in chapter 3 of the National Instrument s NI 488 2 Software Reference Manual For MS DOS A complete listing of the LWGPIB BAS program follows Key elements related to LW400 remote control operations are discussed in detail in the following sections REMOTE PROGRAMMING EXAMPLES Main LWGPIB BAS Initialize program and declare program subroutines DECLARE SUB RecallWave AWG DECLARE SUB SendCommand AWG DECLARE SUB SendQuery AWG DECLARE SUB SetLocal AWG DECLARE SUB HelpScreen DECLARE SUB StoreWave AWG DECLARE SUB StoreScreenDump AWG DECLARE SUB InitScreen Merge QBDECL BAS functions and subroutines for National Instruments GPIB adapter REM iINCLUDE QBDECL BAS PRINT GPIB REMOTE CONTROL PROGRAM
59. IMG must be IMG SEQuence IRECall 1 test img loads test img on channel 1 6 89 Remote Commands SEQuence SAVe Purpose Command Query Response Arguments Example 6 90 Saves the control memory and high speed memory of the specified channel to disk under the specified filename The hardware must have either a sequence or a group sequence loaded Before the image is saved the sequence is compiled to make sure the hardware is up to data The command SEQuence IRECall is used to recall the image SEQuence ISAVe channel filename None None channel 1 channel 1 2 channel 2 filename file name to store the binary image under in quotes The file name can have eight characters followed by IMG must be IMG SEQuence ISAVe 1 test img saves test img from channel 1 SEQuence JUMP Purpose To jump to a specific sequence in the list The current sequence will stop where ever it currently is and the sequence specified by the argument will begin playing The channel that is advanced is selected by SEQuence AON Command SEQuence JUMP value Query SEQuence JUMP Response value returns the current value of jump not necessarily the sequences being played Arguments value valid numbers are 1 2 up to the number of sequences in the list Example SEQuence JUMP 2 jumps to the second sequence in the group sequence SEQuence LINK Purpose This command adds a new line to the end of t
60. NE AMPLitude Purpose Command Query Response Arguments Notes Sets the peak to peak amplitude of the sine wave WAVE INSert SHAPe SINE AMPLitude lt numeric_value gt WAVE INSert SHAPe SINE AMPLitude lt numeric_value gt lt numeric_value gt 0 to 10 V 1 mV resolution See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe MMediate WAVE INSert SHAPe SINE CYCLes Purpose Command Query Response Arguments Notes 6 136 The number of cycles of a sine waves that will be inserted into the waveform WAVE INSert SHAPe SINE CYCLes lt numeric_value gt WAVE INSert SHAPe SINE CYCLes lt numeric_value gt lt numeric_value gt 0 01 to 65536 resolution 0 01 See also WAVE INSert SHAPe SELect and WAVE INSen SHAPe lMMediate WAVE INSert SHAPe SINE FREQuency Purpose Command Query Response Arguments Notes Sets the frequency of the sine wave WAVE INSert SHAPe SINE FREQuency lt numeric_value gt WAVE INSert SHAPe SINE FREQuency lt numeric_value gt lt numeric_value gt limits depend on clock decade 400 MHz 400 Hz to 100 MHz 1 Hz resolution 40 kHz 04 Hz to 10 kHz 0 0001 Hz resolution See also WAVE INSert SHAPe SELect and WAVE INSen SHAPe lMMediate WAVE iINSert SHAPe SINE OFFSet Purpose Command Query Response Arguments Notes Set the voltage of the zero degree phase of the sine wave WAVE INSert SHAPe SINE OFFSet lt numeric_value gt WAVE INS
61. Nerator TRiangle SWEep STOP csssssssssessosssossosssssnevenssovecsenssencssusssssdenessvecsssnssarestcesonsernaees 6 64 FGENerator TRiangle SWEep TIME sscssscssssesscssccsevsrsverscenresereseerseneeseessaeenssessressesserensssoneeses 6 65 FGENerator TRiangle S WEep STATE ccc issssssscscccasvarsiesnoasecdoscssnsinpsesinecontncednstetavadaasacavesestecesusberteereceas 6 65 PGE Neratorg STATE ian did 6 66 H HCOPV AUTOM 6 67 HCOPY FI enam sonna co is 6 67 ACOPIN DO ias 6 68 HCOPy TARGet GRAPhics DESTination tia 6 68 HCOPy FARGet GRAPhics FOR Mab oo T A 6 69 HCOPy TARGet PRINter DES Tin ti n aniona etait veh ee as aai 6 69 HCOPy TARGet PRINGGCC BBC si 6 70 HCOPy TAR Get PRINCE MODEL kesaen niner A A 6 70 ACOPY TAR Get PRINtr QUAY a A A dad 6 71 HCOPy TARGeGPRIN Gt SIZE ridad 6 71 HCOPy TAR Get TY PE icno EA A stas 6 72 FIC OP y EME MCG IAG asias io O iio 6 72 I INI Fite FIM Mie inte iii A 6 73 M MMEM Ory CAT aloe ALL id 6 73 MMEMory CA Talog EQUation 00 a A A 6 74 MMEMon CA Talo a IMAGE ii A da 6 74 MMEM ry CATalog SEQUENCE iii A E EANN 6 75 MMEMON CA Talog WAV Elo ti 6 75 MIMEMINDA Vda 6 76 NIMEMO DATA PR Ea DiC sandia nido 6 76 MMEMon DELS IMA uscar coda 6 77 MMEMory DELete WA Velo Dl sietnecucreeccehesssdnaicczasdeadesiasabassecdesstelesenetattsie wis eoess 6 79 MMEMO DEBES EOU ation ricino ies 6 77 MMEM ory DEEete PROJGCt a a E Aae TR 6 78 MMEMory DELete SEQUENCE oinn E ii 6 78 O O
62. OI This section explains how the WaveStation reacts to the Standard 488 2 messages The WaveStation implements a full Serial Poll Interface Function 1 Itcan assert the SRQ Service Request control line 2 It will respond with the current serial poll byte or STB when addressed to Talk and after the Serial Poll Enable interface message is received 3 After transmitting its status message the WaveStation stops asserting the SRQ line and clears its internal status byte The WaveStation responds to the Trigger message TRG command by triggering the output waveform It is executed after all previously received commands have been processed The Interface Clear message asserting IFC line is an asynchronous control line that causes all bus activity to halt When the WaveStation receives the IFC message it becomes unaddressed stops talking or listening and will not participate in future bus transactions until readdressed to talk or listen 2 3 ABOUT REMOTE CONTROL Device Clear Selective or Universal The WaveStation will respond to a Selective Device Clear or a Universal Device Clear interface message The former requires that the WaveStation first be addressed to listen followed by the Selective Device Clear message The latter does not require that the instrument be previously addressed to listen Device Clear causes the input buffer the output queue and the message available MAV status bit to be cleared Go to L
63. OT is used to disable EOI This suppresses command termination at the end of the WAVE DATA command The AWG waits for the waveform file which is sent with the following write file subroutine IBWRTF After the transfer is complete EOI is again enabled Subroutine to upload waveform from disk for AWG SUB RecallWave AWG COLOR 12 Set the trace color to red LINE INPUT ENTER FILENAME FILENAMES Enter waveform filename file UCASE FILENAMES Convert filename to uppercase for display COLOR 15 Set the trace color to white PRINT file IS BEING UPLOADED TO THE AWG 7 12 REMOTE PROGRAMMING EXAMPLES CALL IBEOT AWG 0 NI488 2 subroutine to prevent EOI being asserted until transfer is complete CMD WAVE DATA LW400 remote command to accept waveform data CALL IBWRT AWG CMD NI488 2 subroutine to write command string CMD to device AWG CALL IBEOT AWG 1 NI488 2 subroutine to enable EOI at the end of following commands CALL IBWRTF AWG file NI488 2 subroutine to write a binary file file to device AWG END SUB 7 13 REMOTE PROGRAMMING EXAMPLES THIS PAGE LEFT INTENTIONALLY BLANK 7 14 C C mmand Synta iii AA 3 1 SubsystemS occncccccooncononos aio 3 1 D Data Interchange Format DIP sssssssrssscccersssconscesssenseesesssneesnsssneceersssensasessessgeseoes 5 2 Devica Ciela titan decian 2 4 Downloading Waveforms cccccsscsrssecccecscsns
64. PIB SELF ADDRess ERRor HELP SYNTax VERSion CALibration Subsystem CALibration ALL Sets whether the system uses the internal clock reference or an external 10 MHz clock reference Sets the GPIB address of the AWG Query the last three system errors The result of the query is the error number followed by the error text for each of the last three system errors Finds out the arguments for and full form of a header Example SYST HELP SYNTAX WAVE OPEN Returns SCPI version number for which instrument complies Performs an Internal calibration and returns a status code indicating if the calibration was successful O Calibration successful 1 Calibration failed 3 21 STATus Subsystem The status Subsystem is used to control the status reporting registers This includes the 488 2 specified condition event and enable registers as well as the SCPI defined QUEStionable and OPERation registers There are two event status registers the Status Byte Register STB and the Standard Event Status Register ESR within the WaveStation There are also two dual purpose event and condition registers the OPERation Status Register and the QUEStionable Status Register Finally there is an Error Event queue that records the last error For full information on the Status Registers please refer to Section 4 of this manual Overview of STATus Commands STATus OPERation CONDition ENABle EVENt PRESet
65. Query Response Arguments Notes 6 80 Sets the level of noise that is inserted into the waveform for the selected channel 1 or 2 Noise of this level will be produced if OUTPut NOISe STATe is ON OUTPutit NOISe LEVel lt numeric_value gt OUTPut NOISe LEVel lt numeric_value gt lt numeric_value O to 50 The noise has energy from about 750 Hz to 100 MHz If the OUTPut FIL Ter LPASs FREQuency is set below 100 MHz much of the noise energy will be filtered out OUTPut NOISe PATH Purpose Command Query Response Arguments Notes Determines whether noise is routed through rear panel connectors for external filtering or not OUTPut NOISe PATH lt character data gt OUT Put NOISe PATH EXTERNAL or INTERNAL EXTernal or INTernal OUTP1 NOISE PATH and OUTP2 NOISE PATH are coupled There is one internal noise source which feeds both channels OUTPut NOISe STATe Purpose Command Query Response Arguments Enables or disables inserting uncorrelated pseudo random noise into the waveform for the selected channel 1 or 2 OUTPut NOISe lt Boolean gt OUTPut NOISe lt Boolean gt one of 0 1 OFF ON O Disables noise 1 Enables noise OFF Disables noise ON Enables noise 6 81 Remote Commands OUTPut2 RESample Purpose Both channels must be at the same clock rate for proper waveform timing If channel 2 is at a different clock rate then channel 1
66. Query STB Response lt numeric_value gt Arguments None Notes When the status byte is read with STB the Master Summary Status appears 6 8 in bit 6 Unlike RQS which appears in bit 6 in response to serial poll MSS does not go to O when the device is polled A GPIB Service Request SRQ MUST be serviced by a serial poll and the registers must be cleared using the CLS Command before another SRQ may be generated Remote Commands TRG Purpose Same as the MANUAL button on the TRIGGER menu or GET IEEE 488 Group Execute Trigger addressed command or INITIATE Triggers the LW400 i Command TRG Query None Response None Arguments None TST Purpose Perform an internal self test and return a numeric response indicating if self test was successful Command TST Query TST Response O selftest successful 1 selftest failed Arguments None 6 9 Remote Commands WAI Purpose Wait until all overlapped pending operations have completed before executing any further commands or queries Command WAI Query None Response None Arguments None CALibration ALL Purpose Command Query Response Arguments Notes 6 10 Performs a system calibration and returns a status code indicating if the calibration was successful O Calibration successful 1 Calibration failed None CALibration lt numeric_value gt None This command is ide
67. R 10 LINE INPUT ENTER QUERY CMD CALL IBWRT AWG CMD NI488 2 subroutine to write command string CMD to device AWG COLOR 13 PRINT AWG REPLY TMO 10 STA ILTMO AWG TMO NI488 2 function sets timeout to TMO seconds returns the status word ibsta REPLY SPACES 1 GetReply STA ILRD AWG REPLY 1 NI488 2 function read string REPLYS from device AWG and returns the status word ibsta IF REPLY CHR 10 THEN GOTO GetReply COLOR 14 PRINT REPLY STA ILRSP AWG SPR NI488 2 function returns contents of device AWG s serial poll byte IF SPR AND 16 THEN GOTO GetReply ELSE PRINT END IF END SUB REMOTE PROGRAMMING EXAMPLES Subroutine to return the AWG to local operation SUB SetLocal AWG COLOR 10 PRINT LOCAL OPERATION IS ENABLED UNTIL NEW OPTION IS SELECTED CALL IBLOC AWG NI488 2 subroutine to unassert the remote enable line END SUB Subroutine to download and store a waveform from the AWG in DIF format to disk SUB StoreWave AWG COLOR 12 LINE INPUT ENTER FILENAME FILENAMES file UCASE FILENAMES COLOR 15 PRINT CURRENT WAVEFORM BEING STORED TO file CMD WAVE DATA CALL IBWRT AWG CMD STA ILRDF AWG file NI488 2 function to read the current waveform the device AWG into the file file END SUB 7 8 REMOTE PROGRAMMING EXAMPLES End Or Identify EOl Except where specifically note
68. RQS Decimal 64 Bit 5 Standard Event Status Summary Decimal 32 Bit 4 Message Available Decimal 16 Bit 3 Questionable Status Summary Decimal 8 Bit 2 Error Event Queue Decimal 4 Bit 1 Pass Fail Status Decimal 2 Bit 0 Not Used Decimal 1 SRE lt numeric_value gt SRE lt numeric_value gt lt numeric_value gt A GPIB Service Request SRQ MUST be serviced by a serial poll and the registers must be cleared using the CLS Command before another SRQ may be generated 6 7 STB Purpose Reads and clears the contents of the Main Status Byte STB The main status byte summarizes the status for the entire system If the status byte Enable register has enabled a cause of SRQ a GPIB Service Request SRQ will be generated when an enabled bit changes from false 0 to true 1 Query of the Status Byte Register with STB or STB will return a decimal number representing the bits that are set true in the status register Reading the register will clear it The main Status Register may also be read by a GPIB serial poll The bit assignments for the Main Status Byte Register are as follows Bit 7 Operation Status Summary Decimal 128 Bit 6 RQS MSS Decimal 64 Bit 5 Standard Event Status Summary Decimal 32 Bit 4 Message Available Decimal 16 Bit 3 Questionable Status Summary Decimal 8 Bit 2 Error Event Queue Decimal 4 Bit 1 Pass Fail Status Decimal 2 Bit 0 Not Used Decimal 1 Command None
69. Requests ocoocnononcoronecnnnnononaronnanonncnnon nono nonne non no rana n erro ronan nano na rose nansonnanaoss 4 14 Waveform Trans ee naa dia 5 1 W avolont Forma arista T A E AEE 5 2 IEEE floating point NUMDETS ssssesssseseesersssersresrsesveseesrseessenersarsrerasenseerenesseeere 5 2 5 3 5 6 Intertace Gloar arica adi 2 3 L Listan ico dida TN 2 2 Local Lockout iia iaa as 2 4 M Message Available MAV Summary Bit ooooncncoonionnnonconacccncanonananncanonanononn nan nrnacanononnnacnas 4 7 O Operation Status REgister cscssssesssesesteseessecrecsnestssnessneseasensensesenseatanenaesseeanens 4 11 Operational Status o ccoononnnnnonionconcnnonnnononnac one nocnonnnanorcnn corran ana rne cren cana nta anna ra can cana nro 4 3 Operational Status Summary Bit noconocnocnnanononcnnnncanonononan caca nano cnnncconnnn on nnn aran anracanaarnoss 4 9 P Polling 4 13 Q OBDECL BAS nani Ei 7 2 Queries SIS cara AR 4 3 Command 3 3 Sending 7 10 Response 7 11 Questionable Register omocccconoconononannnnononaonnonccnannnncnonnancanonanannnanacn nan sena rannanos 4 2 4 12 Questionable Status Register ccomoooonmoonnncnnnnanacunonanannconaconarannnanranconaneneraraness 4 2 4 12 Questionable Status Summary Bit ocococcccnonoonconancanonnnnnnoraranananaonnacnnononananananenrncanenoss 4 7 QuickBasic GPIB Libra Vii ii AOS Ai a 7 1 LWGPIB BAS Program oconococccnencnnonoconannononocn
70. SELect LS _ WIDTH PERIOD FGENerator SQUare FREQuency Purpose Command Query Response Arguments Notes Sets the frequency of the square wave in the specified channel s function generator either 1 or 2 FGENerator SQUare FREQuency lt numeric_value gt FGENerator SQUare FREQuency lt numeric_value gt lt numeric_value gt 1 Hz to 50 MHz See also FGENH STATe and FGEN4 SELect FGENerator SQUare SWEep SPACing Purpose Command Query Response Arguments Notes Selects the sweep type either linear or log in the specified channel s function generator either 1 or 2 FGENerator SQUare SWEep SPACing lt character_data gt FGENerator SQUare SWEep SPACing lt character_data gt LiNear or LOG See notes for F EN PULse SWE ep SPACing See also FGEN STATe and FGEN SELect 6 57 FGENerator SQUare SWEep STARt Purpose Command Query Response Arguments Notes Sets the start frequency of the sweep in the specified channel s function generator either 1 or 2 FGENerator SQUare SWEep STARt lt numeric_value gt FGENerator SQUare SWEep STARt lt numeric_value gt lt numeric_value gt 1 Hz to 50 MHz See notes for FGEN PULSe SWEep STARt See also FGEN STATe and FGEN SELect FGENerator SQUare SWEep STOP Purpose Command Query Response Arguments Notes 6 58 Sets the stop frequency of the sweep in the specified channel
71. SHAPe SELect and WAVE INSert SHAPe lMMediate 6 130 Remote Commands WAVE INSert SHAPe PULSe PERiod Purpose Sets the period 1 frequency of the pulse train which will be inserted into the waveform Command WAVE INSert SHAPe PULSe PERiod lt numeric_value gt Query WAVE INSert SHAPe PULSe PERiod Response lt numeric_value gt Arguments lt numeric_value gt limits depend on clock decade 400 MHz 10 ns to 2 5 ms 0 1 ns resolution 40 kHz 100 us to 25 seconds 1 us resolution Notes See also WAVE INSen SHAPe SELect and WAVE INSent SHAPe lMMediate WAVE INSert SHAPe PULSe TDELay Purpose Sets the amount of time between the beginning of the waveform and the beginning of the first edge of the pulse Command WAVE INSert SHAPe PULSe TDELay lt numeric_value gt Query WAVE INSert SHAPe PULSe TDELay Response lt numeric_value gt Arguments lt numeric_value gt limits depend on clock decade 400 MHz O to 2 5 mS 0 1 ns resolution 40 kHz O to 25 sec 1 us resolution Notes See also WAVE INSent SHAPe SELect and WAVE INSent SHAPe lMMediate 6 131 Remote Commands WAVE INSert SHAPe PULSe WIDTh Purpose Command Query Response Arguments Notes Sets the width of the pulse from 50 up the rising edge to 50 down the falling edge WAVE INSert SHAPe PULSe WIDTh lt numeric_value gt WAVE INSert SHAPe PULSe WIDTh lt numeric_value gt lt numeric_value gt limits depend on clock decade
72. SORS TIME TRACK is off the value of Delta is not coupled to the cursors and the query does not necessarily indicate the separation of the cursors See TIME TRACK DISPlay WiNDow TRACe CURSors TIME LEFT Purpose Set the position of the left time cursor Command DiSPlay TRACe CURSors TIME LEFT lt numeric_value gt Query DISPlay TRACe CURSors TIME LEFT Response lt numeric_value gt Arguments lt numeric_vaiue gt Left time cursor position Os end of waveform DISPlay WINDow TRACe CURSors TIME RIGHt Purpose Set the position of the right time cursor This command only has effect if DISPlay WINDow TRACe CURSors TIME TRACKk is off Command DISPlay TRACe CURSors TIME RIGHt lt numeric_value gt Query DISPlay TRACe CURSors TIME RIGHt Response lt numeric_value gt Arguments lt numeric_value gt Right cursor position Os end of waveform Notes The query response is always correct even if TRACK is on 6 15 Remote Commands DISPlay WINDow TRACe CURSors TIME SALL Purpose Command Query Response Arguments Select All selects the entire waveform by placing the left cursor at time zero and the right cursor at the end of the waveform DISPlay TRACe CURSors TIME SALL None None None DISPlay WINDow TRACe CURSors TIME TEND Purpose Command Query Response Arguments 6 16 To End places both cursors at the end of the waveform DISPlay TRACe CURSors TIME TEND N
73. STATe and FGEN SELect 6 47 Remote Commands FGENerator RAMP SWEep TIME Purpose Command Query Response Arguments Notes Sets the amount of time that it will take to go from SWEep STARt to SWEep STOP in the specified channel s function generator either 1 or 2 FGENerator RAMP SWEep TIME lt numeric_value gt FGENerator RAMP SWEep TIME lt numeric_value gt lt numeric_value gt 1 ns to 1s See notes for FGEN PULSe SWEep TIME See also FGEN STATe and FGEN SELect FGENerator RAMP SWEep STATe Purpose Command Query Response Arguments Notes 6 48 Turns the sweep on or off for the RAMP function in the specified channel s function generator either 1 or 2 When sweep is off the parameters specified by FGENerator RAMP FREQuency define the output ramp FGENerator RAMP SWEep lt Boolean gt FGENeratorit RAMP SWEep lt Boolean gt one of 0 1 OFF ON O Turn sweep off 1 Turn sweep on OFF Turn sweep off ON Turn sweep on See also FGEN STATe and FGEN SELect FGENerator SELect Purpose Command Query Response Arguments Selects which function the specified channel s function generator outputs The available functions are SINE TRlangle SQUare RAMP PULSe MULTitone and DC FGENerator SELect lt character_data gt FGENerator SELect lt character_data gt SINE TRilangle SQUare RAMP PULSe MULTitone DC FGENerator SINE AMPLi
74. TE PROGRAMMING EXAMPLES _ FOUND 0 ELSE FOUND 1 TMO 12 CALL IBTMO AWG TMO END IF END IF RETURN Subroutine to display help screen SUB HelpScreen VIEW PRINT CLS PRINT COLOR 15 PRINT EXPLANATION OF AVAILABLE OPTIONS PRINT COLOR 14 PRINT A GPIB Address Prompts the user for the GPIB address of the AWG PRINT C Send Command Prompts the user for a remote command then sends PRINT the command to the AWG PRINT Q Send Query Prompts the user for a remote query sends this query PRINT and displays the response from the AWG PRINT L Local Returns AWG to local operation PRINT D Download Prompts for a filename and stores current waveform from PRINT AWG to a DIF file on the PC The default path is the same PRINT drive and directory where this program resides A full path PRINT can be specified For example to store a waveform called PRINT TEST WAV to a directory named WAVES on the B drive the PRINT following should be entered when prompted for a filename PRINT BAWAVES TEST WAV PRINT U Upload Prompts the user for a filename restores PRINT the specified DIF waveform file to AWG PRINT H Help Displays this screen PRINT E exit Exits program and returns to DOS LINE INPUT Hit enter key to continue help END SUB 7 5 REMOTE PROGRAMMING EXAMPLES Subroutine to display selection menu SUB InitScreen CLS COLOR 12 1 4 CLS COLOR 1
75. UTPut FIL Ter LPASs PRE QUGQNCY csi iaa 6 80 COUT Putt NO SELLER 6 80 OUT NOIE PATH EO E wd uerde Gitcer aaa aia 6 81 CUTPURENOLS ESTA Tel a oidos 6 81 OOTP tH STA Te ii did 6 82 QUTPURERE Sample atada evden R a E avedaas ci 6 82 1 MM P PROJ NE Wena tdo 6 83 PROI OPEN a iris 6 83 PROSA ME isa 6 84 S SEQuence ADV ANCE eneinio AAN E AE sevens since o Eai 6 85 SEQu ence AON uranio ta 6 85 SEQUCHCE COMPil susu iio diia od E E iaa 6 86 SEQuence DATA cai A A a ae 6 86 SEO mene GDA Ta ii AA 6 87 SEQuence GLINK ai iia 6 87 SEG erica CNE Wonsc rinas cc NA sida 6 88 SEQuence RECAM ineine aaa A A A a 6 89 SEQuence IS AVES ds 6 90 SEOuenco JUMP at tas 6 91 SEQuence LINK cuna Aa 6 91 SEQuence NE Wisin iia A AAA 6 92 SEQuende OPEN ora 6 92 SEOQuenCe SA VES Rosi 6 93 STATUS OPERA On CON DION ir Ai 6 94 STATUS OPERation ENAB lis AS irse is 6 95 STA Tus OPERation EVEN o A E io dana 6 96 STATUS PRE Gels nit A A Seer A A R 6 97 STA Tus QUEStiOnable COND tION aisseciscativicessicnsttsensiocd Sectuasesssnnsecdonacs aeieea arei Eia aiias ani rasiat 6 98 STA Tus QUEStionablesENA Bie inann A EE E 6 99 STATus QUEStionable EVENE oreroraa a a aaea aa aaa 6 100 SYSTem CLOCKEREESTENCE siciasciscsscesevsecasucscdsGoeasenctscecaesedrathanwbssediese TR 6 101 SYSTem COMMunicate GPIB SELFJ ADDRESS oococcccccnonoconcnnonononononononinoccnnononocononacononcorcnonencanesosos 6 101 SY STO ERRONEO seis 6 102 SY STem HELP YN TA senate NEEE EE
76. VE SAVE nd aea aa E REEE EA AS 6 155 WAVE SELEG a il AEREE 6 155 W AVE TIME DEL ay is sesicevetssccssncenesctuitscsnwssossiasdanveadenteleabivuniignyssesetenabeabicenasgsansncesteveerstasdeseseseoessenacsnasiae 6 156 WAVE TIME DURation MODE ositos iii A aa AN Eei e aiaa 6 157 WAVE TIME DURation TIME cusco A A an 6 158 WAVE TIME MOVE id ie A a atole sii 6 159
77. VE SELect Response lt character_data gt one of CH1 CH2 SCR Arguments lt character_data gt CH1 CH2 SCR Example WAVE SEL CH1 OPEN MY WAVE Opens MYWAVE into Channel 1 Channel 1 is displayed 6 155 WAVE TIME DELay Purpose Command Query Response Arguments Notes 6 156 Changes the time position of the contents of the waveform at and to the right of the left cursor The argument specifies the new time position for the left cursor If the delay is decreased the left cursor and all data offer it move to the left and some data to the left of the left cursor is overwritten If the delay is increased then the left cursor moves to the right and the voltage level under the left time cursor is repeated Features can be delayed with a resolution of a 100 ps at 400 MHz clock decade WAVE TIME DELay lt numeric_value gt WAVE TIME DELay lt numeric_value gt the value last set by WAVE TIME DELAY lt numeric_value gt seconds This is an overlapped command that is subsequent commands can execute before this operation completes Use WAI or OPC to synchronize with completion Remote Commands WAVE TIME DURation MODE Purpose Command Query Response Arguments Selects the mode for changing the duration of a feature The two modes are insert and overwrite Insert changes the duration of the region between the left and right time cursors but does not affect the features
78. able register is set with SRE n The Status Byte Enable Register is read with SRE Note nis the sum of the decimal bit weights of all bits that are true The STB query does not alter any bits in the status byte Only the CLS command can clear the status byte except for the MAV Message Available but which depends on the state of the output queue Associated Status Register Significance Operation Status Register Summarizes Operation Status Register none RQS service request Bit Standard Event Status Register Summarizes Standard Event MAV Message Available Questionable Status Register Summarizes Questionable Status Register Error Event Queue Error Event Bit none Not Used none Not Used This bit is not used by the WaveStation and has no significance This bit is not used by the WaveStation and has no significance The Error Event Queue can hold three error codes When the queue contains an error code bit 2 is true 1 When the queue is cleared empty the corresponding bit 2 is false 0 This bit will sense that an error has occurred To read the error code from the Error Event Queue the queue must be read using the SYSTem ERRor command Bit 3 Questionable Status Summary Bit Bit 4 MAV Message Available Bit Bit 5 Standard Event Status Summary Bit Bit 6 RQS Request Service Bit Bit 7 Operation Status Summary Bit If this bit is true 1 it indicates that an event has caused one of the enab
79. alog SEQuence Purpose Read out information about sequence file in the current project Command None Query MMEMory CATalog SEQuence Response See MMEMory CATalog ALL Arguments None MMEMory CATalog WAVeform Purpose Read out information about waveform files in the current project Command None Query MMEMory CATalog WAVeform Response See MMEMory CATalog ALL Arguments None 6 75 Remote Commands _ MMEMory DATA Purpose Retrieve a waveform file from the project via GPIB Command MMEMory DATA filename data Query MMEMory DATA filename Response A DIF expression Arguments Filename is a quoted string of up to 15 characters Data is DIF expression MMEMory DATA PREamble Purpose Command Query Response Arguments 6 76 Retrieve the DIF header but not the VALUES of a waveform file in the current project None MMEMory DATA PREamble filename A DIF preamble see Section 5 for details Filename is a quoted string of up to 15 characters MMEMory DELete EQUation Purpose Command Query Response Arguments Purpose Command Query Response Arguments Example Remove an equation file from the current project MMEMory DELete EQuUation filename None None Filename is a quoted string of up to 15 characters MMEMory DELete IMAGe Remove an image file from the current project MMEMory DELete IMAGe filename None None filename image file to be deleted in quot
80. alue gt FGENerator PULSe SWEep TIME lt numeric_value gt lt numeric_value gt 1 nsto1 s This command is value coupled to all FG EN lt any gt SWEep TIME commands for the specified channel See also FGEN STATe and FGEN SELect FGENerator PULSe SWEep STATe Purpose Command Query Response Arguments Notes Turns the sweep on or off for the PULSE function in the specified channel s function generator either 1 or 2 When sweep is off the parameters specified by FGENerator PULSe PERiod and FGENerator PULSe TDELay define the output pulse train FGENerator PULSe SWEep lt Boolean gt FGENerator PULSe SWEep lt Boolean gt one of 0 1 OFF ON O Turn sweep off 1 Turn sweep on OFF Turn sweep off ON Turn sweep on See also FGEN STATe and FGEN SELect 6 41 Remote Commands FGENerator PULSe TDELay Purpose Command Query Response Arguments Notes 6 42 Sets the amount of time between the beginning of the waveform and the beginning of the first edge of the pulse in the specified channel s function generator either 1 or 2 FGENeratorit PULSe TDELay lt numeric_value gt FGENerator PULSe TDELay lt numeric_value gt lt numeric_value gt 1 TDELay should be set to 0 when the waveform is playing continuously TDELay adds time before the beginning the 1st pulse period This is useful in single triggered mode where TRiGger DELay affects both channel
81. and measurement instrument manufacturers and is intended to provide a consistent programming language for instrument control and data transfer lIEEE 488 GPIB was adopted as a standard remote control interface in 1975 The standard specified system interconnections and communication protocols which provided a universal hardware interface for integrating multiple instruments into a test system The original standard put instruments on a common bus but each instrument manufacturer used a proprietary command set Every time a user added a new instrument to the bus he had to learn another set of often enigmatic commands Updates to the standard in 1987 led to lIEEE 488 1 and 488 2 which further refined the standard but still fell short of ensuring a common command syntax beyond a few mandated common commands In 1990 the Standard Commands for Programmable Instruments SCPI consortium developed a system of common remote commands Although SCPI was originally defined for GPIB it has now spread well beyond that interface and is being used to support a wide range of hardware interfaces For example SCPI has became a major element in the implementation of VXI based systems The SCPI command language standardizes command syntax and structure used in remote control of test and measurement instrumentation and is being rapidly adopted by leaders in test amp measurement instrumentation This allows the user to learn a single set of remote comman
82. aracter_data gt HCOPy TARGet PRINter MODel lt character_data gt EMX Epson MX FX ELQ Epson LQ HPLaserJet HP Laserjet I HPTHinkjet HP Thinkjet HCOPy TARGet PRINter QUALity Purpose Command Query Response Arguments Set or query the print quality Draft provides faster but lower resolution printing Proof provides higher resolution and higher quality printing This setting is not available for all supported printers HCOPy TARGet PRiNter QUALity lt character_data gt HCOPy TARGet PRINter QUALity lt character_data gt DRAFt PROof HCOPy TARGet PRINter SIZE Purpose Command Query Response Arguments Set the size of the hardcopy Notebook is a smaller size that is suitable for including into a lab notebook Presentation provides a lager size print The size is not setable for all printer types HCOPy TARGet PRINter SIZE lt character_data gt HCOPy TARGet PRINter SIZE lt character_data gt PRESentation NOTebook 6 71 Remote Commands HCOPy TARGet TYPE Purpose Set or query the hardcopy format Hardcopies may be formatted to provide data suitable for a printer or data in a graphics file format Command HCOPy TARGet TYPE lt character_data gt Query HCOPy TARGet TYPE Response lt character_data gt Arguments PRiNter GRAPhics HCOPy MMediate Purpose Begin a hardcopy to a printer or file Command HCOPy Query None Response None Arguments None 6
83. aronarononononors 6 33 FGENeratorf MULTitone TONEH FREQuency oonooocioonocococccconocccnonoconococonoconoconororonoroncnorononoroncononososs 6 34 FGENeratot PULSE AMPLIDOO irradia iria ii 6 34 FOENertor PUES OD ASE A a 6 35 FOSENerator PULSE TIMO aaa da 6 36 PGE Neratort PULSO PER OG oi 6 37 PGENerator PULSe S WECD S PAC id 6 38 FGENeratorr PULSE WES TA Ricos 6 39 FOE Nerator PULSE WED 1 OP nica 6 39 FGENerator PULSES W Eep TIME ana ta 6 40 FGENerator PULSe S W Een STA TE iia ii 6 41 EGENetaton PULSS TD BAY a a sis 6 42 PGE Neratort PULSE WID Thin 6 43 FGENerator RAMP AMPLitude c ccccssccceesseeeeees A PP E AE OO T 6 44 FGENerator RAMP FREQUENCY iii aa A aeea asai 6 44 FOENetator RAMP IN Via E A A AAA 6 45 FGENeratoBk RAMP ORE SE ai 0D FGENeratorteRAMP SPOS IRON cosita is le ara aaa r oer AEri ea Ea 6 46 FGEN rator RAMP SWEep SPACIN inicie desd doit 6 46 EGENEeratort RAMP SWEep TAR baiiraitaia ia an 6 47 FGENerator RAMP SW Eep STOP oeenn oaaae A AAA 6 47 FGENeratorf RAMP SWEsp TIME cecocooiocaniaa iii is ces 6 48 FGENeratortt RAMP SWEep STATE ooocononcon AR 6 48 FGENerator SELect e sseoesssesscceseesesosoressevesssssassssooee A 6 49 FGENeratorkSINEAMP te cti did 6 49 FGENeratorit SINE FREQUENCY visi ai a A SN 6 50 PGENeratori SINE OFF Set aia tE ie 6 50 FGENeratonESINE PHAS Cani iia add 6 51 FGENerator SINE S W Bep SPACING sonora E ARE EEEN iaa 6 51 FGENerator SINE SWEep
84. ation Overview of MMEMory Commands MMEMory CATalog EQUation IMAGe SEQuence WAVeform ALL DATA PREamble DELete EQUAation IMAGe PROJect SEQuence WAVeform Returns a list of all equations in the current project Returns a listing of image files located in the current project Returns a list of all sequences in the current project Returns a list of all waveforms in the current project Returns a list of all objects in the current project Upload or download the waveform named in the associated argument Waveforms are stored in DIF format Upload or download the header of the waveform named in the associated argument Deletes the named equation Deletes the named image Deletes the named project Deletes the named sequence Deletes the named waveform 3 19 Instrument Model and Subsystem Hierarch PROJect Subsystem The project subsystem is used to create open and save individual user work areas called projects Overview of PROJect Commands PROJect NEW Creates a new project with the specified name The current project is closed and the new project is created OPEN Opens the specified project if it exists no action is taken if it doesn t exist and closes current project SAVE Saves the current project 3 20 SYSTem Subsystem Provides controls not specific to the vertical horizontal trigger or measurement subsystems Overview of SYSTem Commands SYSTem CLOCk EREFerence COMMunicate G
85. ax represents the maximum range in the selected format WAVE DIGital SMValue Purpose Command Query Response Arguments Notes In the overwrite mode the specified masked value set using the WAVE DIGitial MVALue command is ORed into the waveform for the duration set in WAVE DIGital Duration starting at the location specified in WAVE DiGital LCURsor In the insert mode the masked value is simply inserted into the waveform starting at the Time Left cursor location In either mode the binary weight of the inserted bits is restored to their original values WAVE DIGital SMValue None None None lf the mask was 200 11001000 and the masked value was 5 then in insert mode the value 136 128 8 or 10001000 would be inserted into the waveform at the left cursor 6 119 Remote Commands WAVE DIGital SVALue Purpose Command Query Response Arguments Inserts or overwrites the value set using the WAVE DIGital VALue command into the waveform for the duration set in WAVE DIGital Duration starting at the location specified in WAVE DIGital LCURsor WAVE DIGital SVALue None None None WAVE DIGital VALue Purpose Command Query Response Arguments Notes 6 120 Sets the value to be inserted using the WAVE DIGital SMValue command WAVE DIGital VALue lt numeric_value gt WAVE DIGital VALue lt numeric_value gt lt numeric_value gt 0 255 The numeric value may be ente
86. bit If a bit is 1 true in the enable register AND its associated event bit transitions to 1 true the associated summary bit will transition to 1 true Operation Status Register Bit Assignments Bit 14 Not Used Bit 13 Not Used Bit 12 Resample Ch 2 Required Bit 11 Not Used Bit 10 Sequence compile complete Bit 9 Reserved for future use Bit 8 Reserved for future use Bit 7 Not Used Bit 6 Not Used Bit 5 Waiting for Trigger Bit 4 Not Used Bit 3 Not Used Bit 2 Not Used Bit 1 Not Used Bit 0 Not Used Decimal 16384 Decimal 8192 Decimal 4096 Decimal 2048 Decimal 1024 Decimal 512 Decimal 256 Decimal 128 Decimal 64 Decimal 32 Decimal 16 Decimal 8 Decimal 4 Decimal 2 Decimal 1 STATus OPERation ENABle lt numeric_value gt STATus OPERation ENABle lt numeric_value gt lt numeric_value gt 0 to 32767 6 95 Remote Commands STATus OPERation EVENt Purpose Command Query Response Arguments Notes 6 96 Query the contents of the Operation Status Event register Reading the Event register will clear the register Operation Status Register Bit Assignments Bit 14 Not Used Bit 13 Not Used Bit 12 Resample Ch 2 Required Bit 11 Not Used Bit 10 Sequence compile complete Bit 9 Reserved for future use Bit 8 Reserved for future use Bit 7 Not Used Bit 6 Not Used Bit 5 Waiting for Trigger Bit 4 Not Used Bit 3 Not Use
87. by a line drawn from the voltage point under the left cursor to the voltage point under the right cursor WAVE AMPLitude AMPLitude lt numeric_value gt WAVE AMPLitude AMPLitude lt numeric_value gt lt numeric_value gt 100 uV 10 V WAVE AMPLitude INVert Purpose Command Query Response Arguments Note Inverts the portion of the selected waveform between the time cursors WAVE AMPLitude INVert None None None Added in firmware version 2 0 or higher 6 107 Remote Commands WAVE AMPLitude MEDian Purpose Command Query Response Arguments Sets the median voltage level of the region between the left and right time cursor where median is defined as Vbottom 1 2 the peak to peak amplitude of the region WAVE AMPLitude MEDian lt numeric_value gt WAVE AMPLitude MEDian lt numeric_value gt lt numeric_value gt 5 to 5 WAVE AMPLitude VMAX Purpose Command Query Response Arguments 6 108 Sets the maximum voltage of the region between the left and right time cursors The VMAX only changes the maximum voltage the minimum voltage is left unchanged WAVE AMPLitude VMAX lt numeric_value gt WAVE AMPLitude VMAX lt numeric_value gt lt numeric_value gt 5 to 5 i Remote Commands WAVE AMPLitude VMIN Purpose Sets the minimum voltage of the region between the left and right time cursors The VMIN only changes the minimum voltage the maximum voltage
88. ccsesssescsasscessscceeseees 4 4 Status Byte Register Definiti0N coconooooososaroccnenoinoacranenos 4 6 Checking Status and Requesting Service oonococcrnconococononanos 4 12 GPIB Service Request oosssonsnseesssssrsrssersruresrensereeeeseerosnesenee 4 15 SECTION 5 WAVEFORM TRANSFERS VIA GPIB INTOJUCUON sirere a Ea 5 1 Transferring Waveforms via GPIB cccccccccerssssesssseseeeeeneeacenes 5 1 The Data Interchange Format DIF oocccooccncnonconcconacoconananonrnnos 5 2 Viewing Waveform Data in the DIF File ooccccccncoononicccnonooss 5 5 Other Data Formats iia daa 5 8 SECTION 6 REMOTE COMMANDS ccccccsssscecencresseeeecccoessesseeesensseeesesenens 6 1 SECTION 7 REMOTE PROGRAMMING EXAMPLES PILFOGUCTION scone a E 7 1 Setting Up the Environment for QuickBASIC Programming asian iii an 7 1 The LWGPIB BAS Program occccnoncccnccnononicccnnonoconcnanacinoninccnanononas 7 2 End Or Identify EOI Operation oocccccccccnccconanonccninnaninonanonanas 7 9 Initializing GPIB Communication with the AWG cooocacaoacooaoooos 7 9 Sending a Command to the LW400 Series AWG ccmmocccooonono os 7 9 Sending a Query Reading the Response and Using Status to Determine When the Operation is Done 7 10 Downloading a Waveform cccccoconcnonenononanccnnennonacanononsononronanononess 7 11 Uploading a Waveform DIF File to th
89. cted waveform in the Data Interchange Format DIF A DIF file can be sent to the WaveStation using the command WAVE DATA lt block gt where the data block is the DIF filename WAVEFORM TRANSFERS VIA GPIB The Data Interchange Format DIF 9 2 An ASCII printout of a typical DIF file is shown below Please note that the actual file would be output as one continuous record without line feeds New lines have been inserted for readability The preamble which is ASCII readable describes the waveform and all the necessary AWG setup parameters The waveform data is included in the data array as a series of IEEE 32 bit single precision floating point numbers The waveform data is not in an ASCII compatible format and is not printed in this example WaveStation waveform files contain two DIF expressions as shown and explained below DIF VERSion 1993 0 IDENtify NAME NEW_WAVE PROJect USER ENCode FORMat IFP32 HRANGE 0 500000 LRANGE 0 500000 DiMension Volts TYPE EXPLicit SIZE 64 UNITs V ANALog 0 DiMension Time TYPE IMPLicit SCALe 2 5e 009 OFFSet 0 UNITS s TRACe Cursors_include LABEL Time STARt 0 STOP 1 5999e 006 DATA data_array CURVe VALues 3256 SSSCSTSSS SEO THES SSC HESCHHCSSCSCHOSP SETS RFETHESETSTEHRF CREASE ESAP EERO FESHSEHSTHSESARESCHCTS FEOF OSHTHEHF ERE HE HPaeteenaenasaasenas DIF VERSion 1993 0 DiMension Time TYPE EXPLicit SIZE 2 DiMension Polar
90. d Bit 2 Not Used Bit 1 Not Used Bit 0 Not Used None STATus OPERation lt numeric_value gt None Decimal 16384 Decimal 8192 Decimal 4096 Decimal 2048 Decimal 1024 Decimal 512 Decimal 256 Decimal 128 Decimal 64 Decimal 32 Decimal 16 Decimal 8 Decimal 4 Decimal 2 Decimal 1 The Waiting for Trigger bit is updated by software and is not guaranteed to detect every occurrence of Waiting for Trigger if the wait is short Status is checked between command executions and several hundred times a second when the LW400 is idle that is not processing commands e STATus PRESet Purpose Command Query Response Arguments Notes Clears the Operation and Questionable Enable registers and sets positive transactions as the detected events During power on the enable registers are set to their STATus PREset states STATus PRESet None None None See also CLS 6 97 Remote Commands STATus QUEStionable CONDition Purpose Command Query Response Arguments 6 98 Query the contents of the Questionable Status Condition register Reading the Condition register is non destructive Questionable Status Register Bit Assignments Bit 14 Command Warning Bit 13 Not Used Bit 12 Not Used Bit 11 Not Used Bit 10 Not Used Bit9 Not Used Bit 8 Not Used Bit 7 Not Used Bit6 Not Used Bit 5 Not Used Bit 4 Not Used Bit3 Not Used Bit 2 Not Use
91. d Bit 1 Not Used BitO Not Used None Decimal 16384 Decimal 8192 Decimal 4096 Decimal 2048 Decimal 1024 Decimal 512 Decimal 256 Decimal 128 Decimal 64 Decimal 32 Decimal 16 Decimal 8 Decimal 4 Decimal 2 Decimal 1 STATus QUEStionable CONDition lt numeric_value gt None e me STATus QUEStionable ENABle Purpose Command Query Response Arguments Remote Commands Set or query the enable mask which allows masked conditions in the event register to be reported in the summary bit If a bit is 1 true in the enable register AND its associated event bit transitions to 1 true the associated summary bit will transition to 1 true Questionable Status Register Bit Assignments Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Command Warning Not Used Not Used Not Used Not Used Not Used Not Used Not Used Not Used Not Used Not Used Not Used Not Used Not Used Not Used Decimal 16384 Decimal 8192 Decimal 4096 Decimal 2048 Decimal 1024 Decimal 512 Decimal 256 Decimal 128 Decimal 64 Decimal 32 Decimal 16 Decimal 8 Decimal 4 Decimal 2 Decimal 1 STATus QUEStionable ENABle lt numeric_value gt STATus QUEStionable ENABle lt numeric_value gt lt numeric_value gt 6 99 Remote Commands STATus QUEStionable EVENt Purpos
92. d all commands to and from the Operation LW400 series AWG s are terminated by asserting the EOI signal line simultaneously with the last byte transmitted No other command terminators are required Initializing GPIB The National Instrument GPIB interface must be opened to Communication communicate with a selected device by using the IBFIND With The AWG interface subroutine or the ILFIND function as shown in the following example from the Initdevice subroutine in the LWGPIB BAS program LINE INPUT ENTER GPIB ADDRESS OF LW4XX AWG ADD Enter GPIB addr DEVS DEV ADDS AWG ILFIND DEV determine unit descriptor of selected instrument at address ADD IBFIND and ILFIND return a positive number called the unit descriptor used to identify the selected device in all other GPIB transactions If the call fails a negative number is returned in place of the unit descriptor and provides an indication of an interface error Sending A Command To The subroutine SendCommand provides an example of using The LW400 Series AWG National Instrument s output command IBWRT to send a remote command in the form of the ASCII string CMD to the AWG Subroutine to send a remote command SUB SendCommand AWG COLOR 10 Set trace color to green LINE INPUT ENTER COMMAND CMD CALL IBWRT AWG CMD NI488 2 subroutine to write command string CMD to device AWG CLS END SUB REMOTE PROGRAMMING EXAMPLES Sending a Q
93. d data will then be inserted into the waveform at the left time cursor using the edit mode WAVE INSert MODE The LW400 must become controller to perform this operation see WAVE INSert SCOPe CONTroi WAVE INSert SCOPe None None None WAVE INSert SHAPe DC DURation Purpose Command Query Response Arguments Set the length of time of the DC function will be inserted by WAVE INSert SHAPe MMediate if DC has been selected by WAVE INSert SHAPe SELect WAVE INSert SHAPe DC DURation lt numeric_value gt WAVE INSert SHAPe DC DURation lt numeric_value gt lt numeric_value gt 10 ns to1S WAVE INSert SHAPe DC LEVel Purpose Command Query Response Arguments Set the DC voltage level which will be inserted by WAVE INSert SHAPe IMMediate if DC is selected by WAVE INSert SHAPe SELect WAVE iNSert SHAPe DC LEVel lt numeric_value gt WAVE INSen SHAPe DC LEVel lt numeric_value gt lt numeric_value gt 5 to 5 V resolution 1 mV 6 127 Remote Commands WAVE INSert SHAPe PULSe AMPLitude Purpose Command Query Response Arguments Notes Sets the base to top amplitude of the pulse WAVE INSert SHAPe PULSe AMPLitude lt numeric_value gt WAVE INSert SHAPe PULSe AMPLitude lt numeric_value gt lt numeric_value gt 10 to 10 See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe MMediate WAVE INSert SHAPe PULSe BASE Purpose Command Query Response
94. ds for instruments which are supplied by different manufacturers Because the functionality of instruments can vary widely and because new instruments and measurement techniques are constantly being developed the SCPI standard makes provision for new commands to be added 1 5 GENERAL INFORMATION as needed Because LW400 has many unique features for example waveform formats LeCroy has enhanced the SCPI language to provide access to these advanced capabilities SCPI benefits the user by providing a single command set for integrating multiple instruments into a test system The greatest benefit occurs on the second or subsequent system integration programs where the user does not learn yet another command language This manual will provide you with all the information you require to control your LW400 using the SCPI programming language Because SCPI is an industry standard and not specific to LeCroy details on the generic standard are available in industry standard SCPI manuals Interface Configuration and Special Commands GPIB Remote Control Controller GPIB Signals and Lines Setting the GPIB Address The WaveStation can be operated remotely from an instrument controller or computer across the GPIB bus and commands sent over GPIB can set or read any WaveStation front panel instruction The GPIB bus can interconnect many instruments to allow communication with one another over shared cables The GPIB bus uses a bit
95. e Command Query Response Arguments 6 100 Query the contents of the Questionable Status Event ee Reading the Event register clears the register Questionable Status Register Bit Assignments Bit 14 Command Warning Bit 13 Not Used Bit 12 Not Used Bit 11 Not Used Bit 10 Not Used Bit 9 Not Used Bit 8 Not Used Bit 7 Not Used Bit6 Not Used Bit5 Not Used Bit 4 Not Used Bit 3 Not Used Bit2 Not Used Bit 1 Not Used BitO Not Used None STATus QUEStionable lt numeric_value gt None Decimal 16384 Decimal 8192 Decimal 4096 Decimal 2048 Decimal 1024 Decimal 512 Decimal 256 Decimal 128 Decimal 64 Decimal 32 Decimal 16 Decimal 8 Decimal 4 Decimal 2 Decimal 1 K SYSTem CLOCk EREFerence Purpose Command Query Response Arguments Enable or disable External Reference in 10 MHz clock reference SYSTem CLOCk EREFerence lt Boolean gt SYSTem CLOCk EREFerence lt Boolean gt INT EXT INT Enables internal reference EXT Enables external reference SYSTem COMMunicate GPIB SELF ADDRESS Purpose Command Query Response Arguments Notes Set or query the GPIB address setting of the arbitrary function generator The default address setting is 1 and any setting in the range from 1 30 may be specified SYSTEM COMMunicate gpib address lt numeric_value gt SYSTem COMMunicate GPIB ADDRess lt numeric_value gt lt numeric_valu
96. e Sets the width of the pulse from 50 up the rising edge to 50 down the falling edge Sets the peak to peak amplitude of the ramp in the specified channel s function generator either 1 or 2 Sets the frequency of the ramp Controls whether the ramp is rising or falling Set the median voltage of the ramp waveform Sets the start position of the ramp in percentage of the ramp s peak to peak amplitude Sets the start frequency of the sweep Sets the stop frequency of the sweep Sets the sweep duration Turns the sweep on or off Selects which function the specified channel s function generator outputs The available functions are SINE TRlangle SQUare RAMP PULSe MULTitone and DC Sets the peak to peak amplitude of the sine wave in the specified channel s function generator either 1 or 2 Sets the frequency of the sine wave Sets the voltage of the zero degree phase of the sine waveform Sets the start phase of the sine wave Selects the sweep type either linear or log Sets the start frequency of the sweep Sets the stop frequency of the sweep Sets the sweep duration Turns the sweep on or off FGENerator SQUare AMPLitude BASE ETiIMe FREQuency SWEep SPACing STARt STOP TIME STATe TDELay TRiangle AMPLitude FREQuency OFFSet PHASe SPACing SWEep STARt STOP TIME STATe STATe Sets the peak to peak amplitude of the square wave in the specified channel s function generator
97. e AWG cccccconocoonnonoco 7 12 INDEX INDEX OF REMOTE COMMANDS TABLE OF CONTENTS THIS PAGE LEFT INTENTIONALLY BLANK INITIAL INSPECTION WARRANTY PRODUCT ASSISTANCE It is recommended that the shipment be thoroughly inspected immediately upon delivery to the purchaser All material in the container should be checked against the enclosed Packing List LeCroy cannot accept responsibility for shortages in comparison with the Packing List unless notified promptly If the shipment is damaged in any way please contact the Customer Service Department LeCroy warrants its products to operate within specifications under normal use for a period of one year from the date of shipment Spares replacement parts and repairs are warranted for 90 days The instrument s firmware is thoroughly tested and thought to be functional but is supplied as is with no warranty of any kind covering detailed performance Products not manufactured by LeCroy are covered solely by the warranty of the original equipment manufacturer In exercising this warranty LeCroy will repair or at its option re place any product returned to the Customer Service Department or an authorized service facility within the warranty period provided that the warrantors examination discloses that the product is defective due to workmanship or materials and that the defect has not been caused by misuse neglect accident or abnormal conditions or operation
98. e WaveStation is waiting for trigger are as follows STATus PREset Set QUEStionable and OPERation enable registers to 0 everything disabled STATus OPERation ENABle 32 Enable bit 5 waiting for trigger SRE 128 Enable SRQ bit 6 RQS Enable operation summary bit 7 When the WaveStation is waiting for a trigger the SRQ line on the GPIB bus will be asserted When the SRQ is asserted it must be serviced with a serial poll CLS Clear all status registers following serial poll The commands to fully setup and service the SRQ using the National Instruments IBIC program are as follows The IBIC program is provided with all National Instruments GPIB boards but does require a GPIB board Please refer to the Interface Configuration Section of this manual or to the National Instruments GPIB manual for additional information on the BIC program CD GPIB PC Change to the National instrument GPIB PC subdirectory IBIC Start the IBIC program IBFIND devi Set the GPIB address to 1 the WaveStation address IBWRT IDN Ask for WaveStation Identification to check communications IBRD 100 Read back id If ID does not return please refer to Interface Configuration Section of this manual for possible problems DO NOT CONTINUE if identification is not returned IBWRT STATus PREset Set QUEStionable and OPERation enable registers to O everything disabled IBWRT STATus OPER ENA 32 Enable bit
99. e also FGEN STATe and FGEN SELect a a Remote Commands FGENerator PULSe SWEep STARt Purpose Sets the start frequency of the sweep in the specified channel s function generator either 1 or 2 Command FGENerator PULSe SWEep STARt lt numeric_value gt Query FGENerator PULSe SWEep STARt Response lt numeric_value gt Arguments lt numeric_value gt 1Hz to 50 MHz Notes This command is value coupled to all FGEN lt any gt SWEep STAR commands for the specified channel The upper limit is enforced when the waveform is built See also FGEN STATe and FGENA SELect FGENerator PULSe SWEep STOP Purpose Sets the stop frequency of the sweep in the specified channel s function generator either 1 or 2 Command FGENerator PULSe SWEep STOP lt numeric_value gt Query FGENerator PULSe SWEep STOP Response lt numeric_value gt Arguments lt numeric_value gt 1Hz to 50 MHz Notes This command is value coupled to all FGEN lt any gt SWEep STOP commands for the specified channel The upper limit is enforced when the waveform is built See also FGEN STATe and FGEN SELect 6 39 Remote Commands FGENerator PULSe SWEep TIME Purpose Command Query Response Arguments Notes 6 40 Sets the amount of time that it will take to go from the SWEep STARt to SWEep STOP in the specified channel s function generator either 1 or 2 FGENerator PULSe SWEep TIME lt numeric_v
100. e command STATus OPERation will return false 0 because it was cleared when the event register was read with the command above The command STATus OPERation CONDition will return true 1 Status amp Error Reportinc Event Enable Registers because it was not cleared when read and the WaveStation is still waiting for a trigger When the waveform is being generated the command STATus OPERation will return false 0 because the event register was read and cleared the first time the command was sent The command STATus OPERation CONDition will return false 0 because the WaveStation is not waiting for a trigger If the WaveStation was waiting for a trigger receives a trigger and we send the query STATus OPERation While the waveform is being generated then this query will return true 32 because the event of waiting for trigger has occurred since the event register was last cleared The query STATus OPERation COND Will return false 0 because the WaveStation is not currently waiting for a trigger The WaveStation registers are arranged in a tree like structure The Status Byte Register is the root of the structure and branches out to summarize the Standard Event Status Register the Operation Status Registers the Questionable Status Register and the Error Event Queue Coupled with each event register is an Enable Register The Enable Registers determine which if any bits of the associated Event Register will be summarized in
101. e gt GPIB address of the instrument Must be between 1 30 This command takes effect immediately Any further communication over GPIB must address the LW400 at its new address 6 101 Remote Commands SYSTem ERRor Purpose Command Query Response Arguments Query up to the last three system errors most recent first The result of the Query is the error number followed by the error text for the next most recent system error None SYSTem ERRor lt numeric_value gt lt string gt for example 0 No Error None SYSTem HELP SYNTax Purpose Command Query Response Arguments Notes 6 102 Find out the full command header and argument types for a known command header None SYSTem HELP SYNTax lt string gt lt string gt None Example system help syntax OUTP1 FILT FREQ returns OUTPut1 FILTer LPASs FREQuency lt numeric_value gt For query only headers the must be included for example system help syntax system help syntax SYSTem VERSion Purpose Read out what version of SCPI the instrument uses Command None Query SYSTem VERSion Response 1993 0 Arguments None 6 103 Remote Commands TRIGger SEQuence BCOunt Purpose Command Query Response Arguments Sets the number of repetitions of the waveform that will be played after a trigger is received in burst mode TRIGger BCOunt lt numeric_value gt
102. e summary condition or event changes from false 0 to true 1 and will remain set until cleared using the CLS command or by reading the register Querying the Operational and Questionable Status Register Since the Operational Status Register and the Questionable Status Register can be both condition and event registers depending on the query form the query form is very important To read the Operational and Questionable Event Registers use the following commands STATus OPERation Read Operation Status Event Register STATus QUEStionable Read Questionable Status Event Register To read the Operation and Questionable Condition Registers use the following commands STATus OPERation CONDition Read Operation Status Condition Register STATus QUEStionable CONDition Read Questionable Status Condition Register The following example illustrates how the condition and event registers can return different values The waiting for trigger status is shown in bit 5 of the Operation Status register The bit meaning of each bit in each register is documented later in this section While the WaveStation is waiting for a trigger the commands STATus OPERation and STATus OPERation CONDition return the same value for bit 5 Both commands retum true 32 because the WaveStation is waiting for a trigger If both commands are issued again while the WaveStation is still waiting for a trigger the results will be different Th
103. econd line in the example above cannot contain just the argument on it requires that the keyword OUTPut1 be included An alternative form of the combined command places the commands in hierarchical order and doesn t require a re statement of the keyword OUTPut1 on FiLTer FREQuency 1E6 A complete discussion of SCP command structure is contained in SCPI 1993 Volume 1 Syntax and Style available from the SCPI Consortium The English nature of SCP commands often means that a command can directly be mapped to a corresponding menu control Where standard commands are not available in the 1993 SCPI standard LeCroy has extended the language to facilitate control of the instrument Extensions to the language use command names and arguments that adhere to the terminology used in the menu system wherever possible 3 3 Instrument Model and Subsystem Hlerarch Command Subsystems OUTPut Subsystem This section provides a comprehensive overview of the SCPI command subsystems All command keywords are shown This section is intended to assist the user in rapidly locating the command form required to carry out AWG actions or query settings and values Commands with only a query form are shown with a as a suffix Command arguments are not described in detail in this section Refer to Section 6 of this manual for details of command arguments and for additional information on the commands The OUTPut subsystem provides control of
104. ect and WAVE INSen SHAPe lMMediate WAVE INSert SHAPe TRiangle FREQuency Purpose Command Query Response Arguments Notes Sets the frequency of the triangle wave which will be inserted by WAVE INSert SHAPe IMMediate WAVE INSert SHAPe TRiangle FREQuency lt numeric_value gt WAVE INSert SHAPe TRlangle FREQuency lt numeric_value gt lt numeric_value gt limits depend on clock decade 400 MHz 400 Hz to 25 MHz 1 Hz resolution 40 kHz 0 04 Hz to 2 5 kHz 0 0001 Hz resolution See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe I MMediate WAVE INSert SHAPe TRiangle OFFSet Purpose Command Query Response Arguments Notes Set the median voltage of the triangle WAVE INSert SHAPe TRiangle OFFSet lt numeric_value gt WAVE INSert SHAPe TRlangle OFFSet lt numeric_value gt lt numeric_value gt 5 to 5 V 1 mV resolution See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe MMediate 6 143 Remote Commands WAVE INSert SHAPe TRiangle PHASe Purpose Command Query Response Arguments Notes Phase of the triangle wave WAVE INSert SHAPe TRlangle PHASe lt numeric_value gt WAVE INSert SHAPe TRlangle PHASe lt numeric_value gt lt numeric_value gt 0 to 360 degrees 0 05 degree resolution See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe lMMediate WAVE INSert SHAPe IMMediate Purpose Command Query Response Arguments 6 144 Ins
105. el s function generator either 1 or 2 FGENerator RAMP SPOSition lt numeric_value gt FGENerator RAMP SPOSition lt numeric_value gt lt numeric_value gt 0 to 100 See also FGEN STATe and FGEN SELect FGENerator RAMP SWEep SPACing Purpose Command Query Response Arguments Notes 6 46 Selects the type of sweep either linear or log in the specified channel s function generator either 1 or 2 FGENerator RAMP SWEep SPACing lt character_data gt FGENerator RAMP SWEep SPACing lt character_data gt LiNear or LOG See notes for FGEN PULSE SWEep SPACing See also FGEN STATe and FGENA SELect Remote Commands FGENerator RAMP SWEep STARt Purpose Sets the start frequency of the sweep in the specified channel s function generator either 1 or 2 Command FGENerator RAMP SWEep STARt lt numeric_value gt Query FGENerator RAMP SWEep STARt Response lt numeric_value gt Arguments lt numeric_value gt 1Hz to 25 MHz Notes See notes for FGEN PULSE SWEEP STARt See also FGEN STATe and FGEN SELect FGENerator RAMP SWEep STOP Purpose Sets the stop frequency of the sweep in the specified channel s function generator either 1 or 2 Command FGENerator RAMP SWEep STOP lt numeric_value gt Query FGENerator RAMP SWEep STOP Response lt numeric_value gt Arguments lt numeric_value gt 1 Hz to 25 MHz Notes See notes for FGEN PULSE SWEEP STOP See also FGEN
106. en and 5 V Notes See also FGEN STATe and FGEN SELect 6 31 Remote Commands FGENerator MULTitone AMPLitude Purpose Command Query Response Arguments Notes Sets the peak to peak amplitude of the defined multitone function in the specified channel s function generator either 1 or 2 FGENerator MULTitone AMPLitude lt numeric_value gt FGENerator MULTitone AMPLitude lt numeric_value gt lt numeric_value gt may be from 0 to 10 0 V See also FGEN STATE and FGEN SELect FGEN SINE RAMP Triangle SQUare and MULTitone AMPLitude are all value coupled FGENerator MULTitone NTONes Purpose Command Query Response Arguments Notes 6 32 Sets the number of tones to be calculated for the multitone function in the specified channel s function generator FGENerator MULTitone NTONes lt numeric_value gt FGENerator MULTitone NTONes lt numeric_value gt lt numeric_value gt may be from 1 to 10 See also FGEN STATe and FGEN SELect When FGEN1 STATE is on the multitone waveform is recalculated on the receipt of any FGEN1 MULT command FGENerator MULTitone OFFSet Purpose Command Query Response Arguments Notes Set the median voltage of the waveform in the specified channel s function generator either 1 or 2 FGENerator MULTitone OFFSet lt numeric_value gt FGENerator MULTitone OFFSet lt numeric_value gt lt numeric_value
107. er of pulse cycles inserted into the waveform The 10 90 transition time of the rising and falling edges of the standard wave pulse Sets the period 1 frequency of the standard wave pulse Sets time delay from the beginning of the waveform and the beginning of the first edge of the pulse Sets the half amplitude width of the standard wave pulse Sets the peak to peak amplitude of the standard wave ramp Sets the number of cycles of the standard wave ramp inserted into the waveform Sets the frequency of the standard wave ramp Controls the polarity of the ramp s slope i e rising or falling Sets the voltage of the zero degree phase of the ramp Sets the start position of the ramp in percentage of the ramp amplitude Instrument Model and Subsystem Hierarch WAVE INSert SHAPe SELect Selects which standard wave shape will be inserted into the waveform SINE AMPLitude Sets the peak to peak amplitude of the standard wave sine CYCLes Sets the number of cycles of the standard wave sine to be inserted into the waveform FREQuency Sets the frequency of the standard wave sine OFFSet Set the voltage of the zero degree phase of the standard wave sine PHASe Sets the start phase of the standard wave sine SQUare AMPLitude Sets the base to top amplitude of the square wave BASE Sets the voltage of the base level of the square wave CYCLes Sets the number of cycles of the square wave that will be inserted into the waveform ETIMe Sets
108. erarchy in order to rapidly locate the desired command and associated message you require Figure 1 shows the functional block diagram of the arbitrary waveform generator as viewed by the remote programming interface The structure of the instrument subsystems is closely related to this block diagram FGENerator PROJect MMEMory OUTPut TRIGger EQUa tion DISPlay Figure 1 Introduction to SCPI Command Syntax SCPI commands are English language based ASCII text strings The SCPI command set is based on a hierarchical model of a generic instrument The instrument is broken down into major system elements like OUTPUT DISPLAY etc The command follows a path from major functional elements down through 3 1 3 2 subsystems to specific functions within the subsystem For example to tum on Channel 1 s 1 MHz output bandwidth limit filter the command would be OUTPut1 FiLTer FREQuency 1E6 The command is shown in its long or verbose form As with all commands described in this manual the uppercase letters indicate the characters required to represent the short form of the command Note that SCPI instruments are not case sensitive the use of capitalization in this manual is only intended to show the difference between the long and short forms of the command Note also that the short form and long form are the only acceptable forms of a command So for frequency we can send freq or frequency but not
109. ert SHAPe SINE OFFSet lt numeric_value gt lt numeric_value gt 5 to 5 V 1 mV resolution See also WAVE INSent SHAPe SELect and WAVE INSert SHAPe MMediate 6 137 Remote Commands WAVE INSert SHAPe SINE PHASe Purpose Command Query Response Arguments Notes Sets the start phase of the sine wave WAVE INSert SHAPe SINE PHASe lt numeric_value gt WAVE INSert SHAPe SINE PHASe lt numeric_value gt lt numeric_value gt 0 to 360 degrees 0 05 degrees resolution See also WAVE INSert SHAPe SELect and WAVE INSent SHAPe lMMediate WAVE INSert SHAPe SQUare AMPLitude Purpose Command Query Response Arguments Notes 6 138 Sets the peak to peak amplitude of the square wave WAVE INSert SHAPe SQUare AMPLitude lt numeric_value gt WAVE INSert SHAPe SQUare AMPLitude lt numeric_value gt lt numeric_value gt 0 to 10 V resolution 1 mV See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe lMMediate WAVE INSert SHAPe SQUare BASE Purpose Command Query Response Arguments Notes Sets the voltage of the non triggered level of the square wave WAVE INSert SHAPe SQUare BASE lt numeric_value gt WAVE INSert SHAPe SQUare BASE lt numeric_value gt lt numeric_value gt 5 to 5 V 1 mV resolution See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe MMediate WAVE INSert SHAPe SQUare CYCLes Purpose Command Query Response Arguments Notes The n
110. erts the selected shape WAVE INSert SHAPe SELect at the left time cursor using the edit mode defined by WAVE INSert MODE WAVE INSert SHAPe None None None Remote Commands WAVE INSert WAVE Purpose Insert the named waveform into the current waveform at the TIME LEFT cursor using the edit mode defined by WAVE INSert MODE and WAVE INSert CURSor Command WAVE INSert WAVE lt string gt Query None Response None Arguments lt string gt Name of the waveform to insert in quotes Example WAVE INSert WAVE default a WAVE iINSert WRAP Purpose Select YES and the waveform will be treated as a continuous wave the last point wraps to the first point and the waveform is checked for discontinuities between the end and the beginning of the waveform Select NO if the waveform is only to be played once single shot or is part of a sequence where wrapping the ends might be an incorrect thing to do Command WAVE iNSert WRAP lt character_data gt Query WAVE INSert WRAP Response lt character_data gt Arguments YES or NO YES _ treat as continuous waveform NO treat as single shot waveform 6 145 Remote Commands WAVE MARKer CLOCK FIRSt Purpose Command Query Response Arguments Notes Sets the time at which the first rising edge of the waveform begins In order for this command to have affect WAVE MARKer TYPE must be set to CLOCK WAVE MARKer CLOCK FIRSt lt numeric_value g
111. es MMEMory DELete IMAGe test img deletes test img from the current project 6 77 MMEMory DELete PROJect Purpose Command Query Response Arguments Discard an entire project waves equations sequences from the LW400 MMEMory DELete PROVJect filename None None Filename is a quoted string of up to 15 characters MMEMory DELete SEQuence Purpose Command Query Response Arguments 6 78 Remove a sequence file from the current project MMEMory DELete SEQuence filename None None Filename is a quoted string of up to 15 characters MMEMory DELete WAVeform Purpose Discard a specific waveform from the LW400 Command MMEMory DELete WAVeform filename Query None Response None Arguments Filename is a quoted string of up to 15 characters 6 79 Remote Commands OUTPut FiLTer LPASs FREQuency Purpose Command Query Response Arguments Notes Sets the bandwidth for the selected channel OUTPuttt FILTer FREQuency lt numeric_value gt OUTPutit FILTer FREQuency lt numeric_value gt lt numeric_value gt 100e6 10e6 166 100e3 and 10e3 When a waveform file is opened or a function generator wave is created the filters are automatically set to match the clock decades They can subsequently be changed with this command If values other than specified are sent the LW400 will round to the nearest available value OUTPut NO ISe LEVel Purpose Command
112. essvscsscecsaccoscesscsusssacacsesens 6 141 WAVE INSert SHA Pe SOU are TDELV iia eS O N Orat ANNEN EN ESE 6 141 WAVE INSert SHAPe TRiangle AMPLitude ccccsesssssccssssstescesssesersceccesessseteeseseusestseeevseeusenereess 6 142 WAVE INSert SHAPe Uhlangle CY Cli6 aia Si 6 142 WAVE INSert SHAPe TRlangle FREQUENCY ainai ii 6 143 WAVE INSert SHAPe TRiangle OPE da iii 6 143 WAVE INSert SHAPe TRlangle PHASE iiseisicscsssseccdsiiexssecessesssanezensscaasessdeececdergesenncoesianubassgucsncsavdssessdene 6 144 WAVE INSert SHAPel IVMMediate sii oia 6 144 WAVE INS WAVE ni A 6 145 WAVE MARKE r CLOCK FIRS ticos ie 6 146 WAVE MAR Ker CLOCK PREQUENGCY bi 6 146 WAVE MARK eErEDGE DEP E ui A O E AA EERI 6 147 WAVE MARKer EDGE NDEFind ni dt 6 147 WAVE MAR Ker EDGE TIMES ai A ce dcaetectakeatenciass 6 148 WAVE MARK r EDGES FA Te ii AAA A ta 6 148 WAVE MAR Re LEVE iS dde 6 149 WAVE WAR Ker TYPE von di is 6 149 WAVE MATH SOURCE cian A A A E AA IEA A 6 151 WAVE MATH COUPE sucinta OE EAE Ni KEEA O EEE EA 6 150 WAVE MATH TIMMS At nia ia di 6 150 WAVE MATH SIM Ol lichen lace in a a a tne aaa O 1A WAVE MATHY OPERation ssccssssssoosssssscescesscesssscsorsonsnessesssersescnsssceesesesaecesessesenssssanessssonrsanesoeeraes 6 152 WAVE NEW lacas soba Sate 6 153 WV AWE OPEN ari Ia ado ede senses kone seinen 6 153 WAVE REGIONE FT sng ea asta cae ada decane evn lee ti 6 154 WAVE REGion RIGH aansien e ra AA AAA A AAE IAE 6 154 WA
113. eue to notify the controller 4 None The operations under WAVE TIME and SEQ COMPile are overlapped commands Unlike WAI OPC does not wait commands after OPC continue to execute without delay identifies the address to Pass Control Back to when the LW400 is about to be given control of the GPIB bus PCB lt numeric_value gt None None lt numeric_value gt 0 to 30 Secondary addresses are not supported by the LW400 This command is expected to be used when another controller is active and the LW400 must get data from a DSO See WA VE INSert SCOPe CONTro 6 5 Remote Commands a RST Purpose Force service specific functions to a known state Command RST Query None Response None Arguments None Notes The scope of RST is the same as the scope of LAN 6 6 RST also cancels pending OPC or OPC commands SRE Purpose Command Query Response Arguments Notes Sets the 8 bit Status Byte Enable Register SRE The SRE mask determines which events in the main Status Byte STB register are able to generate a GPIB Service Request SRQ If an event is enabled and transitions from false 0 to true 1 an interrupt SRQ is sent to the GPIB controller Clearing the SRE mask disables SRQ interrupts The RQS bit 6 is ignored in the SRE The bit assignments for the Main Status Byte Register are as follows Bit 7 Operation Status Summary Decimal 128 Bit 6
114. f 6e 20 3d 20 50 6f 6c 61 72 69 74 79 0002c0 20 28 20 54 59 50 45 20 45 58 50 4c 69 63 69 74 0002d0 20 55 4e 49 54 73 20 22 54 54 4c 22 29 20 4f 52 000280 44 65 72 28 42 59 20 54 55 50 4c 65 29 20 44 41 0002f0 54 41 20 3d 20 6d 61 72 6b 65 72 73 20 28 20 43 000300 55 52 56 65 20 28 20 56 41 4c 75 65 73 20 32 2e 000310 35 30 30 30 30 30 65 2d 30 30 39 2c 31 2c 20 38 000320 2e 30 30 30 30 30 30 65 2d 30 30 38 2c 30 29 20 000330 29 20 29 0a interpreting Waveform Data Values S D e E O ERN 0 DI F VERSion 1993 0 DiMension T ime TYPE EXPLI cit SIZE 2 DiMe nsion Polarity TYPE EXPLicit UNITS TTL OR Der BY TUPLe DA TA markers C URVe VALues 2 500000e 009 1 8 000000e 008 0 32 Floating point data can be converted back to fixed point decimal data using the following equation DATA Value Volts 1 2 517 1 F where S sign of the number 1 bit E exponent 8 bits F mantissa or fractional part 23 bits The sign exponent and mantissa elements must be extracted from the 32 bit binary value output from the WaveStation The following example which uses the second 32 bit data value in the file above 0000F0BE shows how this is accomplished 5 6 HEX 0 0 0 BINARY 0000 0000 0000 0000 1111 0000 1011 1110 From l Most Significant Byte LW420 gt Leost Significant Byte BINARY 1011 1110 1111 0000 0000 0000 0000 0000 CRedrawn in byte E M
115. ff 1 Turn sweep on OFF Turn sweep off ON Turn sweep on See also FGEN STATe and FGEN SELect 6 65 Remote Commands FGENerator STATe Purpose Command Query Response Arguments Notes 6 66 Turns the function generator on or off in the specified channel either 1 or 2 FGENerator lt Boolean gt FGENerator lt Boolean gt one of 0 1 OFF ON O Turn off function generator 1 Turn on function generator OFF Turn off function generator ON Turn on function generator When FGENH STATE is ON FGEN SELECT and FGEN lt selected function gt lt any command gt cause the wave to be immediately recalculated When FGENH STATE is changed from on to off the channel continues to play the same waveform until either a different wave is opened or FGENH STATE is set to ON again When FGEN STATE is changed from OFF to ON the function generator waveform is immediately recalculated This behavior can be used to advantage For example if FGEN1 Is playing a swept sine FGEN1 STATE OFF FGEN1 SINE SWEEP START 1 MHz STOP 10 MHz SPAC LOG FGEN1 STATE ON will only calculate one sweep instead of three Remote Commands HCOPy AUToincr Purpose Enable disable automatic increment of the filename when a hardcopy is stored to a file With automatic increment enabled the hardcopy files will be stored in a sequence as follows HCOPY001 PRN HCOPY002 PRN etc Command HCOPy AUToincr lt
116. ffer What is left in the waveform is the value of the baseline The baseline is defined by a lin drawn from the voltage point under the left cursor to the voltage point under the right cursor When pasted back into the waveform extracted data is always summed with the selected region of the waveform Command WAVE CUT EXTRact Query None Response None Arguments None WAVE DATA Purpose Used to read out the currently selected waveform or to read in a new waveform as a DIF expression Command WAVE DATA lt block gt Query WAVE DATA Response lt block gt Arguments lt block gt Notes The lt block gt is in Data Interchange Format DIF See Chapter 5 for a 6 114 detailed description When using the WAVE DATA lt block gt command to transfer a waveform to the WaveStation data must follow immediately hold off eoi See section 7 Remote Programming examples Remote Commands WAVE DATA PREamble Purpose Read out the DIF expression describing the currently selected waveform containing everything except the data values Command None Query WAVE DATA PREamble Response lt block gt Arguments None Notes The lt block gt is in Data Interchange Format DIF See Chapter 5 for a detailed description 6 115 Remote Commands WAVE Di Gital DURation POINts Purpose Command Query Response Arguments Sets the duration of the inserted waveform in sample points WAVE
117. fied channel s function generator either 1 or 2 Command FGENerator SQUare TDELay lt numeric_value gt Query FGENerator SQUare TDELay Response lt numeric_value gt Arguments lt numeric_value gt Notes See notes for FGEN PULSe TDELay See also FGEN STATe and FGEN SELect FGENerator TRiangle AMPLitude Purpose Sets the peak to peak amplitude of the triangle wave in the specified channel s function generator either 1 or 2 Command FGENerator TRlangle AMPLitude lt numeric_value gt Query FGENerator TRiangle AMPLitude Response lt numeric_value gt Arguments lt numeric_value gt O to 10 V Notes See note for FGEN RAMP AMPLitude See also FGEN STATe and FGEN SELect 6 61 Remote Commands FGENerator TRiangle FREQuency Purpose Command Query Response Arguments Notes Sets the frequency of the triangle wave in the specified channel s function generator either 1 or 2 FGENerator TRlangle FREQuency lt numeric_value gt FGENeratorit TRlangle FREQuency lt numeric_value gt lt numeric_value gt 1 Hz to 25 MHz FGEN4 TRlangle FREQuency and FGEN RAMP FREQuency are value coupled See also FGEN STATe and FGEN SELect FGENerator TRiangle OFFSet Purpose Command Query Response Arguments Notes 6 62 Set the median voltage of the triangle waveform in the specified channel s function generator either 1 or 2 FGENerator TRlangle OFFSet
118. frequ for example The short form is the first four letters unless the fourth is a vowel in which case the short form is the first three letters Keywords are separated by colons while arguments use a space as a delimiter Multiple commands can be included in a single multi element command by using a semi colon to separate each element Muttiple elements within the same command may be abbreviated if each element is within the same subsystem The second element in a multi element command must be preceded with a colon if it is not within the same subsystem Commands enclosed in square brackets indicate default subsystems For example OUTPutt STAte ON is equivalent to OUTPut1 ON These are four valid WaveStation commands under two different subsystems The WAVE and OUTPut subsystems WAVE SELECT ch1 Enable channel 1 editor WAVE OPEN new_wave Select waveform new_wave OUTPut1 FILTer FREQuency 1E6 Enables the Channel 1 MHz Bandwidth filter OUTPut1 on Enables channel 1 output The above commands may be sent to the WaveStation one command at a time or they may be combined into a single multi element command Following are valid forms tor a multi element command Each element in the command is separated by semi colon WAVE SELECT ch1 OPEN new_wave OUTPut1 FiLTer FREQuency 1E6 0UTPut1 on Note that when commands are combined using the semicolon they must be at the same level in the command hierarchy So the s
119. g Purpose Command Query Response Arguments Affects only integration If set to DC a flat non 0 level will integrate to a ramp If set to AC signal minus the median is integrated WAVE MATH COUPling lt character_data gt WAVE MATH COUPling lt character_data gt AC or DC lt character_data gt AC or DC WAVE MATH IMMediate Purpose Command Query Response Arguments 6 150 Performs the math function specified by WAVE MATH OPERation on the current waveform defined by WAVE OPEN and WAVE SOURce2 if applicable on the region between the left and right time cursors The result is placed into the current waveform WAVE MATH lMMediate None None None WAVE MATH SMOoth Purpose Sets the width in number of sample points for the wave math smoothing computation Command WAVE MATH SMOoth lt character_data gt Query WAVE MATH SMOoth Response lt character_data gt Arguments lt character_data gt THREE FIVE SEVEN NINE WAVE MATH SOURce2 Purpose Selects the other waveform for operations requiring two sources add sub mult div conv Command WAVE MATH SOURce2 lt string gt Query WAVE MATH SOURCe2 lt string gt Response lt string gt Arguments lt string gt The name of the other waveform in quotes Notes WaveMath operates on the currently selected waveform and SOURce2 if applicable to the selected operation 6 151 Remote Commands _ WAVE MATH OPERatio
120. he peak to peak amplitude of the multitone function in the specified channel s function generator either 1 or 2 Sets the number of tones to be calculated for the multitone function Set the voltage of the zero degree phase of the multitone waveform Sets the relative amplitude of the current tone in the multitone waveform Set the frequency of the current tone in the multitone waveform Sets the base to top amplitude of the pulse in the specified channel s function generator either 1 or 2 Sets the voltage of the base level of the pulse waveform in the specified channel s function generator either 1 or 2 Sets the 10 90 edge time of both the rising and falling edges of the pulse waveform Sets the period 1 frequency of the pulse in the specified channel s function generator either 1 or 2 Selects the type of sweep either linear or log in the specified channel s function generator either 1 or 2 Sets the start frequency of the sweep Sets the stop frequency of the sweep Sets the sweep duration Turns the sweep on or off Instrument Model and Subsystem Hlerarch FGENerator PULSe TDELay WIDTh RAMP AMPLitude FREQuency INVert OFFSet SPOSition SWEep STARt STOP TIME STATE SELect SINE 3 12 AMPLitude FREQuency OFFSet PHASe SWEep SPACing STARt STOP TIME STATe Sets the amount of time between the beginning of the waveform and the beginning of the first edge of the puls
121. he sequence list in the currently selected editor listing the specified waveform and the specified number of repetitions Command WAVE SEQuence LINK lt string gt lt numeric_value gt Query WAVE SEQuence LINK Response lt string gt lt numeric_value gt returns the last linked waveform name string and repetition count numeric Arguments lt string gt a waveform file name in quotes lt numeric_value gt number of repetitions 6 91 Remote Commands 7 SEQuence NEW Purpose Clears the sequence list for the currently selected editor and gives it the specified name Command WAVE SEQuence NEW lt string gt Query WAVE SEQuence NEW Response lt string gt Arguments lt string gt a file name for the new sequence file in quotes Notes WAVE SEQ NEW has no effect on the output of the LW4xx until the next SEQ COMPile The new sequence is not saved in the current LW4xx project until SEQ SAVE is issued SEQuence OPEN Purpose Opens the specified sequence file in the current project and reads it into the currently selected editor s sequence list Command WAVE SEQuence OPEN lt string gt Query WAVE SEQuence OPEN Response lt string gt Arguments lt string gt the name of a sequence file in the current project Notes The sequence is automatically compiled therefore SEQ COMPile need not 6 92 be issued Remote Commands SEQuence SAVE Purpose Save a sequence list from the cu
122. hey will be summarized in bit 5 of the main Status Byte Register The bit assignments for the Standard Event Status Register are as follows Bit 7 Power On Decimal 128 Bit 6 User Request Decimal 64 Bit 5 Command Error Decimal 32 Bit 4 Execution Error Decimal 16 Bit 3 Device Dependent Error Decimal 8 Bit 2 Query Error Decimal 4 Bit 1 Request Control Decimal 2 Bit 0 Operation Complete Decimal 1 Command None Query ESR Response lt value gt Arguments None 6 3 Remote Commands IDN Purpose Identifies the instrument The response indicates the manufacturer the model the serial number and the software revision level Command None Query IDN Response lt manufacturer gt lt model number gt lt serial number gt lt software revision gt Arguments None LRN Purpose Learn device setup Command LRN lt RESPONSE MESSAGE UNIT gt Query LRN Response Sequence of lt RESPONSE MESSAGE UNIT gt Arguments None Notes A sequence of lt RESPONSE MESSAGE UNIT gt elements may later be used as lt PROGRAM MESSAGE UNIT gt elements to return the device to this state OPC Purpose Command Query Response Arguments Notes PCB Purpose Command Query Response Arguments Notes When pending operation complete notify the controller OPC turns on the OPC bit in the ESR to notify the controller OPC places a 1 into the output qu
123. ick checkout requires a computer with a National Instrument GPIB card and the National Instruments IBIC program supplied by National Instruments with the purchase of a GPIB card This quick checkout also assumes that the GPIB card is already installed in the computer and has passed all test successfully For help installing or configuring the National Instruments GPIB card please contact National Instruments at 800 IEEE 488 or 512 794 0100 These example instructions are for an IBM PC or compatible computer The method for other computers is very similar Change to the National Instruments GPIB PC subdirectory with the command CD GPIB PC Start the IBIC program by with the command IBIC Tell the IBIC program the address of the WaveStation we assume address 1 with the command IBFIND DEV1 Send the identify command to the WaveStation with the command IBWRT IDN Read the id of the WaveStation with the command IBRD 100 2 5 The WaveStation response should have included the model number serial number and other information The full IBIC sequence should look as follows count 55 e devi IBRD 100 2100 ae end empl Count aga 40 65 43 72 6F 79 2c ac 157 34 30 30 2c de 57 34 32 30 2 55 31 30 30 30 If IBIC returned an error on any of the commands double check to make sure you typed the command exactly as given above then consult the National Instruments GPIB PC manual for help inter
124. ificance Byte none Not Used none Not Used none Resample Channel 2 none Not Used none Sequence Compile Complete none Reserved for future use none Reserved for future use none Not Used none Not Used none Waiting for Trigger none Not Used none Not Used none Not Used none Not Used none Not Used O F NWDAAON WO This bit is set when the WaveStation is in a triggered mode and is waiting for a trigger Set when a sequence has finished compilation This bit is set when an operation is performed that requires resampling of channel 2 Questionable Status Register Definition The Questionable Status Register contains bits which give an indication of the quality of various aspects of a signal or measurement Since the WaveStation does not acquire data and make measurements these bits are not used by the WaveStation The Questionable Event Status Register is read and cleared using the STATus QUEStionable command The event register may also be cleared without being read using the CLS command The Questionable Condition Status Register is read using the STATus QUEStionable CONDition command Each of the bits in the Questionable Event Status Register will be summarized in bit 3 of the Status Byte Register provided the bits are set in the Questionable Status Enable register For example to have only the command warning bit of the Questionable Event Status Register summarized in the Status Byte register use the following command t
125. iooncniiin nina cirio ninia ando 6 15 DISPlay WINDow TRACe CURSors TIME SALL ooonocnonccoonononcconnononennorucononononcrnoncconenoranooncanaanoncnnnnos 6 16 DISPlay WINDow TRACe CURSors TIME TEND ooonccnononnccconaconnonnccnanncoranancnconanncaconcoraconorcaconnanonaraso 6 16 DISPlay WINDow TRACe CURSors TIME TGRIG cccssssccssrscssrscereeveneesessessesseseseseesereveseeenseeeenes 6 17 DISPlay WINDow TRACe CURSors TIME TRACK cccsssssssssessrcessecsesesensnserssesensceseceeeensnsensaeesaes 6 18 DISPlay WINDow TRACe CURSors TIME STATE cccsscssssscssssessssessrssensesessrsceesesesseseesseseneeeoenes 6 19 DISPlay WINDow TRACe CURSors VOLTage BOTTOM cconcoconocononacnononncnonincncnnoracanancanansanocnnnonnaron ass 6 19 DISPlay WINDow TRACe CURSors VOLTage DELTa oonccnnonnnonccnnonanooanconnornnronocnnoronnonanrncononnaranenss 6 20 DISPlay WINDow TRACe CURSors VOLTage TGRld oooooccnononccnonocanoronanoncnrannnoncaranoononanananancncnnoness 6 20 DISPlay WINDow TRACe CURSors VOLTage TOP ooooccconocccnononcononancnnnnsoneconananccnanonocononncnranancariononas 6 21 DISPlay WINDow TRACe CURSors VOL Tage TRACK oooonoconcccoonononocconnncnnccnananconacocanaconanoconcanonaras 6 21 DISPlay WINDow TRACe CURSors VOLTage STATE ooccnnnconoocccnonocionoconnononccconanonnnoorancaracononcos 6 22 DISPlay WINDow TRACe GRATicule COD O csssscsssssrssssserossscssssonsecssscsscoe
126. is included for backwards compatability It is recommended 6 110 that the WAVE CLOCk MAX command be used WAVE CLOCk FiXed Purpose Command Query Response Arguments Note Selects whether the clock is fixed or variable If the clock is variable then the system may change the clock If the clock is fixed then the system will not change the clock Note see Clock and Filter Ranges on page 10 8 WAVE CLOCKk FlXed lt character_data gt WAVE CLOCk FIXed lt character_data gt VARiable FlXed VAR allows WaveStation to change clock Fix WaveStation not allowed to change clock This command is included for backwards compatibility It is recommended that the WAVE CLOCk ACSet command be used WAVE CLOCKk FREQuency Purpose Command Query Response Arguments This is the frequency clock rate at which the clock is fixed see WAVE CLOCKk FlXed If WAVE CLOCKk FlXed is VARiable this sets the clock frequency but subsequent edit operations may change the clock frequency WAVE CLOCk FREQuency lt numeric_value gt WAVE CLOCk FREQuency lt numeric_value gt lt numeric_value gt 6 111 WAVE CLOCKk LIMit Purpose To limit the clock setting to the frequency ranges covered by the internal filter ranges or allow full range of the clock Setting to YES limits the clock to the frequency ranges covered by the internal filters Setting to NO allows control of the clock over the full range
127. ity TYPE EXPLicit UNITS TTL ORDer BY TUPLe DATA markers CURVe VALues 0 000000e 000 1 8 00000e 008 0 DIF Preamble The DIF preamble consists of the following major blocks DIF IDENtify ENCode DiMension ANALog TRACe Identifies the file as a DIF file and contains the version of the DIF standard 1993 in this case Names the waveform and the source destination project Lists the data encoding format and the maximum and minimum waveform amplitude value in Volts The waveform data for the WaveStation is encoded as IEEE 32 bit single precision floating point numbers Specifies the structure and format of the data in the data block The Volts statement identifies the first dimension block as defining the waveform amplitude Waveform data consists of explicit amplitude values i e each amplitude value is listed individually The size field lists the number of data values included in the data block 64 in this example The UNIT s field lists the amplitude units V stands for Volts The ANALog field indicates the type of waveform 0 for analog 1 for digital If this field does not exist it is assumed to be an analog wave The second dimension block with the Time statement defines the waveform horizontal scale as an implicit function of time The time information is determined implicitly by knowing the amplitude sample number and the spacing between samples The SCAle field supplies the
128. led bits in the Questionable Status register to become true To determine the reason that caused the questionable status query the Questionable Status Register using the STATus QUEStionable command Further documentation is available in the section on the Questionable Status Register MAV is set if data is in the output queue It is reset once the output queue is empty This condition bit is not set or reset when the system controller reads STB Also the CLS command does not affect this bit The ESB is set if one of the bits in the ESR which is enabled in the ESE becomes set This bit summarizes the Event Status Register ESR The ESR identifies the type of event Since the ESR is an Event Register any bits stay set until the register is read After it is read all the bits are cleared Once cleared its summary bit bit 5 in the STB is also cleared ESR s event enable register or mask is ESE To set the ESE use ESE n and to read it use ESE The command to read the ESR is ESR Further documentation is available in the section on the Standard Event Status Register The RQS bit is the summary bit for the other bits in the STB byte For GPIB an SRQ interrupt is generated when the RQS bit is set The RQS bit is set when a bit in the STB is set and the corresponding bit in the Status Byte Enable Register SRE is set If this bit is true 1 it indicates that an event has caused one of the bits in the Operation Status
129. length block 0 followed by all 16 lines in the current equation sheet each 50 characters followed by a new line character EQUAation DEFine Purpose Defines an equation for the current equation line EQUation LINE The equation line may be up to 50 characters in length and must be surrounded by quotes Valid functions are SIN COS SQRT PULSE STEP LN LOG ABS EXP and TAN Valid operators are and Valid variable names are X1 through X16 Valid arguments are T Pi and NOISE Command EQUAation DEFine lt string gt Query EQUAation DEFine Response lt string gt Arguments lt string gt 6 28 EQUation DURation Purpose Sets the time span over which the equation will be calculated The equation will be calculated for DURation seconds with time zero starting at the left cursor Command EQUation DURation lt numeric_value gt Query EQUation DURation Response lt numeric_value gt Arguments lt numeric_value gt Notes Limits of lt numeric value gt above depend on amount of installed memory and clock decade With 1 M channel 400 MHz 2 62 ms max 40 kHz 26 2s max EQUation LINE Purpose Selects an equation line from the current equation sheet This is the line that other equation functions will operate on such as EQUation DEFine EQUAation DURation and EQUation CALCulate Command EQUAation LINE lt numeric_value gt Query EQUAation LINE Response lt numeric_
130. les voltage cursor tracking Turns the voltage cursors on or off Set the display intensity for the grid Select or query the grid style The grid may be a full grid ON no grid OFF or set to a cross hair CHAir Selects the type of grid to display Single dual SXY XY Sets the time at the horizontal center of the grid Sets the horizontal time per division of the grid Displays the portion of the waveform between the time cursors with the left cursor one division from the left edge of the grid and the right cursor one division from the right edge of the grid Sets the vertical volts per division of the grid Sets the voltage at the vertical center of the grid Restores the zoom settings to the previous time and voltage zoom settings HCOPy Subsystem The HCOpy subsystem provides control over printing and output of screen graphics form the WaveStation Overview of HCOPy Commands HCOPy AUToincr Filename INDex TARGet GRAPhics DESTination FORMat PRINter DESTination FFEed MODel QUALity SIZE TYPE IMMediate Enables automatic increment of the filename index when a hardcopy is stored to a file Set or query the current hardcopy file name Set the hardcopy filename index number The index may range from O to 999 Set the destination for the hardcopy graphics file Set the hardcopy graphics file format Set the destination of the hardcopy printer data The destination may be the GPIB or
131. lt numeric_value gt FGENerator TRlangle OFFSet lt numeric_value gt lt numeric_value gt 5 to 5 V FGEN SINE TRlangle RAMP and MULTitone OFFSet are valued coupled See also FGEN STATe and FGEN SELect i Remote Commands FGENerator TRlangle PHASe Purpose Sets the phase of the triangle wave in the specified channel s function generator either 1 or 2 Command FGENerator TRlangle PHASe lt numeric_value gt Query FGENerator TRiangle PHASe Response lt numeric_value gt Arguments lt numeric_value gt 0 to 360 degrees Notes FGEN SINE PHASE and FGEN TRlangle PHASE are valued coupled See also FGEN STATe and FGEN SELect FGENerator TRiangle SWEep SPACing Purpose Selects the sweep type either linear or log in the specified channel s function generator either 1 or 2 Command FGENerator TRlangle SWEep SPACing lt character_data gt Query FGENerator TRlangle SWEep SPACing Response lt character_data gt Arguments LiNear or LOG Notes See notes for FGEN PULSE SWEep SPACing See also FGEN STATe and FGEN SELect 6 63 FGENerator TRlangle SWEep STARt Purpose Command Query Response Arguments Notes Sets the start frequency of the sweep in the specified channel s function generator either 1 or 2 FGENerator TRlangle SWEep STARt lt numeric_value gt FGENerator TRlangle SWEep STARt lt numeric_value gt lt numeric_value gt 1 Hz to 2
132. m Model oooccocoonocconconccnonnonncnnnanoso Introduction to SCPI Command SyntaX oooncoocccononncoccnononoconanoos Command Subsystems ericsson iodo contenida Overview of OUTPut Commands ooccccccrconccnnconacinononononanoconoononns Overview of WAVE COMMANOUS oocccccconccnocccncncnncnonnccnccconononanconons Overview of FGEN COMMANAS scccsscssecnscesecceecescceseceseeaees 3 Overview of EQUation COMMANQS ccccoocccnococcnconenocccononaconononos 3 Overview of DISPlay Commands ccooocccoooncononanococononcccnononaccnnnanos 3 Overview of HCOPy Commands ccoooccconccnononcccnccononnnnconanccnnoanonos 3 TABLE OF CONTENTS Overview of TRIGger Commands cccccconooocccnnoninonnanononononanacinnos 3 18 Overview of MMEMory Commands ssssssscrceeeeeeenseseeeeesees 3 19 Overview of PROJect COMMANAS ccccooooocconcnnocononaconononacacnnncnoos 3 20 Overview of SYSTEM COMMans occooocccncccncononnncnccnnonaconaconnanonanss 3 21 Overview of STATUS COMMAMNAS occoocccnonorcccncnnccanccinannonoraconanonas 3 22 488 2 Command COMMANOS cococcccccconnccnononcnnoroncononononancnananenass 3 23 SECTION 4 STATUS amp ERROR REPORTING Status Regist nia in 4 1 Status Byte OPTION ueciiconionarsncicians iria dai 4 1 Status Data Sucursal 4 1 Querying the Operational and Questionable Status Register 4 3 Event Enable Registers scscccsssccssssssrccsssec
133. mote control interfaces and protocols and explains the advantages of the SCP command language and how it is used in the WaveStation About Remote Control Explains how to operate the WaveStation remotely across the GPIB bus Instrument Model and Subsystem Hierarchy Presents the function representation of the instrument as viewed from the remote control interface often referred to as the instrument Model Describes the command hierarchy and introduces basic SCPI syntax and subsystems Provides an overview of the command hierarchy and how it relates to the arbitrary waveform generator functional sections Status and Error Reporting Describes in detail the Status and Error reporting system Waveform Transfers via GPIB Explains the format for transferring waveforms between an external device and the WAVESTATION via GPIB Remote Commands Provides a detailed command reference including command syntax and purpose Remote Programming Example Introduction Introduction What is SCPI The remote control interface consists of hardware the GPIB port as well as a software protocol The hardware interfaces are described in your user manual for the instrument The software protocol is described in this manual and builds upon the rapidly emerging industry standard SCPI Standard Commands For Programmable instruments SCPI is a remote command language for test and measurement instruments It was developed by a consortium of test
134. n Purpose Command Query Response Arguments 6 152 Specifies which math operation will be performed by WAVE MATH IMMediate The available functions are listed in Arguments WAVE MATH lt character_data gt WAVE MATH lt character_data gt lt character_data gt ADD Selects an add function CONVolve Selects a convolve function DiFFerentiate Selects a differentiate function DiVide Selects a divide function INTegrate Selects an integrate MULTiply Selects a multiply function SMOoth Selects a smooth function SUBTract Selects a subtract function WAVE NEW Purpose Creates a new waveform with the name specified by the Arguments Command WAVE NEW lt string gt Query WAVE NEW Response lt string gt Arguments lt string gt Up to 15 characters in quotes Example WAVE NEW IN3 TEST4 The file names may have embedded spaces amp _ and Some file names are reserved The reserved names are CH1 FUNC GEN CH2 FUNC GEN DEFAULT A DEFAULT B UNROLLED WAVE OPEN Purpose Opens a waveform from the current project Command WAVE OPEN lt string gt Query WAVE OPEN Response lt string gt Arguments lt string gt A waveform file name in quotes 6 153 Remote Commands WAVE REGion LEFT Purpose Set the position of the left time cursor This is a synonym for DISP TRACE CURSORs TIME LEFT Either may be used at any time The left cursor is the position
135. n be output in data From The AWG To A File interchange format DIF via GPIB by sending the LW400 the WAVE DATA query The subroutine StoreWave is used to handle this operation It prompts the user to enter a file name file under which the waveform data will be stored It then issues the WAVE DATA query using the National Instrument IBWRT subroutine The waveform is read directly into the desired file using the National Instruments read file function ILRDF REMOTE PROGRAMMING EXAMPLES Subroutine to download and store a waveform from the AWG in DIF format to disk SUB StoreWave AWG COLOR 12 Set the trace color to red LINE INPUT ENTER FILENAME FILENAMES file UCASES FILENAMES Convert filename to uppercase COLOR 15 Set the trace color to white PRINT CURRENT WAVEFORM BEING STORED TO file CMD WAVE DATA CALL IBWRT AWG CMD Output WAVE DATA Query to AWG STA ILRDF AWG file NI488 2 function to read the current waveform the device AWG into the file file END SUB Uploading A Waveform A Waveform files in data interchange format DIF are accepted DIF File To The AWG by the AWG after it receives the WAVE DATA remote command The subroutine RecallWave sends a selected waveform file to the AWG As in the case of the StoreWave subroutine the user is prompted to enter the desired filename Prior to sending the command WAVE DATA the National Instrument s subroutine IBE
136. ncludes a menu based user interface It allows users to send individual remote commands send queries and receive replies and transfer waveforms in DIF format to and from the LW400 series AWG As in all GPIB programs the commands used are heavily dependent on the interface hardware LWGPIB BAS was written for a National Instruments PCII IA GPIB interface adapter with its associated N1488 2 interface software ver 2 1 1 This program is intended to serve as an example of principle Similar GPIB input output commands are used by other interface hardware suppliers and can be used to provide equivalent functionality The QuickBASIC programming environment must include a library of functions and subrountine calls for the GPIB adapter and its supporting software The National Instruments NI488 2 software for DOS includes a QuickBASIC language interface in the file QBIB OBJ Any QuickBASIC applications program represented by the name APPLIC can be link compiled with this program from DOS using the QuickBASIC linker LIB QBIB LIB QBIB OBJ Produces the stand alone library QBIB LIB BC APPLIC Compiles the application producing APPLIC OBJ LINK APPLIC OBJ QBIB LIB Linker creates the executable file APPLIC EXE REMOTE PROGRAMMING EXAMPLES The LWGPIB BAS Program 7 2 APPLIC Executes the application Alternatively the QuickBASIC environment can be set up to run programs by setting up a QuickLibrary using the following
137. nd WAVE SOURce2 if applicable on the region between the left and right time cursors The result is placed into the current waveform Name of the other waveform for two waveform operations such as ADD SUBTRACT MULTIPLY DIVIDE Specifies which math operation will be performed by WAVE MATH IMMedate Operation can be SMOOTH ADD SUBTract MULTiply DiVide INTegrate DiFFerentiate CONVoive Creates a new waveform with the name specified by the argument Opens a waveform from the current project Set the position of the left time cursor Set the position of the right time cursor This command requires time cursors not to be in the track mode 3 9 WAVE SAVE SELect TIME DELay DURation MODE TIME MOVE SEQuence ADVance AON COMPile Data GDATa GLINk GNEW I REcall ISAVe JUMP LINK NEW OPEN SAVE 3 10 Saves the current waveform with the name supplied by the argument Selects the active waveform editor CH1 CH2 or SCR Delays the waveform from the left cursor to the end of the waveform for the given amount of time Selects the mode insert or overwrite for changing the duration of a feature Changes the duration of the region between the left and right time cursors using the duration change mode defined by the duration modes Moves the feature between the left and right time cursors Advance to the next sequence in a group sequence list Specifies which channel advance and jump
138. ne Query Error 1 none Request Control 0 none Operation Complete This bit is set upon completion of any operation This bit is set by the WaveStation as part of the 488 2 REQUSTCLTL protocol The WaveStation becomes the controller in order to get data from a digital oscilloscope If WAVE INSert SCOPe CONTrol is set to ON the WaveStation will request control and pass control back when it is done The controller must be capable of supporting IEEE Std 488 2 1992 pass control protocol Bit 2 Query Error Bit 3 Device Specific Bit 4 Execution Error Bit 5 Command Error Bit 6 User Request Bit 7 Power On This bit indicates that an error occurred in the last query Typical errors include input and output buffers full unterminated query controller reads before sending a complete query message interrupted query controller sends new command before reading last query This bit indicates an error which is not related to the execution of commands If the Execution Error Bit is set a command was sent with an invalid parameter lf the Command Error Bit is set a command parsing error has occurred The User Request bit is set when the WaveStation is being remotely controlled using the GPIB bus and the hardcopy destination is GPIB and a hardcopy is requested via the front panel In this case if the Hardcopy were to start the WaveStation would enter Talk only mode and disrupt the remote control connection To prevent
139. nencansanananconcannocononnonacnnonanonasncnnonenananas 7 2 R Receiving a Query Response cccsecsesessssssessssncnsssenecesencesececeeseeeeerenesensenanenensesenees 7 10 Registers Salus eaesaceSeseseet ctu cawaiesaeetacn E nse eese ion 4 1 ENADIO unidas 4 4 EVOME ada aaa 4 2 Condition Operational Status ooooccroccconccncnrononoconononconcononororananenaranaconannnos 4 2 4 10 QUEStonable iio tis 4 2 Summa BIS taa 4 7 Standard Event Stalin ad 4 8 Remote Command System Model ooooo cocccoconccnonnonocococicoconoconononononconoononononononoronon oa nan os 3 1 Remote CONTO rca ino 2 1 Request Service RQS Blan is 4 7 S SCRE isana a a ea E N a as t 5 SCPI o arany E Eaa E A 3 1 Keywords 3 2 GOMDINING Command Sissi di 3 3 S bsvstems MOJO irmis aaea dis 3 1 Sending a Command EXampleS o 2 5 5 1 7 9 Sandino a QUE ida diablos 7 10 Sena RO Canada nds 2 3 SOMVICO wisin taaMeesconnteceusitencevadeesegeisiesssasacecastesded aueustncese 1 2 SONICO POQUOS Sind a 4 14 Status BNOS arnee iea la id 4 1 FRCGISICIS ceruri a a edi 4 1 Data MUCOSA ra 4 1 A am ee SN 8 Seg ee Sr eee ee een ere 4 3 Status Byte ROI iia ii 4 6 Subsystems Output ia ia 3 4 Wava dad iia 3 5 PGE NORIO ua da uds 3 11 QAO 2er saetas 3 14 DISPIAV asian AA 3 15 FIGORY ainia 3 17 TRIGIOF arias dios 3 18 MMEMON ui estais 3 19 PROJECO ai o id olicas 3 20 CALIDA ON iris 3 21 SYSTEM nn iii 3 21 STATUS iaa E 3 22 Synta
140. nse None Arguments None SEQuence DATA Purpose Transfers a sequence file identified by a filename to or from the LW400 via GPIB in 0 block format Command SEQuence DATA filename lt block gt Query SEQuence DATA filename Response lt indefinite length block gt Arguments filename is a quoted string of up to 14 characters lt indefinite length block gt Note An indefinite length block 0 followed by a sequence list consisiting of up to 512 lines 2048 lines for LW4x0 ME2 1M memory SEQuence GDATa Purpose Transfers a group sequence file identified by a filename to or from the LW400 via GPIB in 0 block format Command SEQuence GDATa filename lt block gt Query SEQuence GDATa filename Response lt indefinite length block gt Arguments filename is a quoted string of up to 14 characters lt indefinite length block gt Example SEQuence GDATa example Osequence1 sequence2 Creates a new group sequence named example with two sequences sequence and sequence2 Note An indefinite length block 0 followed by a sequence list consisting of up to 512 lines 2048 lines for LW400 ME2 1M memory SEQuence GLINk Purpose This command adds a new line to the end of the sequence list in the currently selected editor Command SEQuence GLINk filename Query SEQuence GLINk Response filename returns the last linked sequence name string Arguments filename a sequence name to be linked in
141. nsequently this manual may not agree in every detail with the accompanying product There may be small discrepancies in the values of components for the purposes of pulse shape timing offset etc and occasionally minor logic changes Where any such inconsistencies exist please be assured that the unit is correct and incorporates the most up to date circuitry In a similar way the firmware may undergo revision when the instrument is serviced Should this be the case manual updates will be made available as necessary Products requiring maintenance should be returned to the Customer Service Department or authorized service facility LeCroy will repair or replace any product under warranty at no charge The customer is responsible for transportation charges to the factory All in warranty products will be returned to the customer with transportation prepaid For all LeCroy products in need of repair after the warranty period the customer must provide a Purchase Order Number before repairs can be initiated The customer will be billed for parts and labor for the repair as well as for shipping Introduction RETURN PROCEDURE HOW TO USE THIS MANUAL To determine your nearest authorized service facility contact the Customer Service Department or your field office All products returned for repair should be identified by the model and serial numbers and include a description of the defect or failure name and phone number of the user
142. ntical to CAL DISPlay ANNotation DATE STATe Purpose Command Query Response Arguments Allows the date top left hand corner of screen to be switched on or off DISPlay ANNotation DATE lt Boolean gt DISPlay ANNotation DATE lt Boolean gt one of 0 1 OFF ON O Disables the real time clock display 1 Enables the real time clock display OFF Disables the real time clock display ON Enables the real time clock display DISPlay ANNotation LOGO STATe Purpose Command Query Response Arguments Allows the Company Logo top right hand corner of screen to be switched on or off DISPlay ANNotation LOGO lt Boolean gt DISPlay ANNotation LOGO lt Boolean gt one of 0 1 OFF ON O Disables the logo 1 Enables the logo OFF Disables the logo ON Enables the logo 6 11 Remote Commands DISPlay ANNotation PARameter STATe Purpose Command Query Response Arguments Turns the parameters bottom of the screen on or off DISPlay ANNotation PARameter lt Boolean gt DISPlay ANNotation PARameter lt Boolean gt one of 0 1 OFF ON O Disables parameter display 1 Enables parameter display OFF Disables parameter display ON Enables parameter display DISPlay ANNotation ALL Purpose Command Query Response Arguments 6 12 Performs same function as DISP ANN LOGO Present because this is a SCPI default node DISPlay ANNotation lt Boolean gt
143. nts Notes 6 44 Sets the frequency of the ramp in the specified channel s function generator either 1 or 2 FGENerator RAMP FREQuency lt numeric_value gt FGENerator RAMP FREQuency lt numeric_value gt lt numeric_value gt 1 Hz to 25 MHz FGEN RAMP FREQuency and FGEN TRI FREQuency are value coupled See also FGEN STATe and FGEN SELect FGENerator RAMP INVert Purpose Command Query Response Arguments Notes Controls whether the ramp is rising or falling in the specified channel s function generator either 1 or 2 FGENerator RAMP INVert lt Boolean gt FGENerator RAMP INVert lt Boolean gt one of 0 1 OFF ON O Turn invert off 1 Turn invert on OFF Turn invert off ON Turn invert on See also FGEN STATe and FGEN SELect FGENerator RAMP OFFSet Purpose Command Query Response Arguments Notes Set the median voltage of the waveform in the specified channel s function generator either 1 or 2 FGENerator RAMP OFFSet lt numeric_value gt FGENerator RAMP OFFSet lt numeric_value gt lt numeric_value gt 5 to 5 V FGEN SINE TRlangle RAMP and MUL Titone OFFSET are value coupled See also FGEN STATe and FGEN SELect 6 45 Remote Commands FGENerator RAMP SPOSition Purpose Command Query Response Arguments Notes Sets the start position of the ramp in percentage of the ramp slope in the specified chann
144. nuities on the currently selected waveform WAVE INSert SCOPe BWLimit lt character_data gt WAVE INSert SCOPe BWLimit lt character_data gt YES or NO YES to Bandwidth limit NO do not bandwidth limit WAVE INSert SCOPe CONTFrol Purpose Command Query Response Arguments Notes 6 124 Tells the LW400 whether there is a controller active on the bus from which it must request control to do WAVE INSert SCOPer lMMediate WAVE INSent SCOPe CONTrol lt Boolean gt WAVE INSert SCOPe CONTrol lt Boolean gt YES NO NO no active controller YES active controller If set to YES the LW400 will request control when WAVE INS SCOPE IMMediate is executed and will return control when it is done The controller must be capable of supporting 488 2 pass control protocol IEEE Std 488 2 1992 Section 17 4 WAVE INSert SCOPe PREServe Purpose Command Query Response Arguments Sets how the data from the digital oscilloscope is preserved The data can be preserved in time or by points If time is selected then the data will be resampled to preserve the overall time f points is selected then the data are not resampled and the points are inserted into the waveform at the current clock Timing at the output will probably be incorrect WAVE INSert SCOPe PREServe lt character_data gt WAVE INSert SCOPe PREServe lt character_data gt POINts or Tlme WAVE INSert SCOPe SOURce Purpo
145. numeric_value gt Query FGENerator SQUare AMPLitude Response lt numeric_value gt Arguments lt numeric_value gt 0 to 10 V Notes FGEN SINE RAMP TRlangle SQUare and MULTItone AMPLitude are value coupled See also FGEN STATe and FGENA SELect FGENerator SQUare BASE Purpose Sets the voltage of the non triggered level of the waveform in the specified channel s function generator either 1 or 2 Command FGENerator SQUare BASE lt numeric_value gt Query FGENerator SQUare BASE Response lt numeric_value gt Arguments lt numeric_value gt 5 to 5 V Notes FGEN SQUare BASE and FGEN PULSe BASE are valued coupled See also FGEN STATe and FGEN SELect 6 55 Remote Commands FGENerator SQUare ETiMe Purpose Command Query Response Arguments Notes 6 56 The 10 90 edge time of both the rising and falling edges of the square wave in the specified channel s function generator either 1 or 2 FGENerator SQUare ETIMe lt numeric_value gt FGENerator SQUare ETIMe lt numeric_value gt lt numeric_value gt 5ns to 1s The time to transition from BASE to top 0 to 100 will be approximately 100 80 X ETIME or 1 25x ETIME 1 25 x ETIME must be less than 0 5 FGEN SQUare FREQuency or the square wave cannot be produced If SWEEP is on remember that ETIME does not change with frequency so 1 25 x ETIME must be less than 0 5 STOP frequency See also FGEN STATe and FGEN
146. o enable only the measurement bit bit 14 STATus QUEStionable ENABle 16384 where 16384 is the decimal value when bit 14 is set true and all other bits are not set false Questionable Status Register Bit Assignments Bit 14 Command Warning BIT Associated Significance Status Byte 14 none Command Warning 13 none Not Used 12 none Not Used 11 none Not Used 10 none Not Used 9 none Not Used 8 none Not Used 7 none Not Used 6 none Not Used 5 none Not Used 4 none Not Used 3 none Not Used 2 none Not Used 1 none Not Used 0 none Not Used At this time the WaveStation does not set this bit Status amp Error Reportina Checking Status and Requesting Service Polling to Check Status 4 12 There are two basic methods for checking the status of the WaveStation The first is by polling the status registers in the WaveStation to check status The second is by having the WaveStation assert the SRQ line on the GPIB bus to indicated that a status condition has been met The second method is know as requesting service and is only available using the GPIB bus Polling is the process of repeatedly querying the status register until a bit changes reflecting a change in state The simplest method of polling is to poll the single register of interest For example to poll to see if the WaveStation is waiting for a trigger the following command would be sent to the WaveStation until a value with bit 5 set containing a
147. ocal Go to Remote Go to Remote with Lockout Local The WaveStation can operate in Local or Remote mode In Local mode all front panel controls are operational and commands from the host computer will also be processed In Remote mode the WaveStation operates under computer control and no front panel controls are operational except the Local soft key if enabled The WaveStation always powers on in Local mode Note The WaveStation processes all messages regardiess of being in Remote or Local modes The WaveStation switches to Remote mode with Local soft key enabled when the WaveStation receives a command with the REN line asserted All instrument settings remain unchanged during local to remote transitions The WaveStation screen indicates that Remote mode is enabled by the appearance of the Local soft key No other front panel controls operate If the WaveStation is under remote control and the Local soft key is pressed the instrument interrupts program control and returns to local control Data and or settings cannot be changed locally Caution In Local Lockout state all front panel keys and knobs are disabled Once Remote with Local Lockout is set using the RWLS or LLO commands it can only be cleared when the WaveStation is put into Local mode by sending the LOC command or readdressing the WaveStation with REN deasserted Checking GPIB Communications Using National Instruments IBIC Program This qu
148. ociated with waveform creation Overview of WAVE commands WAVE AMPLitude AMPLitude MEDian VMAX VMIN Sets the peak to peak amplitude of the region between the left and right time cursors Sets the median voltage level of the region between the left and right time cursor Sets the maximum voltage of the region between the left and right time cursors Sets the minimum voltage of the region between the left and right time cursors 3 5 Instrument Model and Subsystem Hierarchy _ WAVE CLOCk DECade FlXed FREQuency PREServe ACSet LIMit MAX WAVE CUT COPY DELete EXTRact WAVE DATA PREamble INSert MODE PASTe IMMediate COUNt CURSor WRAP 3 6 Selects the clock decade in which the internal clock runs Selects whether the clock is fixed or variable Sets the frequency of the clock POINTS or TIME Affects the operation of CLOCK DECADE Preserve points keep data unchanged preserve time resamples to keep output timing the same if possible Selects auto clock set mode or manual Selects deselects option to limit clock to internal filters With LIMit set to Yes MAX selects the clock decade in which the internal clock runs Copies the region between the right and left time cursors to the cut buffer Deletes the data between the left and right time cursors stores it to the cut buffer Copies the value of the waveform minus the value of the baseline to the cut buffer Transfer waveform
149. oensnsnssscessscsseserssnsoesessnssesensseensosenssnsensas 7 11 E End Of lantify EOI caricia cian innata 2 3 7 6 7 9 7 13 Eor Cod annene da ia ia deans tens Doo ESE 2 7 POI VON CUNO ii O a 4 6 Event Enable Registers cimsionarid aaa tdci DA Event Status Register aircond bain e E eE raa aana eaaa eae niaaa 4 8 F Floating Point Numbers esossseseseereesensersecsesesesesereereusoessessessorerornenrereereerseererernereeserens 5 6 G General Purpose interface Bus GPIB Common Commands alli EVEA A E 3 23 HISTON aaa 1 5 o a E E ea 2 1 O EA EE 2 1 Standard messages sessssssessssssseseseseorossseoessororossssnossneres ET 2 3 Modes TAM ii e 2 1 A A OL 2 1 Control racista pi dscoceis 2 1 Hardcopy Service O O PP a E e Ea 4 14 Waveform Transfers uiirasir id cccuaachendesadonraenaveaitenaaaseeees 5 1 Wavetorm FOOL ession ae aa Ee ea aE ana aaa EA 5 1 IBIS Program sscsssscsevsncsscsercnccecccsenensennevonseoscsesnessansvensaeestercerasssavarenanossnasevaccrasnecennseens 2 5 BENO caian An ies aa 2 5 lIEEE 488 see also GPIB COMMON COMMANOS ii ee eiee 3 23 History _csscsscsesssancescnsnsscecsscecssssnssscssusonesersseseassneeanscesessnerssstesseseesensarsuonsnsuserseeeesens 1 5 Description scesssessssecseceseseseeeceseescnstesesesecesonescsenecessaecaesesenusacensscenonsanseeesseneeceas 2 1 Address Standard Messages ocooococonoccooccnoncononononenenenenannonononanoranocasnsoronoronananenenaeneno 2 3 Service
150. ommand Query Response Arguments Sets the vertical volts per division of the grid DISPlay TRACe Y PDIVision lt numeric_value gt DISPlay TRACe Y PDIVision lt numeric_value gt lt numeric_value gt Vertical volts per divison 10 mV 5 V DISPlay WINDow TRACe Y SCALe RLEVel Purpose Command Query Response Arguments 6 26 Sets the voltage at the vertical center of the grid Zoom functions zoom around the center of the grid DISPlay TRACe Y RLEVel lt numeric_value gt DISPlay TRACe Y RLEVel lt numeric_value gt lt numeric_value gt The voltage at the vertical center of the grid 5 volts DISPlay WINDow TRACe ZPRevious Purpose Zoom Previous sets the zoom settings back to the previous time and voltage zoom settings Command DISPlay TRACe ZPREvious Query None Response None Arguments None EQUation CALCulate Purpose Calculates the currently selected equation line EQUation LINE for a duration of EQUation DURation and inserts it into the current waveform at the left cursor position in the insert mode defined by WAVE INSert MODE Command EQUation CALCulate Query None Response None Arguments None 6 27 EQUation DATA Purpose Transfers all the lines of the equation sheet as a 0 block Command EQUAation DATA lt block gt Query EQUation DATA Response lt indefinite length block gt Arguments lt indefinite length block gt Notes An indefinite
151. one None None DISPlay WINDow TRACe CURSors TIME TGRid Purpose To Grid moves both time cursors so they are on the display The left time cursor gets placed one division in from the left edge of the grid or at the beginning of the waveform if it is to the right of the first division The right time cursor gets placed one division in from the right edge of the grid or at the end of the waveform if the end is to the left of that division Command DISPlay TRACe CURSors TIME TGRid Query None Response None Arguments None 6 17 Remote Commands DISPlay WINDow TRACe CURSors TIME TRACk Purpose Command Query Response Arguments Notes 6 18 Enables or disables time cursor tracking When enabled the position of the right time cursor is LEFT plus DELTa The TIME RIGHt Command has no effect DISPlay TRACe CURSors TIME TRACk lt Boolean gt DISPlay TRACe CURSors TIME TRACK lt Boolean gt one of 0 1 OFF ON 0 Disables cursor tracking 1 Enables cursor tracking OFF Disables cursor tracking ON Enables cursor tracking Changing the state of TRACK does not move the cursors The value of TIME DELTA is set to reflect the current position of the cursors when TRACK transitions from off to on TIME RIGHT is always maintained so changing track from ON to OFF does not move the cursors either DISPlay WINDow TRACe CURSors TIME STATe Purpose Command Query Response
152. outside the time cursors The region to the right of the right time cursor will only change in time according to the duration change Overwrite changes the duration of the region between the left and right time cursors but will not change the overall length of the waveform unless the duration change is greater than the length of the waveform The area to the right of the right time cursor will be overwritten if the duration is increased or the last point in the region between the left and right time cursors will be replicated if the duration is decreased WAVE TIME DURation MODE lt character_data gt WAVE TIME DURation MODE lt character_data gt lt character_data gt INSert OVERwrite 6 157 Remote Commands WAVE TIME DURation TIME Purpose Command Query Response Arguments Notes 6 158 Changes the duration of the region between the left and right time cursors The waveform will be changed using the duration change mode defined by WAVE TIME DURation MODE The duration of a region can be increased in 100 ps steps WAVE TIME DURation lt numeric_value gt WAVE TIME DURation lt numeric_value gt lt numeric_value gt Duration of region 10 ns memory length If the duration is decreased high frequency information can be lost This is because frequency increases as duration decreases Repeated duration changes work from a saved copy of the original data so this affect can be reversed This is
153. parameters readouts on or off For SCPI compatibility Same as Logo Allows the automatic screen saver to be enabled or disabled Displays the whole waveform on the screen Sets the trace intensity Setting the intensity for one trace will set the same intensity for all traces Change the delta time between the time cursors This command only has effect if the cursors are in the track mode Set the position of the left time cursor Set the position of the right time cursor This command only has effect if the cursor track mode is off Select All selects the entire waveform by placing the left cursor at time zero and the right cursor at the end of the waveform Places both cursors at the end of the waveform Moves both time cursors so they are on the display Enables or disables time cursor tracking Turns the time cursors on or off Set the position of the bottom voltage cursor Change the deita voltage between the voltage cursors This command only has effect if the voltage cursors are in the track mode Moves both voltage cursors so they are on the display 3 15 instrument Model and Subsystem Hierarchy _ DISPlay WINDow TRACe VOLTage TOP TRACK STATe GRATicule COLor GRID STATe TYPE TRACe X SCALe CENTer PDIVision TCURsors Y SCALe PDiVision RLEVel ZPRevious 3 16 Sets the position of the top voltage cursor This command only has effect if track is off Enables or disab
154. preting the error codes A brief list of some of the common errors and possible solutions follows 2 6 Error Code EDVR ENOL EARG ESAC EABO Check Check that config sys contains the line device c di GPIB COM where dir is the directory that contains GPIB COM No listener Check IBFIND DEVx matches the GPIB address of the WaveStation Where the WaveStation GPIB address is x Invalid argument Check that the command was typed correctly GPIB board is not system controller Check to make sure the GPIB board is configured as controller using IBCONF Check that the WaveStation is powered on and cables are connected securely Can t find GPIB board Check GPIB installation and configuration In Case of GPIB Communications Problems Check the Following 1 WaveStation is turned on and finished booting up 2 WaveStation passes power up Self tests 3 GPIB board is installed and passes all tests See National Instruments IBTEST GPIB cable is connected securely GPIB address is set correctly No other instrument on the GPIB bus is set to the same address GPIB name DEV1 set in IBFIND command corresponds to the name given in the IBCONF device map for address 1 VO OF A 2 7 ABOUT REMOTE CONTROL This page left intentionally blank 2 8 INSTRUMENT MODEL AND SUBSYSTEM HIERARCHY Remote Command It is important to understand the remote control subsystem System Model hi
155. re set Also whenever the RQS bit is set the GPIB bus SRQ line is automatically asserted In general an asserted bit in the main status byte STB reflects or summarizes a change in a corresponding status register or queue i e Standard Event Status Register Questionable Status Register Operation Status Register or Error Event Queue Two types of status structures the Register individual bits and the Queue encoded number are used in the WaveStation In the Register Model individual bits identify a specific WaveStation condition or event Alternatively each bit could act as a summary bit for an associated status register Using bits in one status register to indicate changes in other registers allows for a layered status description This layering of detail enables the controller to limit the amount of information it receives The Status Byte Register Standard Event Status Register Questionable Status Register and Operation Status Register all use the register model status structure The Queue Model is a single register which contains an encoded number For example this number may be an error code which corresponds to an error condition Event Recording Condition Registers Event Registers The WaveStation s Error Event Queue is the only register in the WaveStation employing the queue model The Error Event Queue can hold one error code When read the queue reports the most recent error code and clears itself
156. red in decimal hexadecimal or binary 0 255 in decimal h00 hFF in hexadecimal or 2 b00000000 4b11111111 in binary WAVE INSert CURSor Purpose Set to insert new waveform sections before or after the left time cursor If BEFore is selected after the new section is inserted the left cursor is moved to the end of the inserted section leaving the inserted section before the left cursor lf AF Ter is selected the left cursor is not moved after the section is inserted WAVE INSert CURSor lt character_data gt Command Query WAVE INSert CURSor Response lt character_data gt Arguments BEFore or AFTer WAVE INSert MODE Purpose Sets the mode in which sections of waveforms are inserted The two modes are insert and overwrite Insert places the new section at the left time cursor and moves all the data to the right of the cursor not including the point under the left cursor by the length of the inserted section Overwrite places the new section at the left cursor and overwrites existing data in the waveform Command WAVE INSert MODE lt character_data gt Query WAVE NSert MODE Response lt character_data gt Arguments NSert or OVERwrite 6 121 Remote Commands WAVE INSert OVERsample Purpose Command Query Response Arguments Used to select the setting for the Oversample Wave option If set to YES the currently selected waveform will be checked for discontinuities and
157. register to become true in the WaveStation this indicates that the WaveStation is waiting for a trigger To determine what caused the Operation Status bit to be set query the Operation Status Register using the STATus OPERation command Further documentation is available in the section on the Question Status Register 4 7 Status amp Error Reportinc Standard Event Status Event Status Register Bit Assignments Bit 0 Operation Complete Bit 1 Request Control 4 8 Register Definition The Standard Event Status Register reports error conditions common to most automatic test equipment The WaveStation uses these bits for error reporting and synchronization The Standard Event Status Register is read and cleared using the ESR command The register may also be cleared without being read using the CLS command Each of the bits in the Event Status Register will be summarized in bit 5 of the Status Byte Register provide the bits are set in the Event Status Enable register For example to have only the operation complete bit of the Event Status Register summarized in the Status Byte register using the following command to enable only the operation complete bit bit 0 ESE 1 where 1 is the decimal value when bit 0 is set true and all other bits are not set false BIT Associated Significance Status Byte 7 none Power On 6 none User Request 5 none Command Error 4 none Execution Error 3 none Device Specific Error 2 no
158. rrently selected editor to the current project Command WAVE SEQuence SAVE lt string gt Query WAVE SEQuence SAVE Response lt string gt Arguments lt string gt the name of the sequence list to save 6 93 Remote Commands STATus OPERation CONDition Purpose Command Query Response Arguments Notes 6 94 Query the contents of the Operation Status condition register Reading the condition register is nondestructive Operation Status Register Bit Assignments Bit 14 Not Used Bit 13 Not Used Bit 12 Resample Ch 2 Required Bit 11 Not Used Bit 10 Sequence compile complete Bit 9 Reserved for future use Bit 8 Reserved for future use Bit 7 Not Used Bit 6 Not Used Bit 5 Waiting for Trigger Bit 4 Not Used Bit 3 Not Used Bit 2 Not Used Bit 1 Not Used Bit 0 Not Used None STATus OPERation CONDition lt numeric_value gt None Decimal 16384 Decimal 8192 Decimal 4096 Decimal 2048 Decimal 1024 Decimal 512 Decimal 256 Decimal 128 Decimal 64 Decimal 32 Decimal 16 Decimal 8 Decimal 4 Decimal 2 Decimal 1 The waiting for trigger bit is updated by software It is not guaranteed to transition on every trigger to which the LW400 responds STATus OPERation ENABle Purpose Command Query Response Arguments Set or query the enable mask which allows masked conditions in the event register to be reported in the summary
159. s but FGEN PULSe TDELay introduces a delay on only the selected channel 2 FGEN PULSE TDELAY and FGEN SQUare TDELAY are value coupled 3 See also FGEN STATe and FGEN SELect FGENerator PULSe WIDTh Purpose Sets the width of the pulse from 50 up the rising edge to 50 down the falling edge in the specified channel s function generator either 1 or 2 Command FGENerator PULSe WIDTh lt numeric_value gt Query FGENerator PULSe WIDTh Response lt numeric_value gt Arguments lt numeric_value gt 5 ns tois Notes lf FGEN PULSe SWEep STATe is ON WIDTh specifies the width at the start frequency Width decreases as frequency increases in the sweep so that the duty cycle at the start frequency is maintained throughout the sweep See also FGEN STATe and FGEN SELect 6 43 Remote Commands FGENerator RAMP AMPLitude Purpose Command Query Response Arguments NOTES Sets the peak to peak amplitude of the ramp in the specified channel s function generator either 1 or 2 FGENerator RAMP AMPLitude lt numeric_value gt FGENerator RAMP AMPLitude lt numeric_value gt lt numeric_value gt 0 to 10 V FGEN RAMP AMPLitude FGEN SINE AMPLitude FGEN TRiangle AMPLitude FGEN SQUare AMPLitude and FGEN MULTItone AMPLitude are all value coupled See also FGEN STATe and FGEN SELect FGENerator RAMP FREQuency Purpose Command Query Response Argume
160. s of Microsoft Corporation PCX is a file format developed by ZSoft Corporation for use with PC Paint programs BubbleJet is a registered trademark of Canon USA Incorporated Apple and Macintosh are registered trademarks of Apple Computer Incorporated SECTION 1 GENERAL INFORMATION MICA ISD A seosaetedwexsseucavscteincvotes A ere saiccal E a T Product ASSISIAINCE ii Maintenance Agreements ooconnnccnonnonccconccnnononocccnnnnononcacncnnnananonans Sovico PrOCOQUO dd oia o aa a aaa ni How to Use This Manua ocoocccccccccnononcnconcnnoncononconcorcnronronanononenas Miroda doo reis Whats SC Pila Si SECTION 2 ABOUT REMOTE CONTROL Interface Configuration and Special Commands occooonccooccno ooo GPIB Remote Con Volar GPIB Signals ANAILINMOS cisco aa iie Setting the GPIB AQUOSS socia diia GPIB Remote Control and Hardcopy Operation oomooccmooo Remote Control Operation over GPIB occoocccocconononononononcnros End or Identify EOI OperatioN coooncncccononcconoconocnconenonacacnnnnono Hardcopy Operation over GPIB oocoocococcocononnoccnccnccnconocananonass JEEE 488 Standard Messages csssccesescessecensceesesceneeteneseeeas Checking GPIB Communications Using National Instruments IBIC Program oooocooonoccnccccccnoncnnonoconancnnanccnnarecnnns Eror OOO ini SECTION 3 INSTRUMENT MODEL AND SUBSYSTEM HIERARCHY Remote Command Syste
161. se Command Query Response Arguments Sets the location in the digital oscilloscope to download the data from The available choices depend on the oscilloscope s capabilities Please refer to the choices on the FROM SCOPE menu under Trace Source for the available source for your scope make sure the oscilloscope in question is selected in the DSO Type list The trace source must be typed exactly as shown in the menu field including spaces and enclosed in quotes WAVE INSert SCOPe SOURce lt string gt WAVE INSert SCOPe SOURce lt string gt lt string gt 6 125 Remote Commands WAVE INSert SCOPe TYPE Purpose Command Query Response Arguments Sets which digital oscilloscope the data will be downloaded from The LW400 initially supports the scopes listed under Arguments Additional oscilloscopes may be added through project import Use the name found in the FROM SCOPE menu under DSO Type to select a different oscilloscope than the ones listed below WAVE INSert SCOPe TYPE lt string gt WAVE INSert SCOPe TYPE lt string gt lt string gt WAVE INSert SCOPe IMMediate Purpose Command Query Response Arguments 6 126 Downloads the data from the digital oscilloscope defined by WAVE INSert SCOPe TYPE at GPIB address WAVE INSert SCOPe ADDRess and retrieved from source WAVE INSert SCOPe SOURCce The data will be preserved using WAVE INSert SCOPe PREServe The capture
162. secesesosscesessaersseners 6 22 DISPlay WINDow TRACe GRATicule GRID STATE o ooconnconocononccnononccnncconocoornonoonocanancnncncnncacanaconanoos 6 23 DISPlay WINDOW TRACE GRA Ticule TYPE dos 6 24 DISPlay WINDow TRACe X SCALe J CENTET ccsssscsssecsssecscneersseensseesrsrsasesesersrsscesssessreessoneeens 6 24 DISPlay WINDow TRACe X SCALeJ PDIVISION ooooocconnononocionconocancnnananrororsannoroneneroonarnnrnaranenianonss 6 25 DISPlay WINDow TRACe X SCALeJ TCURSOFS ooooocconconoonccconecnnnncnonannanonnacononaconncnonnanroncannancinncnons 6 25 DISPlay WINDow TRACe Y SCALe PDIVISIOD ooooconocnnnonconanccnonorononononconaroonenconnccnnraronenaranacanacnnos 6 26 DISPlay WINDow TRACE Y SCALe RLEVel 0cccccccessesonsssnnenscesonsescerenesseeneeesosenecdensoasorsedessoneass 6 26 DISPlay WINDOW TRACE Z PRE VID Sii AA iaa 6 27 E EOUaton CALC as 6 27 EOU OM DATA iaa EE caer R ae 6 28 EQ U tion DEFINE ainra EET INEA NEEE EDEN T tits 6 28 BO Uation DURANO esin a E R E EaR REE Ea ENS 6 29 FLO ante ANE oda 6 29 EO Uation NEW rca ana 6 30 EO Uatton O PEIN cido 6 30 EOU an SAVE narro iea ana 6 31 F FGENeratornt DC TE Vedia A A OES 6 31 FGENeratorf MULTitone AMPLItUdE cicisiici criincici ici ici 6 32 FGENerator MUL Titone NTONES viii A e ii 6 32 FGENeratorMUL Tone DRESS a ea EADE ia 6 33 FGENeratorH MULTitone TONE H RAMPlitude ccccccccncnccocononoconnncconoconanoronononononarovonenononoor
163. t WAVE MARKer CLOCKk FIRSt lt numeric_value gt lt numeric_value gt Time 0 to duration of waveform in seconds Because the marker transitions occur on clock edges the resolution corresponds to the time between clocks At 400 MHz it is 2 5 ns WAVE MARKer CLOCk FREQuency Purpose Command Query Response Arguments Notes 6 146 Sets the frequency of the marker output In order for this command to have affect WAVE MARKer TYPE must be set to CLOCK WAVE MARKer CLOCk FREQuency lt numeric_value gt WAVE MARKer CLOCk FREQuency lt numeric_value gt lt numeric_value gt 10 Hz to 200 MHz Because marker transitions occur on clock edges and the marker must be high for the same amount of time that it is low 50 duty cycle the FREQuency rounds to the nearest value corresponding to an even number of clock periods Remote Commands WAVE MAR Ker EDGE DEFault Purpose Replaces the currently defined edges with two edges going high at 1 X clock interval and going low at 32 X clock interval The rising edge is not placed at time 0 because in a triggered mode the marker output would be HIGH while the LW400 was awaiting trigger Command WAVE MARKer EDGE DEFault Query None Response None Arguments None WAVE MARKer EDGE NDEFind Purpose Find out the number of marker edges defined for WAVE MARKer TYPe EDGE Command None Query WAVE MARKer EDGE NDEFind Response lt numeric_value gt 0to 128
164. ted in formats that allow them to be read by common word processors paint and graphics packages The arguments list all available formats HCOPy TARGet GRAPhics FORMat lt character_data gt HCOPy TARGet GRAPhics FORMat lt character_data gt PCX TIF BMP HCOPy TARGet PRINter DESTination Purpose Command Query Response Arguments Set or query the destination of the hardcopy printer data The destination may be a port to which the printer is attached or it may be a disk drive where a file in printer format will be stored The arguments list all possible destinations HCOPy TARGet PRINter DESTination lt character_data gt HCOPy TARGet PRINter DESTination lt character_data gt CENTronics FLOPpy GPIB 6 69 Remote Commands HCOPy TARGet PRINter FFEed Purpose Command Query Response Arguments Set or query whether a form feed is automatically generated following a hardcopy To place only one hardcopy on a page FORM FEED should be enabled HCOPy TARGet PRINter FFEed lt Boolean gt HCOPy TARGet PRINter FFEed lt Boolean gt one of 0 1 OFF ON O Turn form feed off 1 Turn form feed on OFF Turn form feed off ON Turn form feed on HCOPy TARGet PRINter MODel Purpose Command Query Response Arguments 6 70 Set or query the selected printer model The printer type set here should match the printer on which the hardcopy will be printed HCOPy TARGet PRINter MODel lt ch
165. ters for the Service Request Register and the Event Status Register are 7 bits wide with each bit selecting a different condition or event The bit positions for the enable register match the bit positions for the status registers and have the same names While the Operation Status Register and the Questionable Status Register can function as both event and condition registers only the results of the event register are AND ed with the enable register to set the summary bit in the Status Byte Register The value of the Enable registers may also be changed to a preset value with the STATus PREset command STATus PREset clears the Operation and Questionable Enable registers Refer to command details for STATus PREset for the further information During power on the enable registers are set to their STATus PREset states The RST and CLS commands have no effect on the enable registers Status amp Error Reportinc Status Byte Register Definition Status Byte Register Definition LSB Bit 0 Not Used Bit 1 Not Used Bit 2 Error Event Queue Bit 4 6 The main Status Byte register STB reflects instrument status at the time it is read The register is read when the system controller remote computer polls the WaveStation with the STB command or with a serial poll Bits in the STB summarize all the other status registers The STB is read with the command STB or by serial polling the WaveStation The Status Byte Registers en
166. the 10 90 transition time of the rising and falling edges of the square wave FREQuency Sets the frequency of the square wave TDELay Sets the delay time between the start of the waveform and the first edge of the square wave TRiangle AMPLitude Sets the peak to peak amplitude of the standard triangle wave CYCLes Sets the number of cycles of the triangle wave that will be inserted into the waveform FREQuency Sets the frequency of the triangle wave OFFSet Set the voltage of the base of the triangle PHASe Phase of the triangle wave Inserts the specified shape at the left time cursor Insert the named waveform into the current waveform at the TIME LEFT cursor WAVE MARKer CLOCk FIRSt FREQuency EDGE DEFault NDEFined TIME STATE LEVel TYPE MATH COUPIling iMMediate SOURce2 OPERation NEW OPEN REGion LEFT RIGHt Sets the time at which the first edge of the clock marker begins WAVE MARKer TYPE must be set to CLOCKk Sets the frequency of the marker clock WAVE MARKer TYPE must be set to CLOCK Sets default edge marker Query only Number of edges defined Sets the time at which STATE will act Low or High Sets the voltage level of the marker to TTL or ECL levels Selects either a clock marker or an edge marker AC or DC used only for INTEGRATION If DC integration of a constant non zero voltage becomes a ramp Performs the math function specified by WAVE MATH OPERation on the current waveform a
167. this the User Request bit is set allowing the remote host to detect the hardcopy request and initiate it remotely after first setting up all connected devices Please refer to the section on Interface Configuration for more information This event bit indicates that an off to on transition has occurred in the WaveStation Status amp Error Reporting Operation Status Operation Status Register Bit Assignments Bit 5 Waiting for Trigger Bit 10 Sequence Compile Complete Bit 12 Resample Channel 2 14 13 12 11 10 Register Definition The Operation Status Register reports conditions which are part of the instrument s normal operation The Operation Status Event Register is read and cleared using the STATus OPERation command The event register may also be cleared without being read using the CLS command The Operation Status Condition Register is read using the STATus OPERation CONDition command Each of the bits in the Operation Status Event Register will be summarized in bit 7 of the Status Byte Register provide the bits are set in the Event Status Enable register For example to have only the Waiting for Trigger bit of the Operation Status Register summarized in the Status Byte register use the following command to enable only the operation complete bit bit 5 STATus OPERation ENABle 32 where 32 is the decimal value when bit 5 is set true and all other bits are not set false BIT Associated Status Sign
168. this command can used to resample channel 2 so the clock rates are equal The status operation register can be queried to determine if resampling of channel 2 is necessary You can determine if resampling is necessary by execution the command STATUS OPERation CONDition Command OUTPut2 RESample Query None Response None Arguments None OUTPut STATe Purpose Enables or disables the output for the selected channel 1 or 2 Command OUTPut lt Boolean gt Query OUTPut Response lt Boolean gt Arguments one of 0 1 OFF ON 6 82 O Disable the output 1 Enable the output OFF Disable the output ON Enable the output Remote Commands PROJect NEW Purpose Creates a new project with the specified name The current project is closed and the new project is opened Command PROJect NEW lt string gt Query PROJect NEW Response lt string gt the up to 15 character name previously entered for PROJ NEW If nothing entered no response Arguments A quoted string of up to 15 characters PROJect OPEN Purpose Opens the specified project and closes current project if the specified project exists no action is taken if it doesn t exist Command PROJect OPEN lt string gt Query PROJect OPEN Response lt string gt Arguments lt string gt 6 83 Remote Commands PROJect SAVE Purpose Command Query Response Arguments 6 84 Saves the current project If a project
169. tion of the Time Left cursor in time This is the position at which the digital values SVALue or SMValue will be inserted Command WAVE DIGital LCURSOR TIME lt numeric_value gt Query WAVE DIGital LCURSOR TIME Response lt numeric_value gt Arguments lt numeric_value gt 0 to the waveform time duration WAVE DiGital MODE Purpose Sets the mode in which sections of waveforms are inserted The two modes are insert and overwrite Insert places the new section at the left time cursor and moves all the data to the right of the cursor not including the point under the left cursor by the length of the inserted section Overwrite places the new section at the left cursor and overwrites existing data in the waveform Command WAVE DIGital MODE lt character_data gt Query WAVE DiGital MODE Response lt character_data gt Arguments INSert or OVERwrite 6 118 WAVE DIGital MVALue Purpose Command Query Response Arguments Notes Sets the value of the masked bits selected by the WAVE DIGital FMASk command WAVE DIGIital MVALue lt numeric_value gt WAVE DIGIital MVALue lt numeric_value gt lt numeric_value gt 0 to 2 Sn FMASK value 4 lf the mask value were 200 11001000 then the masked value can be set in the range 0 to 7 2 1 The numeric value can be entered in decimal hexadecimal or binary formats O max in decimal h00 hmax in hexadecimal or b00000000 bmax in binary where m
170. to enter the system menu Press the soft key adjacent to the GPIB entry on the ABOUT REMOTE CONTROL GPIB Remote Control and Hardcopy Operation Remote Control Operation over GPIB Talk Listen End or Identify EO Operation menu to enter the GPIB setup menu Turn the rotary to select the GPIB address The factory default setting for the GPIB address is 1 The WaveStation can communicate across the GPIB bus as a talker or as a listener with a remote host controller computer For this talker listener remote control operation the WaveStation conforms to the guidelines specified by IEEE 488 The hardcopy output can also communicate across GPIB in one of two ways First if the hardcopy port is the same as the remote control port then a remote hardcopy command sends the output to the remote host as a query response Second if the hardcopy port is different from the remote control port or the local hardcopy key is pressed Hardcopy Execute then the WaveStation enters talk only mode and does not expect any controller present on the bus The WaveStation enters this mode whenever a command is received via the GPIB bus In this mode the Wavestation can both receive commands and setups from the remote host computer controller and send data and measurement results Except where specifically noted all commands to and from the WaveStation are terminated by asserting the EOI signal line simultaneously with the last byte transmitted
171. ts placed one division below the top edge of the grid The bottom voltage cursor gets placed one division above the bottom edge of the grid DISPlay TRACe CURSors VOLTage TGRid None None None DISPlay WINDow TRACe CURSors VOLTage TOP Purpose Command Query Response Arguments Set the position of the top voltage cursor This command only has effect if DISPlay WINDow TRACe CURSors VOLTage TRACK is off DISPlay TRACe CURSors VOLTage TOP lt numeric_value gt DISPlay TRACe CURSors VOLTage TOP lt numeric_value gt lt numeric_value gt Top voltage cursor position 5 volts DISPlay WINDow TRACe CURSors VOLTage TRACk Purpose Command Query Response Arguments Notes Enables or disables time cursor tracking DISPlay TRACe CURSors VOLTage TRACK lt Boolean gt DISPlay TRACe CURSors VOL Tage TRACk lt Boolean gt one of 0 1 OFF ON O Disables cursor tracking 1 Enables cursor tracking OFF Disables cursor tracking ON Enables cursor tracking Changing the state of TRACK does not move the cursors The value of VOLTAGE DELTA is set to reflect the current position of the cursors when TRACK transitions from OFF to ON 6 21 Remote Commands DISPlay WINDow TRACe CURSors VOLTage STATe Purpose Command Query Response Arguments Turns the voltage cursors on or off DISPlay TRACe CURSors VOLTage lt Boolean gt DISPlay TRACe CURSors VOLTage lt Boolean gt
172. tude Purpose Command Query Response Arguments Notes Sets the peak to peak amplitude of the sine wave in the specified channel s function generator either 1 or 2 FGENerator SINE AMPLitude lt numeric_value gt FGENerator SINE AMPLitude lt numeric_value gt lt numeric_value gt 0 to 10 V FGEN SINE RAMP TRlange SQUare and MUL Tltone AMPLitude are all valued coupled See also FGEN STATe and FGEN SELect 6 49 Remote Commands FGENerator SINE FREQuency Purpose Command Query Response Arguments Notes Sets the frequency of the sine wave in the specified channel s function generator either 1 or 2 FGENerator SINE FREQuency lt numeric_value gt FGENerator SINE FREQuency lt numeric_value gt lt numeric_value gt 1 Hz to 100 MHz See also FGEN STATe and FGEN SELect FGENerator SINE OFFSet Purpose Command Query Response Arguments Notes 6 50 Set the voltage of the zero degree phase of the sinewave the median voltage in the specified channel s function generator either 1 or 2 FGENerator SINE OFFSet lt numeric_value gt FGENerator SINE OFFSet lt numeric_value gt lt numeric_value gt 5 to 5 V FGEN SINE TRlangle RAMP and MULTitone OFFset are valued coupled See also FGEN STATe and FGEN SELect Remote Commands FGENerator SINE PHASe Purpose Sets the start phase of the sine wave in the specified channel s function
173. tus Register Operation Status Event Register and Questionable Status Event Register CLS does not clear the Operation Status Condition Register or the Questionable Status Condition Register Command CLS Query None Response None Arguments None Remote Commands ESE Purpose Command Query Response Arguments 6 2 Sets the bits of the standard Event Status Enable register ESE Each bit in the Event Status Register must be enabled to be summarized in the main status byte Any reported ESR bit for which the matching ESE bit is set sets the ESB summary message bit bit 5 of the main status byte STB The bits in the ESE register have been defined by IEEE 488 2 The Event Status Enable Register bit assignments are as follows Bit 7 Power On Decimal 128 Bit 6 User Request Decimal 64 Bit 5 Command Error Decimal 32 Bit 4 Execution Error Decimal 16 Bit 3 Calibration Error Decimal 8 Bit 2 Query Error Decimal 4 Bit 1 Request Control Decimal 2 Bit 0 Operation Complete Decimal 1 ESE lt numeric_value gt ESE lt numeric_value gt lt numeric_value gt ESR Purpose Reads and clears the contents of the Standard Event Status Register ESR IEEE 488 2 defines the ESR to report error conditions common to most automatic test equipment These bits are used in synchronization and error reporting If the bits in the ESR have been enabled by the Standard Event Enable Register t
174. uery Reading the Response and Using Status to Determine When the Operation is Done LINE INPUT IBWRT is called as a subroutine and requires the unit descriptor AWG to identify the device being addressed and the command string CMD as arguments Any of the LW400 remote commands can be sent to the AWG using this subroutine The query form of a remote command is used to obtain information about the state of the AWG The query is sent to the AWG and it responds with the desired information The subroutine SendQuery handles this operation in the LWGPIB BAS program The query command string CMD is entered and output to the AWG using the National Instruments IBWRT subroutine which was previously described ENTER QUERY CMD Enter the desired command CALL IBWRT AWG CMD NI488 2 subroutine to write command string CMD to device to device AWG The next section of code displays the response header and sets the GPIB interface time out Depending on the information requested the AWG response may be delayed The National Instrument s function ILTMO is used to increase the time out delay to the value set by the variable TMO in this case 10 seconds to allow for the worst case response time response time Some queries such as TST can require timeouts in the range of minutes and will not work with this program Alternative techniques such as using service request interrupts provide more flexible response
175. umber of cycles of the square wave that will be inserted into the waveform WAVE INSert SHAPe SQUare CYCLes lt numeric_value gt WAVE INSert SHAPe SQUare CYCLes lt numeric_value gt lt numeric_value gt 0 01 to 65536 0 01 resolution See also WAVE INSert SHAPe SELect and WAVE INSert SHAPe MMediate 6 139 Remote Commands WAVE INSert SHAPe SQUare ETIMe Purpose Command Query Response Arguments Notes 6 140 The 10 90 edge time of both the rising and falling edges of the square wave WAVE INSert SHAPe SQUare ETIMe lt numeric_value gt WAVE INSert SHAPe SQUare ET IMe lt numeric_value gt lt numeric_value gt limits depend on clock decade 400 MHz 5 ns to 510 ns 40 kHz 50 us to 5 1 ms WIDTH gt PERIOD See also WAVE INSert SHAPe SELect and WAVE INSen SHAPe lMMediate The time to transition from base to top 0 to 100 will be approximately 100 80 x ETIiMe or 1 25 x ETlMe 1 25xETIMe must be lt 0 5 SQUARe FREQuency or the waveform can not be produced WAVE INSert SHAPe SQUare FREQuency Purpose Command Query Response Arguments Notes Sets the frequency of the square wave Period is 1 Frequency WAVE INSert SHAPe SQUare FREQuency lt numeric_value gt WAVE INSert SHAPe SQUare FREQuency lt numeric_value gt lt numeric_value gt limits depend on clock decade 400 MHz 400 Hz to 50 MHz resolution 1 Hz 40 kHz 04 Hz to 5 kHz resolution 0 0001 Hz
176. uous SINGle BURSt GATE BURSt Select burst trigger CONTinuous Select continuous trigger GATE Select gate trigger SINGle Select single trigger 6 105 Remote Commands _ TRIGger SEQuence SLOPe Purpose Command Query Response Arguments Set or query the trigger slope If the trigger slope is set to positive a trigger is generated when the signal crosses the trigger threshold level in a positive going direction If the trigger slope is set to negative a trigger is generated when the signal crosses the trigger threshold in a negative going direction Gate is true if trigger input is above the trigger level for positive slope or below trigger level for negative slope TRIGger SLOPe lt character_data gt TRIGger SLOPe lt character_data gt one of POSitive NEGative NEGative Trigger on negative going edge POSitive Trigger on positive going edge TRIGger SEQuence SOURCE Purpose Command Query Response Arguments 6 106 Set or query the trigger source The trigger source selection is internal or external TRiGger SOURCE lt character_data gt TRIGger SOURCE lt character_data gt one of YES NO NO Internal trigger selected YES External trigger selected WAVE AMPLitude AMPLitude Purpose Command Query Response Arguments Sets the peak to peak amplitude of the region between the left and right time cursors The amplitude is grown around a baseline that is defined
177. value gt Arguments lt numeric_value gt 1 to 16 6 29 Remote Commands _ EQUation NEW Purpose Creates a new equation sheet in the equation editor Command EQUation NEW lt string gt Query EQUation NEW Response lt string gt Arguments lt string gt EQUation OPEN Purpose Opens an existing equation sheet Command EQUation OPEN lt string gt Query EQUation OPEN Response lt string gt Arguments lt string gt Notes The lt string gt above is the name of an equation sheet which was previously 6 30 SAVEd in this project The equation sheet in memory is replaced 1 EQUation SAVE Purpose Saves the current equation sheet If a name other than the current name of the equation sheet is given then the current equation sheet is saved with the new name The old equation sheet is left unchanged If a name other than the current equation sheet is given that already exists then an error status will be generated an error code will be placed in the event queue and the equation sheet will not be saved Command EQUation SAVE lt string gt Query EQUAation SAVE Response lt string gt Arguments lt string gt FGENerator DC LEVel Purpose Set the DC voltage level for the specified channel s function generator either 1 or 2 Command FGENerator DC LEVel lt numeric_value gt Query FGENerator DC LEVel Response lt numeric_value gt Arguments lt numeric_value gt may be betwe
178. x aida olaaa 3 1 T TAKONY oniinn s Ni 2 2 TRIGGER MOSS AS cosilla 2 3 TROUDIGSROOUING A o a aea E EE 2 7 U Uploading Waveforms aora 7 12 W Wanane sai a a S 1 1 Waveform A 5 1 7 11 7 12 D ta POMAR 5 3 Viewing Dala cisco ea 5 5 intarpreting DN aan 5 6 Y CAD cad 6 1 6 10 A A O eee eee ene 6 1 6 7 6 8 6 97 ESE adria 6 2 FESR Maa O cio 6 3 A RAM O A ace actacte es E E TE 6 4 ERNST neh es eeeee ee 6 4 6 6 TOPO AAA Ag O 6 5 6 6 6 156 A a ce daeeatats bade tibanes O A E elects 6 5 ERNST NN A A iO Ra 6 6 SRE A LOS 6 7 A A PP AS 6 8 ad YA EA N on ounces eae a ms ct ceceae atte rea se a sent ieiaee eee eencees 6 9 6 73 TST sc dass cesses es edsa a a ascstieessdadiant tau E tau tts lee N ioteaieadveaee hoses 6 9 OR AO O 6 10 6 156 C GCALIbraton ALLE colado 6 10 Clock and Filter RANES E R a E a 6 109 D DISPliv ANNotation DATE STATE urnini ca 6 11 DISPlay ANNOtation LOGOS TA TW aee aaa ones Ea NE E NENT 6 11 DISPlay ANNotation PARameter S1A Tela ti ina 6 12 DISPlay ANVNotation AEL Lina iaa 6 12 DISPLAY SA VC o sa has T 6 13 DISPlay WINDOW TRACEC ALL diia pat dd 6 13 DISPlay WINDOWI FRACe COL 08 iuinrpiisasin da 6 14 DISPlay WINDow TRACe CURSors TIME DELTA oooocononcccnnooccncoonancononononanononronanonnnororononcanannonncconons 6 14 DISPlay WINDow TRACe CURSors TIME LEFT o onoccnonccnonnnnoneconannonocanacannnonacononaranccrnnaronnoroneroaconneos 6 15 DISPlay WINDow TRACe CURSors TIME RIGHIU so ccoo

Download Pdf Manuals

image

Related Search

Related Contents

ウインドシールド(UV010Y) 組付・取扱説明書  <個人線量測定サービス規約>  Guide d`inscription des candidats – Système  Report Tool - Protocol Manager    Istruzioni per l`uso - IT  Drivy, Location de voiture entre particuliers  

Copyright © All rights reserved.
Failed to retrieve file