I am writing a VISA based VI to control a pair of Cool Muscle CM1-C-23L20C servo motors. They are accessed via USB, and my codes are working at this point. However, when everything is finished, I need to make the operation as "bullet proof" as possible. At this point, if you abort the VI or stop it otherwise, the motors will continue to run as per the last serial command that was executed. My plan is to "hide" the abort button using the :File »VI Properties, select Window Appearance from the Category drop-down, and click on the Customize... . I would include a "STOP" button on the front panel that when activated, will triger an inner case statement that would send the proper commands to the motors to stop them and then exit the VI. Like wise, could I take the boolean output from my "Simple Error Handler VI", and "or" it with the output of the STOP button, to trigger the safe shutdown case statement in the event of an internal error?
Does this seem to be a reasonable solution to avoid leaving the motors in a running state?
Thanks.