B&K 4070A user manual Cls

Page 83

'------------------------------------------------------------------------------

 

'------------------------------------------------------------------------------

 

'

Program Start

 

'------------------------------------------------------------------------------

 

'------------------------------------------------------------------------------

 

DECLARE SUB Delay (X%)

' Declare functions used below.

 

 

' (The Delay function waits x mS then returns)

DECLARE SUB Pause ()

' (The Pause fctn waits for a keypress then returns)

DIM Array(5)

' General purpose array

' --------------------------

User Entered Values -----------------------------------------

'By observing the signal from a remote control with an oscilloscope, the following

'parameters were recorded. To adapt this program to another remote control model, change

'the values below:

CarrierFreq$ = "32768" ' Type in the infrared carrier freq here. ' this value is in Hz

OnTime$ = "30"' Type in the burst on time here.

' this value is in mS

OffTime$ = "10"' Type in the burst off time here.

'this value is in mS

'These variables hold the number of pulses that form each command:

PowerToggle = 20

' Turn the TV on and off (twenty pulses)

ChannelUp = 9

' Go to next channel

ChannelDown = 12

' Go to previous channel

VolumeUp = 3

' Increase volume one notch

VolumeDown = 5

' Decrease volume one notch

'--------------------------------------------------------------------------------

'--------------------------------------------------------------------------------

CLS

' Clear the screen

'This array is used as a data table which, given a command menu number as an index,

'returns the number of pulses in a given infrared pulse stream.

Array(1) = PowerToggle

Array(2) = ChannelUp

Array(3) = ChannelDown

Array(4) = VolumeUp

Array(5) = VolumeDown

'Open serial port 1 for communication with the 4070A with these parameters:

'Ignore the CD,CTS,DCD flow control lines

'Set a 5 sec maximum time-out for basic to open the port

'Set the receive buffer to 2K bytes

'Disable the RTS flow control line

'Set the transmit buffer to 1K bytes

'File access type is Random

'Set random access buffer size to 2K

OPEN "COM1:9600,n,8,1,CD0,CS0,DS0,OP5000,RB2048,RS,TB1024" FOR RANDOM AS #1 LEN = 2048

78

BK Precision 4070A User Manual Rev.2.2

