Set_input – Phonetics Sensaphone ISACC 5000 User Manual

Page 102

Advertising
background 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);

}

Advertising
This manual is related to the following products: