multitonegentest_sim.cpp
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:1k
源码类别:
3G开发
开发平台:
Visual C++
- //
- // File = multitonegentest_sim.cpp
- //
- #define SIM_NAME "MultiToneGenTest "
- #define SIM_TITLE "Multiple Tone Generator Test "
- #include "global_stuff.h"
- #include "multi_tone_gen.h"
- #include "siganchr.h"
- #include "spec_analyzer.h"
- //=========================================================
- main()
- {
- #include "sim_preamble.cpp"
- //=========================================================================
- // Misc special processing
- //=========================================================================
- // Allocate signals
- FLOAT_SIGNAL(test_sig);
- //============================================================
- // Construct, initialize and connect models
- MultipleToneGener* multi_tone_gen = new MultipleToneGener( "multi_tone_gen ",
- CommSystem,
- test_sig );
- SpectrumAnalyzer<float>* spec_analyzer_1 =
- new SpectrumAnalyzer<float>( "spec_analyzer_1 ",
- CommSystem,
- test_sig );
- SignalAnchor* temp_anchor = new SignalAnchor( "temp_anchor ",
- CommSystem,
- test_sig);
- //=============================================================
- #include "sim_postamble.cpp"
- return 0;
- }