Scope
scope::FPGAIO5751 Class Reference

#include <FPGAIO5751.h>

Inherited by scope::FPGAResonanceScanner.

Public Member Functions

 FPGAIO5751 (const uint32_t &_configured)
 
void SetClockSource (NiFpga_Session _session, const uint8_t &_clock_source=0)
 
bool CheckIOModule (NiFpga_Session _session)
 

Protected Attributes

const uint32_t configured_indicator
 
FPGAStatusSafe iostatus
 

Detailed Description

Handels the NI FlexRIO adapter module IO-5751.

Definition at line 11 of file FPGAIO5751.h.

Constructor & Destructor Documentation

scope::FPGAIO5751::FPGAIO5751 ( const uint32_t &  _configured)

Get the FPGA VI control/indicator ids.

Definition at line 6 of file FPGAIO5751.cpp.

Member Function Documentation

void scope::FPGAIO5751::SetClockSource ( NiFpga_Session  _session,
const uint8_t &  _clock_source = 0 
)

Possible clock sources (see adapter modules help and Configure Clock.vi from NI 5751 Clock Select example for code)

  • 0: Internal clock, PLL off
  • 1: Internal clock, PLL on (REF IN)
  • 2: External clock, CLK IN
  • 3: Internal clock, PLL on (IoModSyncClk) Times out after 2 seconds and throws. Note: Wait at least 500ms after WriteOnBoardClockFrequency before calling SetClockSource!!!!!!!
    Parameters
    [in]_sessioncurrent handle of the connection to the FPGA
    [in]_clock_sourcethe new clock source to use
    Warning
    Attention, this function takes at least 6 seconds if using PLL on (NI seems to recommend to wait that long for the PLL to settle)

Definition at line 11 of file FPGAIO5751.cpp.

bool scope::FPGAIO5751::CheckIOModule ( NiFpga_Session  _session)

Necessary calls at the moment not supported by NI FPGA API 12.0, see CheckIOModule.vi for what to do.

Definition at line 42 of file FPGAIO5751.cpp.

Member Data Documentation

const uint32_t scope::FPGAIO5751::configured_indicator
protected

the Configure? indicator on the FPGA

Definition at line 15 of file FPGAIO5751.h.

FPGAStatusSafe scope::FPGAIO5751::iostatus
protected

Current status of the module.

We need the Safe (non-throwing) version here, because exceptions can crash (total computer freeze) the NI FPGA library during debug runs (probably a problem with the stack unwinding?).

Definition at line 19 of file FPGAIO5751.h.


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