File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Need some direction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need some direction" Watch "Need some direction" New topic

Need some direction

John Abong
Ranch Hand

Joined: May 14, 2007
Posts: 79
I have to write a Java program that operates a stepper-motor controller to position a substrate so I can read resistance values through a meter and put an ink droplet on "good" parts.

I've done it in VB3.0, but now must redo it with Java. I'm into the Servlets section in the JavaRanch CattleDrive and doing fine with that. I would like to start working on this project, but I don't know whether to do it as an application or with Swing (I have no experience with Swing).

I also really need direction on how to begin to create either of these two formats. Can anyone suggest a book or website that will walk me through the fundamentals of the building process?

Thank you for your help.
Sravan Kumar
Ranch Hand

Joined: Sep 11, 2005
Posts: 121
I am not sure if you would need servlets to do this, assuming that your stepper motor or its controller would be directly connected to the machine that runs this program. If the controller hardware is going to be connected to some port, socket connections might be helpful for data/control transfer.

You might need swing if you want to show some reports or the progress of work on the system. If multiple systems are involved and you need to interact, then a webservice or a distributed service like RMI might do the job.

Essentially, there does not seem to be a lot of user interactions happening on the java portion of the system directly and hence you might not need servlets or swing.

keep smilin :: sravan<br /><a href="" target="_blank" rel="nofollow">I scribble here</a>
John Abong
Ranch Hand

Joined: May 14, 2007
Posts: 79
Thank you Sravan,

The motor controller and meter will be connected to serial ports on the same machine that the Java program will run on. The user will interact with the program during substrate alignment and when reviewing stored meter readings.

Is this doable with Swing alone or will JDBC be required as well?
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 692
Swing is GUI. Simple GUI can be done with AWT.
JDBC is database.
For the serial port, years ago I downloaded a package from Sun to do that. It was in the package SerialComm; Don't know what's available now.
I agree. Here's the link:
subject: Need some direction
It's not a secret anymore!