adcBoard Class Reference

Implements all adcBoard common features. More...

Inheritance diagram for adcBoard:

board

List of all members.

Public Member Functions

bool ChannelConf (int ChannelMask, unsigned int SamplesPerChannel)
 Configures ADC channels.
bool FPGAConf (System::String^ FileName)
 Configures FPGA (ADC board).
float SamplingFreq (float SamplingFreq)
 Sets ADC sampling frequency.
array< System::Int16 >^ Acquire_SDRAMRead (unsigned int SamplesPerChannel)
 Starts data acquisition and reads data from SDRAM.
bool Acquire ()
 Starts data acquisition.
array< System::Int16 >^ SDRAMRead (unsigned int SamplesPerChannel)
 Reads data from SDRAM.
bool ChannelDeconf ()
 Deconfigures ADC channels.


Detailed Description

Implements all adcBoard common features.


Member Function Documentation

bool ChannelConf ( int  ChannelMask,
unsigned int  SamplesPerChannel 
)

Configures ADC channels.

Parameters:
ChannelMask Binary mask to indicate enabled channels (eg. Binary 1 on LSB enables channel 1).
SamplesPerChannel Number of samples that each enabled channel must acquire.
Returns:
True if successful.

bool FPGAConf ( System::String^   FileName  ) 

Configures FPGA (ADC board).

Parameters:
FileName .bit FPGA programming file.
Returns:
True if successful.

float SamplingFreq ( float  SamplingFreq  ) 

Sets ADC sampling frequency.

Parameters:
SamplingFreq 
ValueMeaning
<=0External clock
xxxx MHz
Returns:
ValueMeaning
-1Error
0DCMs locked at external clock
xxDCMs locked at xx MHz

array< System::Int16 > Acquire_SDRAMRead ( unsigned int  SamplesPerChannel  ) 

Starts data acquisition and reads data from SDRAM.

This function also clears the list of channels

Parameters:
SamplesPerChannel Number of samples per channel to be acquired.
Returns:
An array containing acquired samples.
The data is organized as shown: samples #1 of all channels, samples #2 of all channels, etc. Acquire_SDRAMRead(SamplesPerChannel) is equivalent to Acquire() + SDRAMRead(SamplesPerChannel)

bool Acquire (  ) 

Starts data acquisition.

Returns:
True if successful.

array< System::Int16 > SDRAMRead ( unsigned int  SamplesPerChannel  ) 

Reads data from SDRAM.

Parameters:
SamplesPerChannel Number of samples per channel to be acquired.
Returns:
An array containing acquired samples.
The data is organized as shown: samples #1 of all channels, samples #2 of all channels, etc.

bool ChannelDeconf (  ) 

Deconfigures ADC channels.

This function also clears the list of channels.

Returns:
True if successful.


The documentation for this class was generated from the following files:

© 2009 - Grupo de Tratamiento Avanzado de Señal logo_gtas