I2773-4.
4
en
133
Somat eDAQ
lite
NOTE
The subsecond time functions return the fractional part of a second at a resolution
dependent on the sample rate of the Time Channel input. For example, a sample rate
of 100 Hz results in a resolution of 0.01 seconds and a sample rate of 1000 Hz results
in a resolution of 0.001 seconds.
Application Note: Piecewise Linear Relationships
In the following example, the desired output of the Desk Calculator channel (
y
) is defined as follows, based on the value of
the input channel (
x
).
The first step is to define the required set of logical Desk Calculator channels (s1, s2, s3, s4) as follows:
s1: x>10e0
s2: x>50 && x<=100
s3: x>0 && x<=50
s4: x<=0
The second step is to define the required set of arithmetic Desk Calculator channels (y1, y2, y3, y4) as follows:
y1: 2.1*x+100
y2: 2.2*x+90
y3: 2.3*x+80
y4: 2.4*x+70
The third step is to define the final Desk Calculator channel (y) as follows :
y: y1*float(s1)+ y2*float(s2)+ y3*float(s3)+ y4*float(s4)
Note that it is not necessary to define the intermediate variables and, in fact, it is less efficient from a processing point of view
to use intermediate variables when they are not used more than once in the set of computed channels. However, they have
been used above to clarify the general approach.
7.2.2
Engineering Scaler
The Engineering Scaler channel generates a 32-bit float output channel scaled to
engineering units from an integer data type input channel.
Input Channel
The input channel data type must be 8-bit integer, 8-bit unsigned, 16-bit integer, 16-bit
unsigned, 32-bit integer, or 32-bit unsigned.
Output Data Type
The output channel data type is 32-bit float.
7.2.3
Integer Scaler
The Integer Scaler channel generates an integer data type output channel from any
32-bit float input channel.
HBM: public
Summary of Contents for eDAQlite
Page 1: ...User Manual English Deutsch Espanol I2773 4 4 en HBM public Somat eDAQlite with TCE Software ...
Page 2: ...Somat eDAQlite 2 I2773 4 4 en HBM public ...
Page 16: ...Somat eDAQlite 16 I2773 4 4 en HBM public ...
Page 22: ...Somat eDAQlite 22 I2773 4 4 en HBM public ...
Page 88: ...Somat eDAQlite 88 I2773 4 4 en HBM public ...
Page 106: ...Somat eDAQlite 106 I2773 4 4 en HBM public ...
Page 128: ...Somat eDAQlite 128 I2773 4 4 en HBM public ...
Page 190: ...Somat eDAQlite 190 I2773 4 4 en HBM public ...
Page 202: ...Somat eDAQlite 202 I2773 4 4 en HBM public ...
Page 222: ...Somat eDAQlite 222 I2773 4 4 en HBM public ...
Page 224: ...Somat eDAQlite 224 I2773 4 4 en HBM public ...