|
Plot 2D graph in Java from RS-232 data
I need to plot ECG graph, real-time from tx-port of RS-232 hardware, so it is only receiving the data.
So I need :
1) Serial com part for Java
2) I need 2D plotting algorithm, esp. the x- and y- axis ratio and scale, and x-axis need to be time dependent.
Can anyone help me solve this problem?
I found something for the use of rxtx.dll and RXTXcomm.jar
The said this 2 files could be included in ..jre/bin and ..jre/lib/ext respectively, but I d/l the complete program that is already compiled not a source file. So I think there should be some original code or structure for this which I am not sure where I could get start with all this combination of code for Java Comm.
Please help cos I need to plot this graph via TCP/IP on web, so I need the graph to be set of applet i could include in the website-based and plotting almost real-time with some certain delay or reading from RS-232 and write to file and read back and plot afterwards.
|