I am working with the MOD5282 on a project that uses the serial ports, web support, and the eight channels of the ADC (actually 16, but we switch in banks of eight). The MOD5282 development kit ships with a very nice demonstration titled "Mod5282FactoryDemo". This demo has a neat little JAVA applet that plots one channel of the ADC readings to a web based graph window.
I am looking to grow this demo into plotting all eight channels of the ADC readings. I am alos looking to making the y-axis scalable from the calling function(s), and making the x-axis labels display in time increments as opposed to counts.
I have already installed on my machine the full version of Eclipse and the JAVA SE/EE SDK. I did create a new project, then imported the "nbplot.java" source. Can anyone point me in the right direction on how to take the existing "nbplot.java" souce and recompile into the required "nbplot.class" file required for the web page(s)? Anyone out there who is an expert in JAVA care to take a stab at this?
Mark
Modifying JAVA code using NB Eclipse ...
Re: Modifying JAVA code using NB Eclipse ...
Hello,
First, make sure you have the Java SDK installed. Sun releases about 100000 different types of java. You just need the one that lets you call javac from the command line.
Once verified, open up a cmd prompt and navigate to the file, then, to make the class file, type:
javac NBPlot.java -d html
First, make sure you have the Java SDK installed. Sun releases about 100000 different types of java. You just need the one that lets you call javac from the command line.
Once verified, open up a cmd prompt and navigate to the file, then, to make the class file, type:
javac NBPlot.java -d html
Forrest Stanley
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn
Re: Modifying JAVA code using NB Eclipse ...
Thanks for the reply, and boy do I hear you on the 100000 releases of JAVA. I am sure that a class can indeed be compiled directly from the Eclipse application, but I quit and found the javac command like you said so that I could manually compile.
Now to modify to plotting routines! Not being a JAVA expert I am finding these routines a little confusing, even with my expertise in C#. Once I get this accomplished I will repost up to this forum for consumption.
Now to modify to plotting routines! Not being a JAVA expert I am finding these routines a little confusing, even with my expertise in C#. Once I get this accomplished I will repost up to this forum for consumption.
Re: Modifying JAVA code using NB Eclipse ...
Mark -- did you ever get those other plots working? Thanks! Pat