EasyManuals Logo

Labsphere SC-5500 User Manual

Labsphere SC-5500
44 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #39 background imageLoading...
Page #39 background image
SX-01635-000, Rev. 5 36
‘To get one display value back from the SC-5500, issue the following commands
r$ = SPACE$(12) ‘Set up display readback string for 12
‘characters in 4 1/2 digit mode.Data format returned is
‘terminated by <CR><LF>
Receive (0, 10, r$, NullEND) 'Format is:0 = IEEE Interface board number
‘10 = Default address of the SC-5500, r$ = String variable
‘NullEND = Terminator
‘The SC-5500 will execute the Receive command by placing one display value into its buffer. The buffer is then swept and
‘the data sitting there is placed into the string variable. This one command will perform both tasks. The O0X command is
‘only an RS-232 command. It should never be used for the IEEE interface.
CLS
‘Now set up AutoRange:
CALL IBCMD(0, scwrite$) ‘Send MTA/MLA
CALL IBWRT(0, "A0X") ‘Turn on Autorange
SLEEP 5
CALL IBCMD(0, scwrite$) ‘Send MTA/MLA
CALL IBWRT(0, "A1X") ‘Turn off Autorange
‘Set up ReadBack:
CALL IBCMD(0, scread$) ‘Send MTA/MLA
CALL IBRD(0, r$) ‘Receive into program the display value
RS-232C Programming in C++
int sc_idComDev;
int create_IdComDev(int comport)
// This routine checks creates the comport and
// sets it up for serial communications.
{
int err;
DCB dcb; //Governing Data Control Block
int idComDev;
// initialize the serial communications parameters
dcb.Id = 0; //identify the Id number this is with
dcb.BaudRate = CBR_9600; //set baud 9600
dcb.Parity = NOPARITY; //set communications to no parity
dcb.ByteSize = 8; //set to 8 data bits
dcb.StopBits = ONESTOPBIT; //set to 1 stop bit
dcb.fBinary = 0; //dont read in Binary!
dcb.fParity = 0; //No parity checking
dcb.fOutxCtsFlow = 0; //disable hardware handshaking
dcb.fOutxDsrFlow = 0; //disable hardware handshaking
dcb.fDtrDisable = 1; //disable hardware handshaking
dcb.fOutX = 0; //disable Xon/Xoff outgoing // DSS 5/31/96 v1.1p
dcb.fInX = 0; //disable Xon/Xoff incoming // DSS 5/31/96 v1.1p
dcb.fDtrflow = 0; //disable hardware handshaking
dcb.fRtsflow = 0; //disable hardware handshaking
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Labsphere SC-5500 and is the answer not in the manual?

Labsphere SC-5500 Specifications

General IconGeneral
BrandLabsphere
ModelSC-5500
CategoryMeasuring Instruments
LanguageEnglish