For the programming parts of the homework assignments, please e-mail the source code and a makefile (if there are multiple source code files) to the grader.
pxgraph
program to plot the data.
The pxgraph
program in Ptolemy 0.7.1 is a shell
script that by default calls a Java program written in version
1.0 of the Java Developer's Kit (JDK).
To use JDK 1.0, please set the following in your login scripts:
# C shell setenv JAVA /usr/local/packages/java1.1 setenv JAVA_LIB $JAVA/lib/sparc setenv JAVAHOME $JAVAor
# Korn shell JAVA=/usr/local/packages/java1.1 JAVA_LIB=$JAVA/lib/sparc JAVAHOME=$JAVA export JAVA JAVA_LIB JAVAHOMEIf the Xgraph block still gives an error, then revert back to the binary program for
pxgraph
in
Ptolemy Classic 0.7:
mkdir -p ~/bin/sol2.5 cp /usr/local/packages/ptolemy0.7/bin.sol2.5/pxgraph ~/bin/sol2.5 rehash which pxgraphThe last line should return a path equal to
$HOME/bin/sol2.5
.
Otherwise, you will need to add $HOME/bin/sol2.5 to your
path before the Ptolemy directories.
set path=(/home/ecelrc/faculty/bevans/Motorola/clas56/bin $path)The demonstration to run is under CG56 ... Simulator ... DTMFCodec. You can enlarge the icons by resizing the window and hitting the keyboard shortcut 'f' for full size.
sunfire2.ece 28# g++ --version 2.95.2 sunfire2.ece 29# which g++ /usr/local/bin/g++The GNU C++ 2.95.2 compiler is not allowing an implicit data type on method declarations to default to int. Since I could not find the right option for the GNU C++ 2.95.2 compiler to allow this default, I've modified three of the core Ptolemy include files to explicitly declare the return type to be an int. Here's the modified command to compile SDFMyFIR.cc:
g++ -shared -fPIC -c -I/home/ecelrc/faculty/bevans/Ptolemy/src/kernel -I$PTOLEMY/src/domains/sdf/kernel SDFMyFIR.cc