User’s Manual Model 4071 31.
B&K Precision Model 4071 User’s Manual B+K Precision Corp. ALL RIGHTS RESERVED PRODUCT AND DOCUMENTATION NOTICE: B+K Precision reserves the right to change this product and its documentation without prior notice. Information furnished by B+K Precision is believed to be accurate and reliable. However, B+K Precision assumes no responsibility for its use, nor for any infringement of patents, or other rights of third parties, which may result from its use.
Table of Contents 1.0 Introduction 1.1 Description ..................................................................................................................................................................2 1.2 Feature summary..........................................................................................................................................................3 2.0 Installation and setup Detail explanation of input and output connectors ............................................
.26 Voltage Controlled Oscillator (VCO) mode...........................................................................................................39 6.0 Remote operation 6.1 Introduction..................................................................................................................................................................40 6.2 Hookup................................................................................................................................................
1.0 Introduction Figure 1.0-1: The BK Precision model 4071 This manual contains operating instructions for the BK Precision Model 4071 Signal Generation and Processing Engine. Complete specifications for the Model 4071 are given in Chapter 9. 1 BK Precision 4071 User Manual Rev.2.
1.1 Description Figure 1.1-1: 4071 front panel The Model 4071 is a versatile signal source capable of generating a variety of waveforms, including CW and wideband sweeps from D.C. to 31.5 MHz in steps of .01 Hz. The signals are generated using direct digital waveform synthesis (DDS) techniques for high accuracy and precision. AM, FM, PM, and FSK modulation types are available.
Included with the Arbitrary Waveform Generator are a full-featured Function Generator and Pulse Generator. The function generator offers a set of pre-stored waveforms, which are generated using the Arbitrary Waveform system. The Pulse Generator allows the user to generate pulse waveforms with varying amplitude, offset, frequency and duty cycle. 1.2 Feature summary • Each unit is individually calibrated to ensure accurate output frequency, level, and offset voltage.
2.0 Installation and setup. This section discusses how to properly connect the 4071 to your equipment. The following diagrams identify the connectors and show typical hookups. Figure 2.0-1: Front Panel Connectors 1. SYNC out connector This connector provides a TTL/CMOS signal, +5V logic level useful for driving digital circuitry. This output is capable of driving TTL or CMOS loads with current capability +/- 24 mA.
3. External Modulation In connector The External Modulation In connector, located on the rear of the 4071, accepts an external analog signal as illustrated here: Figure 2.0-3: Connecting an external signal On this connector, the user supplies a base band signal (below 50 KHz) that is used to modulate an output carrier. (microphone is shown here as an example).
4. External Trigger/Gating/FSK/BPSK input The External Trigger/Gating/FSK/BPSK In connector accepts an external digital signal on the rear of the unit as illustrated here: Figure 2.0-4: Driving the Ext Trigger/Gating/FSK/BPSK input On this connector the user supplies a digital signal, which serves a variety of purposes, depending on the operating mode of the 4071. This input is a high impedance input (about 80KO) and can safely accept input levels from -10V to +10V.
Figure 2.0-5: Rear panel connectors 5. External Reference Input / Ext Arb. Clock connector This connector accepts an external sample clock for the Arbitrary Waveform Generator when the unit is in External Clock or Lock Slave modes. The signal level on this input must be between 0V and +5V and is intended to be driven by TTL/CMOS logic. (For more information on Arb Locking, refer to the chapter “Multiple Unit Locking.
3.0 Operating controls and keys. 3.1 Mode key The Mode key is used to change the operating mode of the 4071. When pressed, the LCD display is cleared and the question Mode? is displayed. The Mode key acts as a shift type key in that the meaning of each button on the front panel changes to that described by the red wording beneath it. To enter Sweep mode, for example, first press the Mode key and then press the number 4 key. You can exit the Mode screen by pressing the red Mode key again.
NOTE: Care must be taken when specifying an output offset voltage and level such that the output does not clip. The loaded output cannot swing higher than +6.0V or lower than -6.0V. Therefore: ¦Offset voltage¦ + 1/2 * Vp -p < 6.0 The 4071 can be used as a variable voltage source by setting the output frequency to 0.0 Hz while in Sinewave mode. Then set the offset voltage to the desired output voltage. Remember, the output impedance is 50 ohms.
3.8 Clear key While the cursor is within a numeric field, the Clear key erases all digits within the field, allowing the user to start over when entering a value. This key is also used to select the "Other" mode after the Mode key is pressed once. By selecting Other Mode, a menu of extended modes for the 4071 is presented. See the chapter on Changing Modes. 3.9 MHz/dBm, KHz/Vp-p/Sec, Hz/mVp-p/mS keys These keys are used to select the units for a numeric value once it has been typed into a parameter field.
4.0 Operating guide Turn 4071 on. After a display of the hardware and software versions and serial number, the unit enters the Basic Sinewave mode of operation. The 4071 defaults to generating a 1.0 MHz sinewave at a level of -10.0 dBm. 4.1 Changing frequency To change the frequency, press the Right Field Arrow button once. The cursor will move to the frequency field. A flashing digit indicates the cursor position. You can change the frequency two different ways.
4.5 Changing values For each operating mode, the LCD display shows a number of fields that hold operating parameters for the selected mode (i.e. sweep start frequency, stop frequency, etc.). To change the value of a parameter, you must first move the cursor to the desired field on the display. To do this, press one of the Field Arrow keys until the cursor appears in the desired field.
5.0 Mode descriptions The following pages describe each operating mode of the 4071. The meaning of each parameter that appears on the LCD display is described in detail. 5.1 Basic Sinewave (CW) Mode Introduction The Basic Sinewave (CW) mode generates a sinewave of fixed frequency and level.
5.2 Internal AM Mode Introduction The Internal AM mode generates an amplitude-modulated signal form with fixed carrier and modulating frequencies. An internally generated sinusoid is used as a modulating signal to vary the amplitude of a carrier sinusoid. The modulation waveform is not suppressed carrier; i.e. a fixed amount of carrier power is always present in the modulated signal. . Internal AM mode could be entered by pressing “Mode”> “AM” >”1” key at any time.
5.3 External AM Mode Introduction External AM mode generates amplitude-modulated signal of fixed carrier frequency, were externally supplied signal is used as a modulating signal to vary signal modulated frequency and depth. Modulated frequency, output level, input gain and DC offset values could be manually entered from the front panel keypad in this mode. External signal gating options is available in this mode. External AM mode could be entered by pressing “Mode”> “AM” >”2” key at any time.
5.4 Internal FM Mode Introduction Internal FM mode generates frequency-modulated signal of fixed amplitude. It used internally generated signal to modulate frequency of carrier signal. Modulated and modulating frequency, output level, deviation, and DC offset values could be manually entered from the front panel keypad in this mode. External signal gating options is available in this mode. Internal FM mode could be entered by pressing “Mode”> “FM” >”1” key at any time.
5.5 External FM Mode Introduction External FM mode generates frequency-modulated signal of fixed amplitude were externally supplied signal is used as a modulating signal to vary frequency of the carrier signal. Modulated frequency, level, peak deviation and DC offset values could be manually entered from the front panel keypad in this mode. External signal gating options is available in this mode.
5.6 Internal PM Mode Introduction Internal PM mode generates phase-modulated signal of fixed amplitude. It used internally generated signal to modulate phase of carrier signal. Modulated and modulating frequency, output level, deviation, and DC offset values could be manually entered on the keypad in this mode. External signal gating options is available in this mode. Internal PM mode could be entered by pressing “Mode”> “PM” >”1” key at any time.
5.7 External PM Mode Introduction External PM mode generates phase-modulated signal of fixed amplitude were externally supplied signal is used as a modulating signal to vary phase of the carrier signal. Modulated frequency, level, peak deviation and DC offset values could be manually entered from the front panel keypad in this mode. External signal gating options is available in this mode. External PM mode could be entered by pressing “Mode”> “PM” >”2” key at any time.
5.8 Sweep Mode Introduction The Sweep mode continuously changes the frequency of a fixed amplitude sinusoid between a specified start frequency and stop frequency. The user can set sweep time as well. The frequency may be stepped between the start and stop frequency linearly. A sweep direction, up or down, could be specified. The user could choose continuous or triggered type sweep. In the Continuous mode, the sweep is restarted once the stop frequency reached.
5. Up / Down sweep In this field select the direction of the sweep. An up sweep begins at the start frequency and ends at the end frequency. A down sweep begins at the end frequency and ends at the start frequency. To set Up type sweep, press 0. To set down type sweep, press 1. Pressing any arrow key or rotating the wheel will toggle the sweep between Up and Down. 6. Sweep time In this field you specify how long it takes the sweep to increase the frequency from the start frequency to the stop frequency.
5.9 Internal FSK Mode Introduction Internal FSK mode generates a frequency shift keyed signal of fixed amplitude. Internal timer is used as modulating signal to toggle the output signal frequency between mark frequency and space frequency. Mark and Space frequencies, output level, modulating shift frequency and DC offset values could be manually entered from the front panel keypad in this mode. External signal gating option is available in this mode.
5.10 External FSK Mode Introduction External FSK Frequency Shift Key generates a frequency shift keyed signal of fixed amplitude. External signal is used to toggle the output signal frequency between mark frequency and the space frequency. Mark and space frequencies, level and DC offset values could be manually entered from the front panel keypad in this mode. External signal gating option is available in this mode. External FSK mode could be entered by pressing “Mode”> “FSK” >”2” key at any time.
5.11 Burst Mode Introduction The Burst mode generates a sinusoid burst of fixed frequency and level for a specified duration. Both continuous and triggered bursts may be generated. In the continuous burst mode, the 4071 continuously gates the output sinusoid on and off according to the values entered in the On and Off fields. In triggered burst mode, the output frequency is set to 0 Hz and the unit awaits a trigger condition.
5.12 Internal SSB Mode Introduction Internal SSB mode generates a Single Sideband modulated signal of fixed carrier frequency. Internally generated signal is used to modulate either Upper sideband or Lower sideband of a carrier signal. Modulating, carrier frequencies and output level with DC offset values could be manually entered on the keypad. External signal gating option is available in this mode. Internal SSB mode could be entered by pressing “Mode”> “SSB” >”1” key at any time.
5.13 External SSB Mode Introduction External SSB mode generates a Single Sideband (SSB) modulated signal of fixed carrier frequency. External signal is used to modulate either Upper sideband or Lower sideband of a carrier signal. Carrier frequency, output level with DC offset values could be manually entered on the keypad. External signal gating option available in this mode. Internal SSB mode could be entered by pressing “Mode”> “SSB” >”2” key at any time.
5.16 DTMF Generation Mode Introduction Dual Tone Multi Frequency generation mode generates the Touch-tone dialing tones according ANSI T1.401-1988 Section 7.2 standard. The user can specify dialing digits “0” to “9” alone with ext ra DTMF codes “A” thru “D”. A start delay can be specified for each digit. The duration of each digit can also be specified. These two parameters make it possible to test the performance DTMF detection systems.
Several keys on the front panel are used to generate DTMF digits other than “0” to “9”. They are listed here: To generate the "#" DTMF digit, press the minus (-) key. To generate the "∗" DTMF digit, press the period (.) key. To generate the "A" DTMF digit, press the é key. To generate the "B" DTMF digit, press the ê key. To generate the "C" DTMF digit, press the è key. To generate the "D" DTMF digit, press the ç key. 2. DTMF Duration The DTMF tone will remain on for the time specified in this field.
5.17 DTMF Detection Mode Introduction Dual Tone Multi Frequency detection mode decodes and displays the Touch-tone dialing tones according to ANSI T1.401-1988 Section 7.2 standard. Input test signal could be applied to the External Mod Input for DTMF decoding. Once a DTMF digit has been detected, it will appear on the LCD display and will also be sent to the RS-232 terminal port. The input signal must be 10 Vp -p or less.
5.18 Power & Voltage Measurement Mode Introduction The Power & Voltage Measurement mode measures the signal level on the Ext Mod In connector and displays the power and voltage level on the LCD display. The Power Measurement mode applies to frequencies in the DC to 50KHz range. An internal lowpass filter attenuates all signals outside this frequency range. The internal Digital Signal Processor (DSP) calculates a point-by-point true RMS power.
5.19 Arbitrary Mode In Arbitrary generator mode the user could design custom waveform on PC, then download it to 4071 memory over RS-232 serial port to synthesize signal. Continuous or trigger triggering modes are available. Signal Clock, output level and DC offset values could be manually entered from the front panel keypad in this mode. For complete details on the Arbitrary Mode, refer to section 7.0 of this manual. 5.
5.22 Internal BPSK Mode Introduction The Internal BPSK mode generates a phase shift keyed signal of fixed amplitude. An internal timer is used as a modulating signal to switch the output phase between 0 and 180 degrees at a specified rate. The modulation is suppressed carrier; i.e. no carrier energy is present in the output waveform. BPSK mode could be accessed from “other” modes menu.
5.23 External BPSK Mode Introduction The External BPSK mode generates a phase shift keyed signal of fixed amplitude. The logic level on the Ext FSK In connector is used as a modulating signal to shift the output phase between 0 and 180 degrees. The modulation is suppressed carrier; i.e. no carrier energy is present in the output waveform. NOTE: External BPSK is implemented by sampling the Ext FSK In line at 1.43 MHz. When a change in the state of the line is detected, the output phase is switched.
5.24 Dualtone Generation Mode Introduction The Dualtone Generation mode generates an output signal, which is the sum of two sinusoids of equal amplitude. The frequency of each sinusoid may be individually specified with 1 Hz resolution. In addition, a phase offset may be specified which offsets the phase of one sinusoid with respect to the other. The resulting Dualtone waveform may be gated on and off for specified intervals.
Ext Gating Input This TTL compatible input can be used to gate the output signal on or off. Logic high voltage turns off the output. For further information on the Ext Gating Input, refer to section 2.0. Dualtone Examples The following table lists the parameters for some common Dualtone.
5.25 Data Modulation Mode Introduction The data modulation mode will digitally modulate a binary message of up to 960 bits (60 words) in length. Data is digitally modulated using FSK modulation at an adjustable baud rate. The mark and space frequencies may be independently specified from 0 Hz to 31.5 MHz with 0.01 Hz resolution. The baud rate is adjustable from 0 Hz to 130 KHz in 1 Hz steps. By specifying a Mark or Space frequency of 0 Hz, 100% digital AM modulation may also be done.
NOTE: For wideband FSK (where the difference between Mark and Space frequencies is > 1.0 MHz), the output level may shift slightly between the mark and space frequencies. The 4071 has internal leveling circuitry is disabled in this mode, in order to offer higher FSK modulation rates. NOTE: The level specified is a 50O loaded level. This is the level of the signal, which will appear across a 50O load connected to the SIG Out connector. Into an open circuit, the output swing will be twice the value entered.
NOTE: For more information on the Hexadecimal format, please refer to the User’s Manual chapter on Hexadecimal Format. Triggering the Transmission The Data Modulation mode starts by setting the output frequency to 0 Hz and awaiting a trigger condition. When a trigger condition occurs, the unit will turn on the carrier and modulate the carrier until all bits have been sent out. After the message has been transmitted, the 4071 will turn off the carrier and await another trigger event.
5.26 Voltage Controlled Oscillator (VCO) Mode Introduction The Voltage Controlled Oscillator mode generates signal, where frequency could be vary between two specified values using ext ernally supplied -5.0V/+5.0V voltage. The control input bandwidth is DC to 35 KHz. Start, End frequencies, output level and DC offset values could be manually entered from the front panel keypad in this mode. External signal gating options is available in this mode.
6.0 Remote Operation 6.1 Introduction The Remote Operation feature allows the user to control all operations of the 4071 with a terminal or computer. Commands and responses use ASCII characters; permitting a "dumb" terminal to be used to control the 4071. Each key on the front panel keypad has an ASCII letter associated with it. Sending this letter to the 4071 through the serial port has the same effect as pressing that key on the keypad.
You now have a terminal connection established with the 4071. Hit the “?” key. You should see a command menu in response. If you do not see this menu, check the following: • On the 4071, press Mode then Offset and verify that the baud rate is set to 9600. • Verify that you are using the correct COM port. • Check your cabling. If you see the command menu, you have verified that the 4071 is properly cabled to the computer, and that you are certain which COM port you are using.
6.6 Remote Control Commands The diagram below gives the front panel keys and their associated ASCII codes. Sending these characters to the 4071 has the same effect as pressing the associated button on the front panel. NOTE: To familiarize yourself with the remote operation of the 4071, it is helpful to run a terminal program on your PC and manually type the commands and watch the response. To get a help menu, press H. See section 6.3 for details.
V - Report hardware and software versions This command reports the hardware, software versions. A hexadecimal serial number, and a program memory checksum are also reported by this command: BK Precision model: 4071 Software Version: c.2 Hardware Version: 1.0 S/N: F45E3412AC56 PM Checksum: 0017829BB903 K1.0 - Enable, Disable front panel keys and rotary knob This command is used to disable or enable the front panel keypad and rotary knob.
F0-9 - Move cursor to field 0 to 9 This command is used to move the cursor directly to the specified field number. Each parameter field on the LCD display has an associated number with it, starting with 1 and increasing as you move from left to right, then top to St: 0 Hz Stp: 31,500,000.00 Hz Linear | Trig | Up | Time: 10,000 mS -10.0 dBm bottom. For example, the Sweep mode has seven fields: Each field is numbered as follows: Field 1 - St: 1,000,000.00 Hz Field 2 - Stp: 31,500,000.
6.7 Remote Control Examples The following are some examples of ASCII character command sequences: Example 1 B F1 3.141Z N 2.3Z F0 NOTE: You do not need spaces between the characters. They were added here only to make the commands more readable. This command sequence breaks down as follows: B - Set 4071 to Sinewave mode F1 - Move cursor to field 1 (frequency field) 3.141Z - Enter a freq. value of 3.141 MHz N - Move cursor to next cursor field (field 2, level field) 2.3Z - Enter a level of +2.
7.0 Arbitrary Waveform Mode 7.1 Quick Start Guide This guide will show you how to download and generate SINE.FLT, an example waveform in floating point format. This file is on the supplied compact disk in the disc 4071 \arb\examples directory. 1 . Connect a serial port on you PC to the serial port connector on the rear of the 4071. You may temporarily detach your serial mouse if needed to free up a serial port. (Mouse operation will be restored after the download).
7.2 Introduction to the Arbitrary Waveform System 7.2.1 Description of the Arbitrary Waveform Generator The Arbitrary Mode lets the user design custom waveforms on a PC and download them to the 4071 for generation including Arbitrary Waveform system is a fully featured Function Generator. Function generator offers a set of prestored waveforms. Signals are generated using the Arbitrary Waveform hardware. User may select from many stored waveforms, and may also specify a repetition rate to 2 MHz.
7.2.2 Feature Summary Arbitrary Waveform Generator: • True Arbitrary Waveform Generation. Every point is generated, regardless of clock rate • Sample rate variable from 0 to 40 Mega-samples/Second in .01 Hz steps • 32,768 maximum waveform points • 12 bit vertical resolution • Continuous/Triggered operation • Many data formats supported: Floating Point, Decimal, Integer, Hexadecimal, Binary, .CSV and .
7.4 Arbitrary Waveform Mode 1 4 Arb Mode Int Clock 3 Cont Clock: Phase: 126.35 deg 1,000,000.00 Hz 10,000 mV 2 5 Figure 7.4-1: Arbitrary Waveform Mode display 1. Int Clock / Ext Clock / Lock Master Lock slave mode In this field select the clocking mode for the arbitrary waveform system: Internal Clock - The sample clock is generated internally. The clock frequency is entered directly via the front panel.
7.5 Function Generator Mode 3 1 2 Function Gen Cont Wave: Pos Ramp 1 1,000 mV 4 Rep Freq: 100,000 Hz Figure 7.5-1: Function Generator Mode display 1. Waveform In this field select the desired function generator waveform. You may select from among the following: 0. Positive Ramp 5. Inverted Positive Exponential 1. Negative Ramp 6. Negative Exponential 2. Triangle 7. Inverted Negative Exponential 3. Random (noise) 8. Sinewave 4.
7.6 Pulse Generator Mode 4 Pulse Gen 3 Cont 1 Pos Only? N Duty Cycle: 50 % Rep Freq: 2,000,000.00 Hz 1,000 mV 2 5 1. Positive Only This field, when set to “Y”, does not let the output signal go below 0V. This feature is handy when driving circuitry that cannot accept negative voltages. This feature eliminates having to readjust the offset voltage to obtain a positive only signal every time the output level is changed.
7.7 Downloading arbitrary waveforms To download Arbitrary Waveform data to the 4071, you must connect the serial port on your computer to the RS-232 port on the back of the 4071. For more detail information on this, refer to the chapter 6.2 On the host computer, you may use the supplied DOS program WAVELOAD.EXE or you may send the data to the 4071 from your own application program. The next two sections give details on each.
7.7.2 Using your own program You may use your own application program to send the arbitrary waveform data to the 4071. To download a waveform to the 4071, you need to send the following to the 4071 through the serial port: 1. A two character header consisting of: a) The “W” character. This tells the 4071 to expect the download of an arbitrary waveform. b) A single character, which specifies the data format.
7.8 Data Formats 7.8.1 Floating Point Format A floating point number consists of a mantissa and an optional exponent. Downloading floating point values is slower because it can take many characters to represent a single numeric value. This format has an advantage, however, because it is so flexible. Many sources of data (BASIC trig functions, spreadsheets, digital oscilloscopes, and waveform design packages) can generate data in this format. Rules for Floating Point format: 1.
7.8.2 Time & Value Floating Point Format This format uses the same numerical format as Floating Point except that a Time, or Point Number value precedes each Point Value. Since the 4071 does not need the Time or Point Number, specifying this format causes the 4071 to skip every other number it encounters, starting with the first floating point number. All rules for this format are identical to those for Floating Point Format, except that the Time or Point Number value need not be between +1.0 and -1.
7.8.3 Digital Format The Digital format was implemented as an easy way to design purely digital waveforms, i.e. waveforms that are either high or low. The digital format provides a very efficient way of representing waveforms that assume only a high or low value. If the value of the data point is 0, then the SIG Out output is set to its minimum negative output voltage and the SYNC Out output is set to the logic Low state (0V) for that point.
7.8.4 Integer Format This format represents a full-scale output with a base 10 number that ranges from -2047 to +2047 as follows: -2047 ---- -1024 --- 0 ---- 1024 ---- 2047 -1.0 -.5 0.0 +.5 +1.0 Rules for Integer format: 1. The 4071 expects all Integer values to be between -2047 and +2047. If a number falls outside that range, the number is set to +2047 or -2047. These correspond to the peak values of the waveform. If the output voltage level were set for 5V p-p, for example, then +2047 corresponds to +2.
7.8.5 Hexadecimal Format This format sends the same two's complement data that Binary format uses, except that each nibble (4 bits) of the hex value is represented by an ASCII character. Each data point is a 16-bit value, which is sent to the 4071 as 4 ASCII characters.
7.8.6 Binary Format This is the fastest way to send points to the 4071 since it transfers the data point with only 2 characters. (It is also the least forgiving as far as getting the data sent correctly). Each data point is a 16-bit word, which is sent to the 4071 in two bytes. The high byte is sent first, followed by the low byte. The 16 bit value is in "two's complement" format, which represents a number from -1.0 to +1.0 as follows: 8000 ---- E000 ---- FFFF,0 ---- 4000 ---- 7FFF -1.0 -.5 0.0 +.5 +1.
7.9 Multiple Units Locking 7.9.1 Introduction to Multiple Arb Locking With this feature, users may lock several arbitrary waveform generators together to generate multiple simultaneous signals, which are locked together in frequency. The user may then adjust a phase-offset field to obtain a desired phase relationship between the waveforms with a minimum phase resolution of 0.01 degrees. Any shape of waveform may be used.
More on Phase Offsets Phase Offsets are accomplished with a reset signal shared by all units. This signal tells all units to jump to a particular waveform point at the same time. By changing which point in the waveform is jumped to, the starting phase of the waveform may be adjusted. The 4071 has a phase offset field which allows the user to specify a starting phase from 0 degrees to 359.99 degrees. This phase is relative to the Master Unit’s waveform phase, which is always 0 degrees.
7.10 Example Arb Program ARB.BAS ARB.BAS is a program written in Microsoft Quick Basic, which calculates the points of a sinewave and downloads them to the 4071 as an arbitrary waveform. The program can generate the waveform in all of the supported formats (Floating Point, Integer, Hexadecimal, and Binary) and shows how SYNC Out can be asserted during waveform points. This program can serve as a good starting point for writing you own waveform generation programs.
' ------------------------------- Main Loop -------------------------------' This loop calculates each point of the arbitrary waveform. ' It then calls one of several subroutines (depending on what format you ' would like the data in) to send the data to the 4071 NUMPOINTS = 80 ' Total number of points generated Phase# = 0 ' Reset sinewave phase accumulator to 0 PhaseInc# = 2 * 3.
'****************************************************************************** ' Subroutines ' ' These subroutines take a value in PointVal (which ranges from -1.0 to +1.0) ' and converts it to various data formats, (i.e. Floating Point, Binary, ' ASCII Hex, and Integer) and then sends that value to the 4071. ' ' Before the first data point is sent, a Header consisting of two characters ' is sent to the 4071.
IF PointNumber = 1 THEN PRINT #1, "WF" ' Put header info before 1st data point IF PointNumber = 2 THEN PRINT #1, "p" ' Set SYNC Out bit for second point PRINT #1, PointVal RETURN ' Send Floating point number to 4071 '------------------------- Send Integer data to 4071 ---------------------' This format sends a base 10 number which is in the range -2047 to +2047 ' ' The integer numbers represent -1.0 to +1.0 as follows: ' ' -2047 ---- -1024 --- 0 ---- 1024 ---- 2047 ' -1.0 -.5 0.0 +.5 +1.
PRINT #1, a ' Send integer value to 4071 RETURN '------------------------- Send ASCII Hex data to 4071 ---------------------' This format sends the same two's complement data that Binary format uses, ' except that each nibble (4 bits) of the hex value is represented by ' an ASCII character. ' ' Each point is a 16 bit word which is sent to the 4071 with 4 characters.
IF PointVal < 0 THEN PointVal = PointVal + 2: j = 32768! a = INT(PointVal * j) ' Get a number 0 to 65535 a = INT(a / 16) a = a * 16 ' Mask off lower 4 bits ($FFF0) IF PointNumber = 2 THEN a = a OR &H8 a$ = HEX$(a) ' Set SYNC Out bit for second point ' Convert the integer to hexadecimal ' For negative values, the HEX$ fctn will return a 32 bit value, ie $FFFF FFD8, ' so chop off all but the last 4 chars IF a < 0 THEN a$ = RIGHT$(a$, 4) PRINT #1, a$ ' Send hex point to 4071 RETURN '-----------------------
' first and then the high byte. ' The 4071 expects the high byte first so we must reverse the two so we ' get the proper byte order (i.e. high byte then low byte) high = INT(a / 256) low = a MOD 256 a = low * 256 + high ' Get the High byte of the 16 bit value ' Get the Low byte of the 16 bit value ' Switch hi and low bytes IF a > 32767 THEN a = a - 32768 b% = a PUT #1, , b% ' Make it signed for conversion to int.
8.0 DC Operation Option Description The DC Operation Option allows the user to power the 4071 from a DC voltage source in the 9-36 VDC range. The user may easily switch between the AC Line supply and a DC source. This option is most useful for service and remote applications where AC power is not available. A 20-72V input voltage range is also available. Please contact BK Precision for availability. Specifications: • Input Voltage Range: 9-36 VDC • Max.
9.0 4071 Specifications Binary Phase Shift Keying (BPSK) Mode Main Output Int. modulation freq: 0 Hz to 130 KHz, 1 Hz steps Frequency: DC to 31.5 MHz, .01 Hz steps Ext. modulation freq: 0 Hz to 10 KHz Level: 4 mVp -p to 10.0 Vp -p, 1 mV steps (into 50 Ω) Sync Output or -44.0 dBm to +24.0 dBm, .1 dBm steps (into 50 Ω) in Function, Arbitrary and Pulse modes. Amplitude: 3.5V to +5V Fall Time: 5 nS. Rise Time: 8 nS. 10% to 90% Level: 4 mVp -p to 5.0 Vp -p, 1 mV steps (into 50 Ω) Output current: ± 24 mA. or -44.
10.0 Software CD Description The compact disk, which accompanies this manual, contains a number of useful utilities and example programs, which are in directory /disc 4071. Due to similarity in firmware structure BK models 4070A and 4071 both are compatible with this software, except frequency range. Below is a list of the directories on this disk and a description of the files within each. Within each directory is a file called README, which explains the purpose of the files in that directory.
Appendix A Example remote control host program This chapter contains an example program written in Microsoft QuickBasic for remotely controlling the 4071. It can be used as a starting point for writing your own remote control applications. The program illustrates several basic techniques for remotely controlling the 4071 with a control program. The program begins by showing how to detect the presence of the 4071 on the serial port.
'-----------------------------------------------------------------------------'-----------------------------------------------------------------------------' Program Start '-----------------------------------------------------------------------------'-----------------------------------------------------------------------------DECLARE SUB Delay (X%) DECLARE SUB Pause () CLS ' Declare functions used below.
'----------- Set a frequency and level on the 4071 -------------' Send the following command string to the 4071: ' A F1 18.432Z F2 0.0Z F0 ' These characters have the following meaning: ' A - Reset the 4071 to Sinewave mode ' F1 - Move cursor to field 1 (the frequency field) ' 18.432Z - Enter a frequency of 18.432 MHz ' F2 - Move cursor to field 2 (the level field) ' 0.0Z - Enter a level of 0.0 dBm ' F0 - Move cursor to field 0 (turns cursor off) PRINT #1, "A F1 18.432Z F2 0.
'-----------------------------------------------------------------------------'-----------------------------------------------------------------------------' SUBROUTINES '-----------------------------------------------------------------------------'-----------------------------------------------------------------------------' These subroutines are also used by other example programs.
'-----------------------------------------------------------------------------' Flush all Rx chars from Port 1 buffer '-----------------------------------------------------------------------------FlushBuff1: IF LOC(1) = 0 THEN GOTO DoTimeout1 a$ = INPUT$(LOC(1), #1) ' Get all waiting chars in Rx buffer ' Now wait for a time-out time to make sure no new stuff is coming in. DoTimeout1: CALL Delay(.
Appendix B Television Remote Control Example This chapter contains an example program written in Microsoft QuickBasic for controlling the 4071 remotely. It is used here to drive an infrared LED to issue commands to a TV or a VCR. It uses the 4071 in Burst mode to emulate the same waveforms used in many infrared remote control transmitters. Background Many TV remote controls operate by flashing an infrared LED at a carrier frequency rate in the ultrasonic frequency band (usually 30-40 KHz).
'-----------------------------------------------------------------------------'-----------------------------------------------------------------------------' Program Start '-----------------------------------------------------------------------------'-----------------------------------------------------------------------------DECLARE SUB Delay (X%) DECLARE SUB Pause () DIM Array(5) ' Declare functions used below.
'----------- Make sure a 4071 is attached to the serial port -------------' If we send the 4071 a control E character, it will respond with a control C. We use ' this feature to see if a 4071 is attached. If a 4071 cannot be found, wait until ' one is attached. ' User can abort the program at this point by pressing any key. ' When power is applied to the 4071, it prints a menu to the serial port. ' We wish to disregard these characters, so flush them.
GetCommand: CLS PRINT : PRINT PRINT " 1. Power on/off" PRINT " 2. Channel Up" PRINT " 3. Channel Down" PRINT " 4. Volume Up" PRINT " 5. Volume Down" PRINT PRINT " ESC To exit program" PRINT PRINT " Please select a command >" CommandPoll: a$ = INKEY$ IF a$ = "" THEN GOTO CommandPoll IF a$ = CHR$(27) THEN SYSTEM ' Exit the program on ESC keypress IF a$ < "1" OR a$ > "5" THEN GOTO GetCommand PRINT : PRINT PRINT "Command sent.
Limited Two-Year Warranty B&K Precision Corp. warrants to the original purchaser that its product and the component parts thereof, will be free from defects in workmanship and materials for a period of two years from the data of purchase. B&K Precision Corp. will, without charge, repair or replace, at its’ option, defective product or component parts. Returned product must be accompanied by proof of the purchase date in the form a sales receipt. To obtain warranty coverage in the U.S.A.
Service Information Warranty Service: Please return the product in the original packaging with proof of purchase to the below address. Clearly state in writing the performance problem and return any leads, connectors and accessories that you are using with the device. Non-Warranty Service: Return the product in the original packaging to the below address. Clearly state in writing the performance problem and return any leads, connectors and accessories that you are using with the device.
PN: 481-419-9-001 Printed in the U.S.A. 2002 B&K Precision Corp. 22820 Savi Ranch Pkwy Yorba Linda, CA 92887 USA TEL: 714-921-9095 FAX: 714-921-6422 www.bkprecision.