06-02-2008 06:29 PM
06-03-2008 02:48 PM
Hi Jon,
1- In response to your first question related to monitoring the position of your stepper motor, I would recommend using a seperate while loop to monitor the position of your motor. This would allow it to be updated on the front panel at all times throughout your process. See the attached screen shot for a visual representation of what I'm proposing.
2- Although the way you have implemented your delay will work correctly, there is a more efficient way to create the delay, through the use of a sequence structure. This requires that everything inside of the current sequence frame is finished executing before it continues. Therefore if you wire your Motor reference and error line through a sequence structure containing the delay it will halt execution until the delay is finished (see the attached screenshot). Note however that the lower while loop monitoring the position will not be halted.
Hopefully this helps to get you pointed in the right direction. Let me know if you have any further questions or clarifications.
Cheers,
Jonah
Applications Engineer
National Instruments
06-04-2008 11:27 AM
06-05-2008 10:45 AM
06-16-2008 06:58 PM