Sensoray Smart A/D User Manual

Page 14

Advertising
background image

S

ENSORAY

I

NSTRUCTION

M

ANUAL

S

MART

A/D D

RIVER

FOR

W

INDOWS

Page 12

3.7.3 SetSensorType()

Function:

Declares the sensor type to be interfaced to the specified channel.

The sensor type is specified by means of a Logical Sensor Definition Code (LSDC). Not all LSDC values are
supported by all Smart A/D™ products; refer to your hardware documentation for a complete list of supported
sensor types and input rangesUse of illegal or unsupported LSDC values may cause unpredictable results.

Do not confuse the LSDC with the native SDC that may be discussed in your hardware documentation. The LSDC
values are valid for all Smart A/D™ models, while the native SDC values, which are described in your hardware
documentation, are specific to each product model and may deviate from one model to another.

Prototype:

void SetSensorType( long hBD, long channel, long LSDC );

Parameter

Type

Description

hBD

long

Board handle.

channel

long

Sensor channel number to be affected.

LSDC

long

Logical Sensor Definition code from the following table:

Input Class

LSDC

Input Range / Sensor Type

Voltage Input

1

±10V

3

±5V

5

±500mV

6

±100mV

Thermocouple

34

B

33

C

8

E

10

J

12

K

32

N

18

R

16

S

14

T

RTD

41

Copper 10 Ohm

35

Nickel 120 Ohm

36

Nickel 200 Ohm

37

Nickel 1K Ohm (1353 Ohms @ 60 DegC)

42

Nickel 1K Ohm (1285 Ohms @ 60 DegC)

20

Platinum 100 Ohm 385 (0.1C res, full sensor range)

38

Platinum 100 Ohm 385 (0.0125C res, range -200:+400C)

22

Platinum 100 Ohm 392 (0.1C res, full sensor range)

39

Platinum 100 Ohm 392 (0.0125C res, range -200:+400C)

43

Platinum 1K Ohm (1422.9 Ohms @ 110 DegC)

Thermistor

24

10K with autorange

40

10K on fixed 600K ohm range

Current Loop

25

4-20 mA

Gage

26

Strain/pressure gage

Advertising