Chapter 4
Programming
©
National Instruments Corporation
4-47
3.
Call Cont_Pulse_Train_Generation() to setup DAC-STC for
continuous pulse train generation.
Go_Mode_Register
G0_Load_Source=0;
G0_Load_A_Registers (24 bits)
G0_Load_A=0x0002; //delay from the trigger -1
G0_Command_Register
G0_Load=1;
G0_Load_A_Registers (24 bits)
G0_Load_A=0x0003; //pulse interval -1
G0_Load_B_Registers (24 bits)
G0_Load_B=0x0002; //pulse width -1
G0_Mode_Register
G0_Load_Source_Select=1;
G0_Input_Select_Register
G0_Source_Select=0; (G_In_TimeBase)
G0_Source_Polarity=0; (rising edges)
G0_Gate_Select=5; (PFI4)
G0_OR_Gate=0;
G0_Output_Polarity=0; (active high)
G0_Gate_Select_Load_Source=0;
G0_Mode_register
G0_Output_Mode=2; (toggle on TC)
G0_Gate_Polarity = 1; (enable inversion)
G0_Reload_source_switching=1;
G0_Loading_On_Gate = 0;
G0_Loading_On_TC = 1;
G0_Gating_Mode = 2;
G0_Gate_On_Both_Edges = 0;
G0_Trigger_Mode_For_Edge_Gate = 2;
G0_Stop_Mode = 0;
G0_Counting_Once = 0;
G0_Command_Register
G0_Up_Down = 0; (down counting)
G0_Bank_Switch_Enable = 0;
//
or G0_Bank_Switch_Enable = 1 if you want to change rate. And
need call G0_Seamless_Pulse_Train_Change()
G0_Bank_Switch_Mode = 0;
Interrupt_A_Enable_Register
G0_TC_Interrupt_Enable = 0;
G0_Gate_Interrupt_Enable = 0;
Содержание AT-AI-16XE-10
Страница 131: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 2 National Instruments Corporation...
Страница 132: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 3 AT MIO E Series RLPM...
Страница 133: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 4 National Instruments Corporation...
Страница 134: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 5 AT MIO E Series RLPM...
Страница 135: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 6 National Instruments Corporation...
Страница 136: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 7 AT MIO E Series RLPM...
Страница 137: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 8 National Instruments Corporation...
Страница 138: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 9 AT MIO E Series RLPM...
Страница 139: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 10 National Instruments Corporation...
Страница 140: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 11 AT MIO E Series RLPM...
Страница 141: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 12 National Instruments Corporation...
Страница 142: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 13 AT MIO E Series RLPM...
Страница 143: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 14 National Instruments Corporation...
Страница 144: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 15 AT MIO E Series RLPM...
Страница 145: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 16 National Instruments Corporation...
Страница 146: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 17 AT MIO E Series RLPM...