Going Ahead

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.

Read more

Plan B

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.

Relaxing

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.

Planning Ahead

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.

Stuck

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.

Report Presentation

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.

Playing Around

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.

Project at IIT Bombay

Guess what…
I am currently doing a project in IIT Bomabay. Can’t believe it myself.

(And I googled out the topic PC Based Oscilloscope to select it. !!!!!!!!)

And we are even maintaining a blog on the project. Well…. what can you say?

Project going fast ahead!!

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!!!

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:

  1. To digitally sign the java applet to allow it make connections to other hosts.
  2. 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.)
  3. 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 -Sahil