Image 83
Contents User’s Manual Page +K Precision Corp Model 4070A User’s ManualTable of Contents DC Operation Option Warranty informationRemote operation Arbitrary waveform systemIntroduction Description Modes Feature summarySIG Out connector Installation and setupSync out connector External Modulation In connector External Trigger/Gating/FSK/BPSK input Line in connector External Reference Input / Ext Arb. Clock connectorExternal Arb Sync In / Out connector RS232 Interface connectorRecall / Store key Mode keyOperating controls and keys Field arrow keysÉ, ê, è, ç keys Trigger keyNumeric keys 0 to 9, MHz/dBm, KHz/Vp-p/Sec, Hz/mVp-p/mS keys One Touch Mode KeysClear key Changing level Operating mode selectionOperating guide Changing frequencyEntering a new value Changing valuesModifying an existing value Sinewave Mode 000,000.00 Hz 10.0 dBm Mode descriptionsBasic Sinewave CW Mode Internal AM Mode Input Gain External AM ModeExternal AM Mode Parameters External AM Input gain 000,000.00 Hz PEP level -10.0 dBmPeak Frequency Deviation Internal FM ModeInternal FM Mode Parameters Int FM 1,000 Hz Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBmExternal FM Pk dev 10,000 Hz 000,000.00 Hz 10.0 dBm External FM ModeExternal FM Mode Parameters Int PM 1,000 Hz Pk dev 180 deg 000,000.00 Hz 10.0 dBm Internal PM ModeInternal PM Mode Parameters Peak Phase DeviationExternal PM Pk dev 180 deg 000,000.00 Hz 10.0 dBm External PM ModeExternal PM Mode Parameters Sweep Mode Sweep time Up / Down sweepSpace Frequency Internal FSK ModeInternal FSK Mode Parameters Mark FrequencyExt FSK Input External FSK ModeExternal FSK Mode Parameters Ext FSK Mark 1,000,000.00 Hz Space 2,000,000.00 Hz 10.0 dBmBurst frequency Burst Mode IntroductionBurst Mode Trig Ton 10,000 mS 000,000.00 Hz Off 10.0 dBm Upper/Lower Sideband selections Internal SSB ModeInternal SSB Mode Parameters Int SSB 1,000 Hz Upper Sideband 000,000.00 Hz 10.0 dBmExternal SSB Upper Sideband 000,000.00 Hz +10.0 dBm External SSB ModeExternal SSB Mode Parameters Background Dtmf Generation ModeDtmf generation # Duration 200 mS Delay Level -10.0 dBm Dtmf Generation Mode ParametersDtmf Duration Dtmf DelayDtmf detected digits Dtmf Detection ModeDtmf Detection Mode Parameters Dtmf detection on Ext Mod input 3 # aVoltage Level Power & Voltage Measurement ModePower & Voltage Measurement Mode Parameters Power LevelOther mode Arbitrary ModeRemote Mode Int Bpsk 1,000 Hz 000,000.00 Hz 10.0 dBm Internal Bpsk ModeInternal Bpsk Mode Parameters External Bpsk 000,000.00 Hz 10.0 dBm External Bpsk ModeExternal Bpsk Mode Parameters 10,000 Hz F2 Ton 000 mS Toff 10.0 Dualtone Generation ModeDualtone Examples Baud Rate Data Modulation ModeUsing the Data Modulation Mode Data Modulation Mode ParametersExample Message Downloading Modulation Message DataSaving the Message Triggering the TransmissionEnd Frequency Voltage Controlled Oscillator VCO ModeVCO Mode Parameters Start End 1,000,000.00 Hz 10.0 dBmChecking your connection with Hyper Terminal ConnectingRemote Operation Remote Control Programming Rules Remote Control OperationReturns C Remote Control CommandsReset 4070A to Sine wave mode × ØReport hardware and software versions K1.0 Enable, Disable front panel keys and rotary knobE1,0 Enable, Disable LCD echo to terminal Return a C Linear Trig Up Time 10,000 mSF0-9 Move cursor to field 0 to ? or H Print help menuExample Remote Control ExamplesPin 9-pin cable Pin 25 pin cable adapter Arbitrary Waveform ModeQuick Start Guide Description of the Arbitrary Waveform Generator Introduction to the Arbitrary Waveform SystemPulse Generator Switching ModesFeature Summary Function GeneratorContinuous/Triggered mode Arbitrary Waveform ModeInt Clock / Ext Clock / Lock Master Lock slave mode PhaseRepetition Frequency Function Generator ModeFunction Gen Wave Pos Ramp Rep Freq 100,000 Hz 000 mV WaveformDuty Cycle Pulse Generator ModePositive Only Cwaveload /COMx /y /baudz filename.ext Using WAVELOAD.EXEDownloading arbitrary waveforms Saving Arbitrary WaveformsUsing your own program Rules for Floating Point format Data FormatsFloating Point Format Example #2 Time & Value Floating Point FormatDigital Format Integer Format Example The data value E468 is handled as follows Hexadecimal FormatRules for Hexadecimal format Example Binary FormatRules for Binary format Generator Multiple Units LockingArb Waveform Size Restrictions More on Phase OffsetsPhase Resolution Starting Address = Number of waveform points * Phase OffsetProgram Listing ARB.BAS Example Arb ProgramClose System Subroutines Return Print #1, a Send integer value to 4070A Return Return DC Operation Option Wiring DiagramOperating Modes 4070A SpecificationsRemote Software CDAppendix a Hardware SetupCLS CLS Print Print Subroutines END SUB Appendix B Television Remote Control ExampleCLS Make sure a 4070A is attached to the serial port Print Limited Two-Year Warranty Service Information Savi Ranch Pkwy Yorba Linda, CA 92887 USA TEL