Hi,
according to the doc "user-defined model",i modified the "SDFSin.pl" to "SDFMySin.pl".For debugging i have installed Visual Studio .NET 2003.
My question is,can i debug only this "SDFMySin.pl" with Visual Studio .NET 2003? And how?
===================================================
In chapter 7 : Building Signal Processing
In section : Debugging Your Model
***********************
Debugging Under Windows
1.From the File menu,choose Open Solution.
2.In the Open Solution dialog box,click th Files of type list box an choose Executable Files.
3....
4...
5..
**********************
The step above is the debugging of whole model but not the single star,right?
Please help me!
Thanks a lot!
according to the doc "user-defined model",i modified the "SDFSin.pl" to "SDFMySin.pl".For debugging i have installed Visual Studio .NET 2003.
My question is,can i debug only this "SDFMySin.pl" with Visual Studio .NET 2003? And how?
===================================================
In chapter 7 : Building Signal Processing
In section : Debugging Your Model
***********************
Debugging Under Windows
1.From the File menu,choose Open Solution.
2.In the Open Solution dialog box,click th Files of type list box an choose Executable Files.
3....
4...
5..
**********************
The step above is the debugging of whole model but not the single star,right?
Please help me!
Thanks a lot!
Hi,
in section "Debugging Your Model" it is said that "before you start debugging,you'll need to able to run simulations from the command line, outside of ADS."
I think,for exmaple,if i have written a star-SDFMySin.pl.Befor i can use it, i should debug it.However currently i have not simulate this star in ADS.So i have not this netlist.log.
My question is,i just only want to debug this SDFMySin.pl before i can use it?
Or could you please tell me how should i do,assuming that i just want to find the fault or error in this SDFMySin.pl.
Thank you very very much! Maybe i have not really good understand the User-defined Model.
1) Compile your model running hpeesofmake "debug=1".
2) Build ael, symbol, bitmap for your model by running hpeesofmake ael symbol bitmap.
3) Set ADSPTOLEMY_MODEL_PATH environemnt variable to your modelbuilder area, e.g. c:\users\iheuka\adsptolemy.
4) Start ADS
5) Create a simple design using your model, e.g. MySin connected to a NumericSink.
6) Run the simulation (this will create a netlist.log file under your ADS project).
7) Use this netlist.log file and follow the steps in debuggin your model.
Hi Kkladopo,
i just want to say,thank you very very much for your answering my foolish question.Right now i have another question.It seems that, if i type:
cd c:\users\default\adsptolemy\bin
mbsetvars
then i can set the environment variable.But nothing happend after i type "mbsetvars".Do you know why?Because at the section "Debugging Under Windows" the first sentence says:"After running the mbsetvars script to set the needed variables ....".Actuallly i have not seen script.
By the way,the step5 says ,"set breakpoint and debug the newly created model." That is to say,i should now debug for example SDFMySin.pl? Or something else?
Thanks a lot!
- open a new DOS shell
- cd c:\users\default\adsptolemy\bin
- echo %PATH%
- mbsetvars
- echo %PATH%
You should see a different PATH after running mbsetvars (some directories have been added to the beginning of your PATH).
When I did this on my computer I saw that one directory was actually missing from the PATH. It is %HPEESOF_DIR%\lib\win32. If you are not able to debug your model because the simulation gives an error that it could not load certain libraries, add this directory to your PATH and try again.
For step 5, open (inside the VS environment) your pl file (e.g. SDFMySin.pl) and place a breakpoint (e.g. in the go method). Then press F5 (or the Run button) and the simulation execution should break at the breakpoint you set.
thank you very much.i have succeeded in debugging my first model.
By the way,can i understand ADS Ptolemy like this,every component in the default library is a star/model.If that is ture,can i read the code of every component.For example in DesigenGuide-UWB,how can i find the code of "Gaussian_Monopulse",which is in "Puls Generator"?
I can find some stars at "%HPEESOF_DIR%\doc\sp_items\",but not all. Or the permission is denied.