SRS Labs SR640 Series Manual Download Page 11

9

The SR640 dual channel low-pass filter is remote-
ly programmable via both RS-232 and GPIB inter-
faces. All front panel features (except offset adjust-
ment)  may  be  controlled  and  read  via  the
computer interfaces.

Communicating with the SR 640

Before using either the RS-232 or  GPIB  interface,
the  appropriate  configuration  switches  must  be
set.

The  configuration  switch  is  located  on  the

rear panel and label 'SW1'.

Bit 8 of the switch se-

lects  GPIB  or  RS-232  operation.  If  bit  8  is  'on',
GPIB operation is selected, if it is 'off', the RS-232
interface  is enabled.

The other  bits  of  the  switch

take  their  meaning  depending  upon  whether  RS-
232 or GPIB operation has been selected.

 When a bit is 'on', it is in the DOWN position.

GPIB:

Bit Explanation
8

Always on for GPIB

7

not used

6

not used

5

high order bit of GPIB address

4

GPIB address (on = 1    off = 0)

3

GPIB address

2

GPIB address

1

low order bit of GPIB address

R S-232:

Bit Explanation
8

Always off for RS-232

7

on = echo 

off = no echo (normally
off)

6

on = 8 bit word

off =7 bit word

5

on = even parity

off = odd parity

4

on = parity enabled

off = disabled

3

baud rate select

2

baud rate select

1

baud rate select

Bit 3

2

1

Baud Rate

on on on

19200

on on off

9600

on off on

7200

on off off

4800

off on on

3600

off on off

2400

off off on

2000

off off off

1800

Note  that  the  configuration  switch  is  only  read  on
power-up.  If  a  setting  needs  to  be  changed,  the
unit must be turned off and turned on again for the
change to be recognized.

G UIDE TO PROGR AMMING

Command Syntax

Communication  with  the  SR640  is  accomplished
by  sending and  receiving strings  of  ASCII  charac-
ters.

Characters  sent  to  the SR640  may  be sent

in either UPPER or lower case.

A  command  to  the  SR640  consists  of  4  ASCII
characters  followed  by  an  optional  question  mark
'?' character, followed by a list of arguments separ-
ated  by  commas,  followed  by  a  line-feed  (<lf>)
character.

If  spaces  are  included  in  the  com-

mand string, they are ignored by the SR640.

The

SR640 interprets the GPIB EOI message sent with
the last character of a string as equivalent to a <lf>
terminator.

Examples of commands are:

FREQ1,23600.<lf>

set  the  channel  1  filter

frequency to 23.6 kHz.

FREQ?2<lf>

read 

the 

channel 

filter

frequency

*CLS<lf>

clear the status byte

Multiple  commands  may  be  sent  on  a  single  line.
The  commands  must  be  separated  by  semicolon
characters.  An  example  of  a  multiple  command
would be:

FREQ1,23.6E3;FREQ2,100<lf>

The  presence  of  a  question  mark  character  in  a
command indicates that the command is a request
to  the  SR640  to  send  back  a  value.  Values  re-
turned  by  the  SR640  are  terminated  with  a  car-
riage return <cr> and a linefeed <lf>.

If the GPIB

interface  is  used,  the  <lf>  is  accompanied  by  the
EOI message.

R S-232 Echo and No Echo Operation

In order to allow the SR640 to be operated from a
terminal, an echo feature has been included which
causes  the  unit  to  echo  back  characters  received
over the RS-232 port.

This feature is enabled by

setting  bit  7  of  the  configuration  switch  on.  When
using the unit with a computer, this feature should
be  disabled  to  prevent  spurious  characters  from
being  sent  to  the  computer.

The  echo  feature  is

not  operational  when  the  unit  is  being  used  with
the GPIB interface.

TIps on Using National Instruments 
GPIB cards

To  successfully  interface  the  SR640  to  a  PC  via
the GPIB, the instrument, interface card, and inter-

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Summary of Contents for SR640 Series

Page 1: ...service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE IN...

Page 2: ...2 99 Notice The information described in this manual pertains to the SR640 dual channel low pass filter the SR645 dual channel high pass filter and the SR650 low pass high pass filter The manual refer...

Page 3: ...ith the SR640 9 Configuration Switches 9 Command Syntax 9 RS 232 Echo 9 COMMAND LIST Filter Commands 11 Status and Interface Commands 12 PROGRAMMING EXAMPLES Basic 13 FORTRAN 13 C 14 INSTRUMENT DESCRI...

Page 4: ...2 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 5: ...lever back into its normal position and insert the correct fuse into the fuse holder LINE FUSE Verify that the correct line fuse is installed before connecting the line cord For 100V 120V use a 1 Amp...

Page 6: ...4 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 7: ...0 FILTER SPECIFICATIONS Frequency Range 1Hz to 100 kHz with 3 digit resolution Type 8 pole 6 zero elliptic Rolloff 115 dB octave Passband Ripple 0 1 dB pk pk typical Stopband Attenuation 80 dB typical...

Page 8: ...6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 9: ...channel may be changed using the frequency increment and decrement buttons to the right of the dis play When one of these buttons is pressed the displayed frequency will begin scrolling up or down Not...

Page 10: ...L button resets the display to the actual filter frequency If the SR640 has been placed in the REMOTE mode by a command from the computer interface press ing the CLR LOCAL button will return the unit...

Page 11: ...nt to the SR640 may be sent in either UPPER or lower case A command to the SR640 consists of 4 ASCII characters followed by an optional question mark character followed by a list of arguments separ at...

Page 12: ...e refer to the National Instruments manuals for complete details Once all the hardware and software has been con figured properly try using the IBIC program sup plied with the National Instruments car...

Page 13: ...The INVT command inverts the output signal with respect to the input n 1 or leaves it uninverted n 0 LOCL n The LOCL command sets the local remote mode of the instrument Allowed values are n mode 0 l...

Page 14: ...the byte returned by the SR640 when it is serial polled via the GPIB interface It may also be queried using the STB command SRE n The SRE command sets the service request en able byte to the value spe...

Page 15: ...ver the COM2 port 20 30 Open the COM2 port for 9600 8 bits no parity ignore handshake 40 OPEN COM2 9600 N 8 2 CS DS CD AS 1 50 60 Clear COM2 port 70 PRINT 1 80 Set channel 1 pregain and postgain 90 PR...

Page 16: ...format bn f14 0 write answer stop end Pr ogr am Exampl e 3 I BM PC Mi cr osof t C Nati onal I nstr uments GPI B car d Program to test SR640 communication using National Instruments GPIB card and Micro...

Page 17: ...loat answer sr640 ibinit SR640 locate device if sr640 0 error ibwrt sr640 PREG1 1 PREG2 2 15 set gain ibwrt sr640 FREQ 1 6 query frequency ibrd sr640 string 30 and get answer sscanf string f answer pr...

Page 18: ...n of Stage paramaters for the low pass filter are 1 6347 5493 2 8060 9507 2 0793 3 9850 2 095 1 9653 4 1 076 7 375 2 6776 For the high pass filter the parameters are simply related by the lowpass to h...

Page 19: ...7 provides 2K of battery backed up RAM U1 is a 64K ROM which contains the calibration information for the filter channels The calibration ROM is mapped as I O requiring flip flop U5B to switch between...

Page 20: ...service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE IN...

Reviews: