• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Need some direction

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 4764
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic