08-21-2019 12:19 PM
I wrote this program to control a 3D DLP Printer. It flashes a lamp, lowers the build platform, moves the wiper blade back, raises the platform, brings the blade forward, waits for a while, then does it again. I welcome any comments or critiques.
A couple issues I have:
1. Can I clean this up at all, especially the initialization state? A coworker suggested I use a stacked sequence to initialize things, but I read those are not good practice. I wanted to make a subVI for the stepper motor since I use stepper motors in this way at work pretty often, but most the code is in the initialization state, which it seems like I can't put into the subVI anyway.
2. I used the LabView State Machine template to start off, and it only checks the stop button when its waiting on user. Should I make another event-checking-loop in parallel with the state machine to watch the stop button in case the user wants to stop during the print?
3. I welcome any advice on error handling. I think I should make an error state and deal with things there, correct?
Thanks for any time.
08-22-2019
04:10 PM
- last edited on
12-09-2024
02:58 PM
by
Content Cleaner
Hello HRL_Employee, I'll try my best to answer these concerns:
First of all, the community will not be able to fully review your code since there are some VIs missing. Thus, I base my comments solely in the Main VI you attached.
All the best,