Model 845-M Programmer’s Manual Version 1.1, June 2011 Berkeley Nucleonics Corporation 2955 Kerner Blvd, San Rafael CA 94901 USA- www.berkeleynucleonics.com Chat online or email info@berkeleynucleonics.
Model 845-M Programmer’s Manual V1.1 2011 Contents 1. Introduction.......................................................................................................................................................3 2. Programming the Model 845-M……. ................................................................................................................... 4 LAN..........................................................................................................................................
Model 845-M Programmer’s Manual V1.1 2011 1. Introduction This manual provides information for remote operation of the Model 845-M Signal Generator using commands sent from an external controller via Ethernet.
Model 845-M Programmer’s Manual V1.1 2011 2. Programming the Model 845-M The Model 845-M can be accessed though LAN, USB, or GIPB interface. All interfaces use standard SCPI command set to pass commands to the device. LAN The Model 845-M signal generator can be remotely programmed via a 10/100/1000Base-T LAN interface and LAN-connected computer using one of several LAN interface protocols. The LAN allows instruments to be connected together and controlled by a LAN- based computer.
Model 845-M Programmer’s Manual V1.1 2011 • IP Address: Every computer/electronic device in a TCP/IP network requires an IP address. An IP address has four numbers (each between 0 and 255) separated by periods. For example: 192.168.1.50 is a valid IP address. • Subnet Mask: The subnet mask distinguishes the portion of the IP address that is the network ID from the portion that is the station ID. The subnet mask 255.255.0.0, when applied to the IP address given above, would identify the network ID as 192.
Model 845-M Programmer’s Manual V1.1 2011 For instance, if the instrument has the IP address 192.168.1.50, TCPIP::192.168.1.50::inst0::INSTR is the valid resource name. Specification of inst0 in the resource name is optional. In this example, also TCPIP::192.168.1.50::INSTR is therefore a valid resource name. TCPIP designates the network protocol used and INSTR indicates that the VXI-11 protocol is used.
Model 845-M Programmer’s Manual V1.1 2011 VISA is an IO library used to develop IO applications and instrument drivers that comply with industry standards. It is recommended that the VISA library be used for programming the signal generator. The NI-VISA and Agilent VISA libraries are similar implementations of VISA and have the same commands, syntax, and functions. Using Telnet LAN Telnet provides a means of communicating with the signal generator over the LAN.
Model 845-M Programmer’s Manual V1.1 2011 NI-VISA 3.0 or later allows you to communicate as a controller to Model 845-M. NI-VISA is configured to detect USBTMC compliant instruments such as the Model 845-M. To use such a device, plug it in and Windows should detect the new hardware and launch the New Hardware Wizard. Instruct the wizard to search for the driver, which in this case is NI-VISA. If NI-VISA is properly installed, the device will be installed as a USB Test & Measurement Class Device.
Model 845-M Programmer’s Manual V1.1 2011 3. IEEE-488 Interface Commands IEEE Mandated Commands The required common commands are IEEE-488.2 mandated commands that are defined in the IEEE488.2 standard and must be implemented by all SCPI compatible instruments. These commands are identified by the asterisk (*) at the beginning of the command keyword. These commands are used to control instrument status registers, status reporting, synchronization, and other common functions.
Model 845-M Programmer’s Manual V1.1 2011 Remarks The Register is not affected by signal generator preset or *RST. However, cycling the signal generator power will reset this register to zero. *IDN? The Identification (IDN) query outputs an identifying string.
Model 845-M Programmer’s Manual V1.1 2011 The Service Request Enable (SRE) command sets the value of the Service Request Enable Register. The variable is the decimal sum of the bits that will be enabled. Bit 6 (value 64) is ignored and cannot be set by this command. Range 0–255 The setting enabled by this command is not affected by signal generator preset or *RST. However, cycling the signal generator power will reset it to zero.
Model 845-M Programmer’s Manual V1.1 2011 4. SCPI Commands This chapter provides an introduction to SCPI programming that includes descriptions of the command types, hierarchical command structure, data parameters, and notational conventions. Information on status system and trigger system programming is also provided. Introduction Standard Commands for Programmable Instruments (SCPI) is the new instrument command language for controlling instruments that goes beyond IEEE 488.
Model 845-M Programmer’s Manual V1.1 2011 SCPI Command Types SCPI commands, which are also referred to as SCPI instructions, are messages to the instrument to perform specific tasks. The Model 845-M command set includes: x “Common” commands (IEE488.2 mandated commands) x SCPI required commands x SCPI optional commands (per SCPI 1999.0) x SCPI compliant commands that are unique to the Model 845-M.
Model 845-M Programmer’s Manual V1.1 2011 Parameters Most commands require a parameter to be specified. The parameters must be separated from the header by a "white space". Permissible parameters are numerical values, Boolean parameters, text, character strings and block data. The type of parameter required for the respective command and the permissible range of values are specified in the command description. Numerical values Numerical values can be entered in any form, i.e.
Model 845-M Programmer’s Manual V1.1 2011 :SYSTem :TRIGger :UNIT All Model 845-M SCPI commands, except the :ABORt command, have one or more subcommands (keywords) associated with them to further define the instrument function to be controlled. The subcommand keywords may also have one or more associated subcommands (keywords). Each subcommand level adds another layer to the command tree. The command keyword and its associated subcommand keywords form a portion of the command tree called a command subsystem.
Model 845-M Programmer’s Manual V1.1 2011 Transition Filter The transition filter is a special register that specifies which types of bit state changes in the condition register will set corresponding bits in the event register. Negative transition filters (NTR) are used to detect condition changes from True (1) to False (0); positive transition filters (PTR) are used to detect condition changes from False (0) to True (1).
Model 845-M Programmer’s Manual V1.1 2011 The Operation Status group, consisting of the Operation Condition register, the Operation Positive Transition register, the Operation Negative Transition register, the Operation Event register and the Operation Event Enable register.
Model 845-M Programmer’s Manual V1.1 2011 Questionable Status Group The Questionable Status group, consisting of the Questionable Condition register, the Questionable Positive Transition register, the Questionable Negative Transition register, the Questionable Event register, and the Questionable Event Enable register, is used to determine the specific condition that set bit 3 in the Summary Status Byte.
Model 845-M Programmer’s Manual V1.1 2011 SCPI Command Description :ABORt Subsystem The :ABORt command is a single command subsystem. There are no subcommands or associated data parameters, as shown below. The :ABORt command, along with the :TRIGger and :INITiate commands, comprise the Trigger group of commands. Command :ABORt Parameters Unit (default) Remark V0.3.10 :ABORt :ABORt This command causes the List or Step sweep in progress to abort.
Model 845-M Programmer’s Manual V1.1 2011 :DISPlay Subsystem The :DISPlay subsystem controls the display of the front panel data display. Command Parameters :DISPlay[:WINDow]:TEXT:[STATe] :DISPlay:REMote ON|OFF|1|0 ON|OFF|1|0 Unit (default) :DISPlay:WINDow:TEST ON|OFF|1|0 :DISPlay[:WINDow]:TEXT:[STATe] ON|OFF|1|0 :DISPlay[:WINDow]:TEXT:STATe? Turns on/off the parameter display of the Model 845-M front panel data display.
Model 845-M Programmer’s Manual V1.1 2011 :INITiate Subsystem The :INITiate subsystem controls the state of the Model 845-M trigger system. The subsystem commands and parameters are described below. The :INITiate commands, along with the :ABORt and :TRIGger commands, comprise the Trigger Group of commands. Command Parameters :INITiate[:IMMediate] :INITiate:CONTinuous ON|OFF|1|0 :INITiate[:IMMediate] Sets Model 845-M trigger to the armed state.
Model 845-M Programmer’s Manual V1.1 2011 :OUTPut Subsystem Command OUTPut[:STATe] OUTPut:BLANking Parameters ON | OFF | 1 | 0 ON | OFF | 1 | 0 Unit (default) OFF OFF Remark V0.4.1 [:STATe] ON|OFF|1|0 :OUTPut[:STATe] ON|OFF|1|0 Turns Model 845-M RF output power on/off. :BLANking[:STATe] ON|OFF|1|0 :OUTPut:BLANking[:STATe] ON|OFF|1|0 :OUTPut:BLANking[:STATe]? ON causes the RF output to be turned off (blanked) during frequency changes. OFF leaves RF output turned on (unblanked).
Model 845-M Programmer’s Manual V1.1 2011 [SOURce]:FREQuency Subsystem Command [SOURce]:FREQuency:FIXed | CW [SOURce]:FREQuency:MODE [SOURce]:FREQuency:STARt [SOURce]:FREQuency:STOP [SOURce]:FREQuency:STEP[:LINear] [SOURce]:FREQuency:STEP:LOGarithmic Parameters fmin to fmax FIX | CW | SWEep | LIST fmin to fmax fmin to fmax 0 to fmax-fmin 0 to 255.
Model 845-M Programmer’s Manual V1.1 2011 This command sets the step size for a logarithmic step sweep.
Model 845-M Programmer’s Manual V1.1 2011 [SOURce]:PHASe Subsystem Command [SOURce]:PHASe:REFerence [SOURce]:PHASe[:ADJust] Parameters Unit (default) 0 radians Remark V0.4.1 V0.4.1 :PHASe:REFerence [SOURce]:PHASe:REFerence This command sets the current output phase as a zero reference. Subsequent phase adjustments are set relative to the new reference. :PHASe[:ADJust] [SOURce]:PHASe[:ADJust] [SOURce]:PHASe[:ADJust]? This command adjusts the phase of the signal.
Model 845-M Programmer’s Manual V1.1 2011 [SOURce]:POWer Subsystem Command [SOURce]:POWer[:LEVel][:IMMediate][:AMPLitude] [SOURce]:POWer:MODE [SOURce]:POWer:STARt [SOURce]:POWer:STOP [SOURce]:POWer:ALC [SOURce]:POWer:ALC:HOLD [SOURce]:POWer:ATTenuation [SOURce]:POWer:ATTenuation:AUTO [SOURce]:POWer:ATTenuation:LIST? Parameters FIXed|LIST|SWEep ON | OFF | 1 | 0 ON | OFF | 1 | 0 ON | OFF | 1 | 0 Unit (default) dBm FIXed dBm dBm ON OFF dB ON Remark V0.4.1 V0.4.1 V0.4.
Model 845-M Programmer’s Manual V1.1 2011 [SOURce]:POWer:ALC:HOLD ON|OFF|1|0 [SOURce]:POWer:ALC? (Devices with option PE only) This command sets the automatic level control into hold mode. The amplitude level control loop is open. *RST The preset value is 0 :ATTenuation [SOURce]:POWer:ATTenuation [SOURce]:POWer:ATTenuation? (Devices with option PE only) This command sets the power range extension attenuator. This command will also turn off automatic attenuation setting.
Model 845-M Programmer’s Manual V1.
Model 845-M Programmer’s Manual V1.
Model 845-M Programmer’s Manual V1.1 2011 :LIST:DELay:AUTO [SOURce]:LIST:DELay:AUTO ON|OFF|1|0 This command enabled the automatic blanking of the output during transients between two frequency steps. *RST ON :LIST:FREQency:POINts [SOURce]:LIST:POINts? This command queries the signal generator for the number of frequency points in the current list sweep file.
Model 845-M Programmer’s Manual V1.1 2011 [SOURce]:LIST:COUNt [SOURce]:LIST:COUNt? This command sets the number of consecutive times the list is executed on each sweep start. The variable is 1 to 65535 or INFinity. :LIST:PROGgress [SOURce]:LIST:PROGgress? This query returns the progress of an active list sweep, 0.0…1.0.
Model 845-M Programmer’s Manual V1.1 2011 [SOURce]:LFOutput Subsystem Command [SOURce]:LFOutput:AMPLitude [SOURce]:LFOutput:FREQuency [SOURce]:LFOutput:STATe [SOURce]:LFOutput:SHAPe [SOURce]:LFOutput:SOURce Parameters ON|OFF|1|0 SINE|TRIangle|SQUare LFGenerator|PULM|TRIGger Unit (default) 1V 400 Hz OFF SINE LFG :LFOutput:AMPLitude [SOURce]:LFOutput:AMPLitude [SOURce]:LFOutput:AMPLitude? This command sets the low frequency generator amplitude.
Model 845-M Programmer’s Manual V1.1 2011 This command sets the low frequency generator waveform. This setting does only take effect if :LFOutput:SOURce is set to LFGenerator. LFGenerator This selects the low frequency generator as the function output signal. PULM This selects the pulse modulation video out as the function output signal. TRIGger This selects the trigger as the function output signal.
Model 845-M Programmer’s Manual V1.
Model 845-M Programmer’s Manual V1.1 2011 :SWEep:PROGgress [SOURce]:SWEep:PROGgress? This query returns the progress of an active sweep, 0.0…1.0. :SWEep:SPACing [SOURce]:SWEep:SPACing LINear | LOGarithmic [SOURce]:SWEep:SPACing? This command enables the signal generator linear or logrithmic sweep modes. These commands require the signal generator to be in step mode. The instrument uses the specified start frequency, stop frequency, and number of points for both linear and log sweeps.
Model 845-M Programmer’s Manual V1.
Model 845-M Programmer’s Manual V1.1 2011 [SOURce]:FM Subsystem (Frequency Modulation) Command [SOURce:]FM:DEViation [SOURce:]FM:SENSitivity [SOURce:]FM:INT:FREQuency [SOURce:]FM:SOURce [SOURce:]FM:STATe [SOURce:]FM:COUPling Parameters INTernal| EXTernal ON|OFF|1|0 DC | AC Unit (default) 10000 Hz/V EXT OFF AC :FM:DEViation [SOURce]:FM:SENSitivity [SOURce]:FM: SENSitivity? This command sets the frequency modulation deviation.
Model 845-M Programmer’s Manual V1.1 2011 [SOURce:]FM:COUPling DC | AC [SOURce:]FM:COUPling? This command selects to signal coupling for the external FM modulation.
Model 845-M Programmer’s Manual V1.1 2011 [SOURce]:PM Subsystem (Phase Modulation) Command [SOURce:]PM:DEViation [SOURce:]PM:SENSitivity [SOURce:]PM:SOURce [SOURce:]PM:STATe Parameters EXTernal | INTernal ON|OFF|1|0 Unit (default) 1 rad 1 rad/V EXT OFF :PM:DEViation [SOURce]:PM:SENSitivity [SOURce]:PM: SENSitivity? This command sets the phase modulation deviation. This setting will be used if :PM:SOURce is set to LFGenerator. The variable is expressed in units of radians.
Model 845-M Programmer’s Manual V1.1 2011 [SOURce]:PULM Subsystem (Pulse Modulation) This additional functionality provides pulse modulation of the RF output signal delivered to the load by an internal or external modulation signal. The INTernal selection accesses the internally generated modulation input while EXTernal selects the external pulse (rear panel connector) input.
Model 845-M Programmer’s Manual V1.1 2011 :PULM:SOURce [SOURce]:PULM:SOURce INTernal|EXTernal [SOURce]: PULM:SOURce? *RST INT :PULM:STATe [SOURce]:PULM:STATe ON|OFF|1|0 [SOURce]:PULM:STATe? This command enables or disables pulse modulation for the selected path. *RST 0 :PULM:MODE [SOURce]:PULM:MODE FIXed | LIST [SOURce]:PULM:MODE? This command sets the modulation mode. With “FIXed”, the normal ON/OFF modulation can be performed.
Model 845-M Programmer’s Manual V1.1 2011 :TRIGger Subsystem Triggers control the playback by telling the Model 845-M when to play the signal. Depending on the trigger settings for the Model 845-M, the waveform playback can occur once, continuously, or the 845-M may start and stop playing the waveform repeatedly (GATE mode). A trigger signal comprises both positive and negative signal transitions (states), which are also called high and low periods.
Model 845-M Programmer’s Manual V1.1 2011 the inactive state and stops during the active polarity selection state. The active state can be set high or low. The gate mode works only with an external trigger source. POINt Upon triggering, only a single point of the sweep (list) is played. *RST NORM :TRIGger[:SEQuence]:TYPE:GATE TRIGger[:SEQuence]:TYPE:GATE LOW|HIGH TRIGger[:SEQuence]:TYPE:GATE? This command selects the active state (gate polarity) of the gate while using the gating trigger mode.
Model 845-M Programmer’s Manual V1.1 2011 TRIGGer[:SEQuence]:RETRigger ON|OFF|IMMediate TRIGGer[:SEQuence]:RETRigger? This command enables or disables the ARB retriggering mode; the retrigger mode controls how the retriggering function performs while a waveform is playing. This choice specifies that if a trigger occurs while a waveform is playing, the ON (1) waveform will retrigger at the end of the current waveform sequence and play once more.
Model 845-M Programmer’s Manual V1.1 2011 :STATus Subsystem This subsystem controls the status-reporting structures.
Model 845-M Programmer’s Manual V1.1 2011 :QUEStionable:CONDition? :STATus:QUEStionable:CONDition? This query returns the contents of the questionable status condition register. :QUEStionable:ENABle :STATus:QUEStionable:ENABle This command sets the enable mask of the questionable status event register. :QUEStionable:PTR :STATus:QUEStionable:PTR This command sets the positive transition filter of the questionable status event register.
Model 845-M Programmer’s Manual V1.1 2011 :SYSTem Subsystem Command Parameters Unit (default) :SYSTem:ERRor[:NEXT]? :SYSTem:ERRor:ALL? :SYSTem:PRESet :SYSTem:VERSion? :SYSTem:LOCK :SYSTem:LOCK:RELease Remark V0.4.1 V0.4.1 V0.4.1 V0.4.1 :ERRor? :SYSTem:ERRor[:NEXT]? Return Parameters: Integer error number Query command is a request for the next entry in the instrument’s error queue.
Model 845-M Programmer’s Manual V1.1 2011 [:SYSTem:COMMunicate] Subsystem Command :SYSTem:COMMunicate:LAN:CONFig :SYSTem:COMMunicate:LAN:DEFaults :SYSTem:COMMunicate:LAN:DHCP:TIMeout :SYSTem:COMMunicate:LAN:GATeway :SYSTem:COMMunicate:LAN:IP :SYSTem:COMMunicate:LAN:RESTart :SYSTem:COMMunicate:LAN:SUBNet :SYSTem:COMMunicate:SOCKet:ECHO Parameters Unit (default) DHCP V0.4.1 N/A 30 sec “0.0.0.0” DHCP|MANual|AUTO ON|OFF|1|0 “255.255.255 .
Model 845-M Programmer’s Manual V1.1 2011 This command defines the domain name of the signal generator’s DNS server. This entry defines the DNS server for the signal generator LAN connection. The query returns the current setting, not the saved setting. :LAN:DNS:DYNamic (not implemented) :SYSTem:COMMunicate:LAN:DNS:DYNamic ON|OFF|1|0 :SYSTem:COMMunicate:LAN:DNS:DYNamic? This command turns dynamic Domain Name System (DNS) on/off. The query returns the current setting, not the saved setting.
Model 845-M Programmer’s Manual V1.1 2011 :LAN:KEEP:TIMeout (not implemented) :SYSTem:COMMunicate:LAN:KEEP:TIMeout :SYSTem:COMMunicate:LAN:KEEP:TIMeout? This command sets the length of time for the TCP Keep Alive setting. Range 0 sec to 3600 sec :LAN:RESTart :SYSTem:COMMunicate:LAN:RESTart This command restarts the network to enable changes that have been made to the LAN setup.
Model 845-M Programmer’s Manual V1.1 2011 UNIT Subsystem Command UNIT:POWer UNIT:POWer UNIT:POWer W|V|DBM|DB *RST DBM UNIT:FREQuency UNIT:FREQuency HZ|MHZ|GHZ *RST HZ 51 Parameters W|V|DBM|DB Unit (default) DBM Remark V0.4.
Model 845-M Programmer’s Manual V1.1 2011 About the Company Berkeley Nucleonics Corporation is a leading manufacturer of precision electronic instrumentation for test, measurement and nuclear research. BNC has its corporate headquarters in San Rafael, California with several additional manufacturing facilities and sales offices located throughout the United States.