0 comments
Published Friday, May 02, 2008 by Sahil Ahuja.
Here is the final project :


0 comments
Published Monday, June 26, 2006 by Sahil Ahuja.
Our work was over on 9th June but the professor made us stay..
So... At last I announce that OUR PROJECT IS COMPLETE!!!!!!
Here's the screenshot :
0 comments
Published Wednesday, June 07, 2006 by Nitin Isloorkar.
Today we combined the front end design of the oscilloscope with the plotting program. We also integrated the slider and the volt/div controls. We also took 10^6 readings of an input waveform with varying frequency and voltages.

Our report is expected to be only around 12 pages, so that made our job a lot easier.
0 comments
Published Tuesday, June 06, 2006 by Nitin Isloorkar.
Today we improved the design and almost finalized it. We replaced the checkboxes and radio buttons with
push-buttons.

Now all that remained was to bring all the code together!
Today we met the professor and decided to talk about the RAM and our leaving date. He was under the impression that we were final year students. That was why he had given us the RDS assignment. We corrected him immediately.
We discussed Op-amp networks and Schmitt triggers for almost an hour. He told us the pitiful state of education in engineering, the marks-oriented study condition, about how the teachers also were not so up-to-date.
We talked to him about the RAM on his unused PC and he consented. However, we found out that it was only 64MB and it would not help us in any way. We decided to run a part of our project on Nitin's laptop as the RAM was totally insufficient.
We improved the
slider in the panel.

Sahil and Nitin watched Desperate Housewives till very late in the night.
We woke up early today. We added
sliders for providing vertical and horizontal motion of the graph. We also added
radio buttons for the time/div and volt/div options. We also provided checkboxes for
Pause,
Trigger and
Vector Mode.

We took a half day today. Mr. Pandit also had to leave as he had to correct a mistake in the paper he had been setting. He had to set a paper on AIC (Analog Integrated Circuits) and had by mistake he set a paper on ADIC (Analog and Digital Integrated Circuits).
Today Saurabh and Nikhil came to visit us. We went to see
X-men 3 in the nearby multiplex. It was a good movie. Came back and watched The
Exorcism of Emily Rose and had a debate over the horror movie. Slept late as usual. We also met Sandeep Sahare in the night.
Today we started writing the project report. We started putting whatever we could find relevent in a document and planned to trim it off later. We planned the size of the report to about 35 pages.
We also discussed the front end of the applet.
Today Tushar came in the evening and Nitin spent the evening with him.
Today was a big day. We achieved direct plotting of data from the MySQL database to the applet at a rate of about 4000 samples/s.

We calculated the frequency of the wave. As there was a mismatch in the speeds of Java and C, the displayed frequency was not correct but the code was working.
We also started designing the front of the oscilloscope.
Hemant visited us today.
Today we went back to work. Mr. Pandit had told the professor that we had gone to Lamington Road to look for RAM in the torrential rain. We suggested a solution for solving the RDS network solver he had asked us.
We were facing problems in implementing the queues and they also were inefficient, so we decided to implement direct streaming of data from the database.
Today we did nothing. We were fed up, it was raining like hell and we were all aleepy. We got up in the evening. We watched
Being Cyrus and
Kung fu Hustle in the night. Both were too good.
Today we formed an idea about how to proceed in the project. We planned on using queues as internal buffers for plotting the data. We also decided on running two threads in Java. One thread would handle the queue and the other would take care of plotting the values.
We also used the drawLine() function in Java for joining the points to make the graph look continuous. We studied threads more.
We realised that the 256MB RAM wasn't sufficient for our projec. We watched
Fanaa in the night.
Now we had a major task in hand, to query MySQL from the applet through the servlet. This took us the whole day to work out. We also read about threads and how to manipulate them.
We had to give a presentation on our project to Prof. T. S. Rathore, about what we had achieved and what we planned to achieve further in our project. He saw everyone's presentations and didn't comment much on our presentation.
We also played with the C code introducing a sleep to reduce the processor load. The code took about
20s instead of the usual
10s. The reason for today's small blog is we spent yesterday night watching
Aladdin and
Swordfish.
We realised the transfer of data through php and JavaScript made the process of plotting too slow, giving a plotting rate of only
1 frame/s. We had to take a different path, so we decided to use a Java Servlet. The applet was allowed to interact with the servlet through the sandbox. The servlet interacted with the MySQL databse. The implication of this was that we could achieve frame rates of upto
20 frames/s as the Tomcat server was fast. We decided this today and made a Java applet accept a string variable parameter from the servlet.
1 comments
Published Thursday, May 25, 2006 by Sahil Ahuja.
These are just some of the initial images ;) ...


0 comments
Published Wednesday, May 24, 2006 by Sahil Ahuja.
Today...
For the first time we saw values change in the monitor with us changing a knob in our hands!!! (instantaneously)
We plotted the graph of the actual and observed readings.. IT WAS BEAUTIFUL!!!
Here is the attached pdf file for download.
We made a prog for querying C with MySQL and integrated it with PARAPIN.
Mr. Pandit told us to ponder more on the diode circuit problem he gave us.
Then..
I decided..
The following approaches are available for giving the data to the JAVA-APPLET:
- To digitally sign the java applet to allow it make connections to other hosts.
- To use the tomcat server to make the MySql queries for the applet and ask the applet to connect to tomcat server on port no 80. (The applet is allowed to make connection only to port it was called from.)
- The 3rd approach.. (My original approach :)
To use AJAX to update the data on the client!!
The APPLET tag on the webpage has a parameter named PARAM.
My theory is - - As the PARAM tag is on the html webpage.. JavaScript will have full access to it.
- JavaScript has full access to make network connections.
- The JavaScript can make AJAX requests to the web server and update the PARAM tag.
- I will make the JavaScript call for a PHP page which will in turn query the MySql Data.
Sahil
0 comments
Published Tuesday, May 23, 2006 by Sahil Ahuja.
Today we successfully interfaced parallel port buffer through C.
We started the day late as usual.Vidyadhar Kamble, who was to give us lab equipments had gone on leave and was supposed to return on the next Monday. Then the lab was in hands of Vinod who was quite (damn) unhelpful and refused(!!!) to give us equipments till Vidyadhar returned. So, we went back to our lab and asked Mr. Pandit for help. He pulled out a couple of boxes and arranged for resistors, capacitors, LED's and gave us a CRO, signal generator and power supply. The fat guy (IIT final year placed in INTEL doing his final year proj.) had taken all of our earlier equipment and wasn't even working on it.
We then went to Prof. M. B. Patil and got three ADC's from WEL. The WEL lab in charge was Mr. Joshi who was most helpful and gave us a book to photocopy about interfacing the ADC804's and the much needed single strand wires. We soldered PP connector to single strand wires and connected it to the buffer IC. We tested the ckt and it worked like magic. Our only point of concern was the 40mA current taken by the buffer which increased sometimes on connecting to the computer.
Moreover we also made a Tomcat 5 server servlet query a MySQL database.