Manual Number: 00650-014-4
Page 6-4
AD12-8 Manual
range:
If
range = 0
, the voltage range is bipolar 5 volts, if
range = 1
, bipolar 10
volts or if
range = 2
, unipolar 5 volt.
Notes:
This function needs to be called once.
Error Codes:
INVALID_PTR:
The card_number pointer was not valid.
CONFIG_CODE:
The auto-config parameter was not 0 or 1.
BASE_ADDRESS:
The base address is not >= 200 and <= 3f8.
VOLTAGE_RANGE: The voltage range was not 1,2 or 3.
WINDOWSERROR: Problem allocating Windows memory.
CARD_INACTIVE
The card did not respond to a test.
AD128_SUCCESS:
Operation was performed without error.
AD128_Shutdown
Function:
Releases all data structures used by the driver.
Syntax:
Visual BASIC:
AD128_Shutdown() as Integer
C:
int PASCAL AD128_Shutdown();
Notes:
This function needs only to be called once, immediately before your
programs exists.
Error Codes:
AD128_SUCCESS:
Operation was performed without error.
AD128_SetPointConfig
Function:
Initializes a range of points for curve, scaling, gain and units.
Syntax:
Visual BASIC:
AD128_SetPointConfig(Byval start as Integer,Byval stop as Integer,
Byval curve as Integer, Byval low as Single,Byval hi as Single,
Byval units as Integer, Byval gain as Integer,
Byval ref_channel as Integer) as integer
C:
int PASCAL AD128_SetPointConfig(int start,int stop,int curve float low,
float hi,int units,int gain,int ref_channel);
start:
Starting point address in the range of points.
stop:
Ending point address in the range of points.
curve:
An ASCII b,e,j,k,r,s,t indicates that the respective points
are to be installed for that particular thermocouple type. A T indicates
that the point (s) are for reference junction compensation. A a or u
represents 392 and 385 alpha type RTDs respectively. If no curve is
desired, the
curve
variable should be zero.
low:
Lower value in the scaling range.
hi:
Upper value in the scaling range.
units:
A zero indicates
o
C and a one indicates
o
F.
gain:
Gain code for the point range. The chart below lists the possible gain codes
and their respective gains.