Phonetics 5100, 5000 manual Setinput

Models: 5000 5100

1 143
Download 143 pages 60.32 Kb
Page 102
Image 102

Sensaphone® ISACC Instruction Manual

SET_INPUT

Summary:

int set_input(n1,n2);

int

n1;

Input number

 

int

n2;

New value of

input

Description:

The set_input function will allow you to manually set the input value for any of the 16 input channels. This is useful to get a average or some other calculated value to appear on an input channel. That value is then treated as any other analog input for alarm functionality and also appears in the data logger. To do this, you must first set the

input type for that input to USER DEFINED. See ITYPE command, Chapter 7.

Return value:

The set_input function returns n2.

Example:

This program will set the value of input number 3 equal to the average values of inputs 1 and 2.

int x; main()

{

x = (input(1) + input(2))/2; set_input(3,x);

}

102

Page 102
Image 102
Phonetics 5100, 5000 manual Setinput