Documentation for isadc (SPASS).

Test of the analog to digital converter structure


Description

The function isadc tests whether a variable is an analog to digital converter. Boolean output is 1 if it is indeed an analog to digital converter, and is 0 else.

Usage

b = isadc(adc)

Arguments

adc Variable. Hoped to be a Analog to Digital Converter.

Values

b Boolean.

See Also

Example

  nbit = 3;        % resolution
  vmin = 0;        % minimum voltage
  vmax = 1.8;      % maximum voltage

  adc = adcinit(nbit,vmin,vmax);

% Test

  b = isadc(adc)

% Making an error

  adc.timeprec = [0 1];

% New test

  b = isadc(adc)