
RPBASIC-52 PROGRAMMING GUIDE
2-120
CONFIG COMMANDS
CONFIG comman ds configure various I/O to u ser defined p aram eters.
All CONFIG com mands are unique to RPBASIC-52. There is no equivalent in the original version. Some
commands are not available for all cards.
CON FIG AIN
Syntax: CONFIG AIN channel, mode, range
Where: channel = 0 to 7, analog input channel
mode = 0 or 1, differential or single - ended
range = 0 or 1, ±2.5 or 0 to 5 volt input
Function: Determines type of analog input for measurement
Mode: Command, Run
Use: CONFIG AIN 3,1,0
Cards: RPC-320, RPC-330 Refer to your hardware manual for applicability if your card is not listed here.
DESCRIPTION
All inputs are configured for single - ended, 0 to +5V inputs on power up. Inputs, or pairs of inputs, may be
changed to differential and/or ±2.5 volt input.
Differential inputs use adjacent channels, as described in Chapter 10, Analog Input, Initialization. Inputs are
pseudo-differential, meaning the input signal is measured with respect to ground. See Chapter 10 for more
information.
mode of 1 specifies single e nded w hile 0 m eans differen tial.
range = 0, a ±2.5V input is chosen w hile a 1 sets 0 to +5 volt input.
Refer to Chapter 10, ANALOG INPUTS in your hardware manual for examples and configuration information.
ERROR
BAD ARGUMEN T When any parameter is out of range.
Komentáře k této Příručce