Frac (source), Getrecord (dest, tablename, recsback) – Campbell Scientific CR5000 Measurement and Control Module User Manual

Page 183

Advertising
background image

Section 8. Processing and Math Instructions

8-11

Notes:

Power is independent of the sampling rate (1/tau) and of the number of
samples (N).

The PSD is proportional to the length of the sampling period (T=N*tau),
since the “ width” of each bin is 1/T.

The sum of the AC bins (excluding DC) of the Power Spectrum is the
Variance (AC Power) of the time series.

The factor of 2 in the Power(i) calculation is due to the power series being
mirrored about the Niquist frequency N/(2*T); only half the power is
represented in the FFT bins below N/2, with the exception of DC. Hence,
DC does not have the factor of 2.

The Inverse FFT option assumes that the data array input is the transform
of a real time series. Filtering is performed by taking an FFT on a data set,
zeroing certain frequency bins, and then taking the Inverse FFT.
Interpolation is performed by taking an FFT, zero padding the result, and
then taking the Inverse FFT of the larger array. The resolution in the time
domain is increased by the ratio of the size of the padded FFT to the size
of the unpadded FFT. This can be used to increase the resolution of a
maximum or minimum, as long as aliasing is avoided.

Frac (Source)

Returns the fractional part of a number.

Syntax
x = Frac (
source)

Remarks
Returns the fractional portion of the number within the parentheses.

Frac FunctionExample
The example uses Frac function.

GetRecord (Dest, TableName, RecsBack)

Retrieves one record from a data table.

Syntax
GetRecord
(Dest, TableName, RecsBack)

Remarks
The GetRecord instruction retrieves one entire record from a data table. The
destination array must be dimensioned large enough to hold all the fields in the
record.

Advertising