RTXI 1.3
plugins/ni_device/common.cpp
Go to the documentation of this file.
00001 //
00002 //  common.cpp
00003 //
00004 //  $DateTime: 2006/07/27 23:51:45 $
00005 //
00006 #include "common.h"
00007 
00008 void configureTimebase (tMSeries* board)
00009 {
00010     board->Clock_and_FOUT.setSlow_Internal_Timebase(1);
00011     board->Clock_and_FOUT.flush();
00012     
00013     return;
00014 }
00015 
00016 void pllReset (tMSeries* board)
00017 {
00018     board->Clock_And_Fout2.setTB1_Select(tMSeries::tClock_And_Fout2::kTB1_SelectSelect_OSC);
00019     board->Clock_And_Fout2.setTB3_Select(tMSeries::tClock_And_Fout2::kTB3_SelectSelect_OSC);
00020     board->Clock_And_Fout2.flush();
00021     
00022     board->PLL_Control.setPLL_Enable (kFalse);
00023     board->PLL_Control.flush ();
00024     
00025     return;
00026 }
00027 
00028 void analogTriggerReset (tMSeries* board)
00029 {
00030     board->Analog_Trigger_Etc.setAnalog_Trigger_Reset(1);
00031     board->Analog_Trigger_Etc.setAnalog_Trigger_Mode(tMSeries::tAnalog_Trigger_Etc::kAnalog_Trigger_ModeLow_Window);
00032     board->Analog_Trigger_Etc.flush();
00033     
00034     board->Analog_Trigger_Control.setAnalog_Trigger_Select(tMSeries::tAnalog_Trigger_Control::kAnalog_Trigger_SelectGround);
00035     board->Analog_Trigger_Control.flush();
00036     
00037     board->Gen_PWM[0].writeRegister(0);
00038     board->Gen_PWM[1].writeRegister(0);
00039     
00040     board->Analog_Trigger_Etc.setAnalog_Trigger_Enable(tMSeries::tAnalog_Trigger_Etc::kAnalog_Trigger_EnableDisabled);
00041     board->Analog_Trigger_Etc.flush();
00042     
00043     return; 
00044 }
00045 
00046 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines