Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need some direction

 
John Abong
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
John Abong
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 732
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic