Hello,
I am working on a program on a RT platform (CRIO-9045) to control two of the motors stated in the title. These motors will operate perpendicular to one another to raster over an area of a specific size once and then repeat that same raster in reverse. The motors communicate over RS485 and follow the set of commands Automation Direct uses in their SCL Language. I have a program written to control this motion, however, I am having trouble figuring out how to program a hard stop. The command to be sent to the motors is "ST" to hard stop.
I realize that I may have written a spaghetti code program, and I am very open to suggestions as to how I can optimize this (I have 0 prior LabView experience, so please go easy). If someone could please be so kind as to point me in the right direction to setting up a hard stop button on the front panel, I would be much obliged.
Also, please let me know what I can do to improve the flow of my program and the amount of hardware resources that it uses. I will be glad to provide more details if needed. Attached you will find the Real Time code and the Motion Control VI I am working with.