dacBoard Class Reference

Implements all dacBoard common features. More...

Inheritance diagram for dacBoard:

board dacBoardVirtex4 dacBoardVirtexII

List of all members.

Public Member Functions

virtual bool FPGAConf (System::String^ FileName)
 Configures FPGA (DAC board).
virtual float SamplingFreq (float SamplingFreq)
 Sets DAC sampling frequency.
int SDRAMWrite (array< System::Int16 >^Data)
 Writes data to SDRAM.
array< System::Int16 >^ SDRAMRead (unsigned int SamplesPerChannel)
 Reads data from SDRAM.
bool ChannelConf (int ChannelMask, unsigned int SamplesPerChannel)
 Configures DAC channels.
bool Play ()
 Starts data playback.
bool ChannelDeconf ()
 Deconfigures DAC channels.


Detailed Description

Implements all dacBoard common features.


Member Function Documentation

bool FPGAConf ( System::String^   FileName  )  [virtual]

Configures FPGA (DAC board).

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

Reimplemented in dacBoardVirtexII, and dacBoardVirtex4.

float SamplingFreq ( float  SamplingFreq  )  [virtual]

Sets DAC sampling frequency.

Parameters:
SamplingFreq 
ValueMeaning
<=0External clock
xxxx MHz
VirtexII boards have a programmable clock which can operate on a large set of frequencies from 20 to 125 MHz. However Virtex4 clock is limited to 104 or 52 MHz.

Returns:
ValueMeaning
-1Error
0DCMs locked at external clock
xxDCMs locked at xx MHz

Reimplemented in dacBoardVirtexII, and dacBoardVirtex4.

int SDRAMWrite ( array< System::Int16 >^  Data  ) 

Writes data to SDRAM.

Parameters:
Data Array containing data to be written.
The data must be organized as shown: samples #1 of all channels, samples #2 of all channels, etc.
Returns:
Number of samples succesfully written.

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 ChannelConf ( int  ChannelMask,
unsigned int  SamplesPerChannel 
)

Configures DAC 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 play back.
Returns:
True if successful.

bool Play (  ) 

Starts data playback.

Returns:
True if successful.

bool ChannelDeconf (  ) 

Deconfigures DAC channels.

Stops playback and clears 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