National Instruments GPIB-MAC User Manual page 126

Table of Contents

Advertisement

November 1985
Question
When I use LINE INPUT# my strings are usually preceded by a
contain both a carriage return and linefeed at the end?
Answer
LINE INPUT# stops reading when a carriage return is seen and
does not skip over the linefeed in the sequence. The linefeed is not
read until the following LINE INPUT#. In most cases you will be
using the VAL function to convert the string to a value and a leading
Question
I sent the prog ramming message "rsp lo" to the GPIB-MAC to
serial poll device 10. Then, I used LINE INPUT# to read the
response byte and got nothing but a carriage return and linefeed as a
response. Am I doing something wrong?
Answer
No. To conduct a serial poll, the GPIB-MAC must be Controller-
In-Charge or it must be able to become Controller-In-Charge. If the
GPIB-MAC cannot become Controller-In-Charge no serial poll is
conducted and, therefore, you will not get a response string. To see
if this is the problem, ask for status (see
ECIC error occurred. If it did, you have passed control or system
controller authority to some other GPIB device, and will not be able
to perform a serial poll until the GPIB-MAC gets controller authority
back.
116
APPENDIX E - COMMON QUESTIONS
stat)
and check to see if the

Advertisement

Table of Contents
loading

Table of Contents