02-27-2009 05:48 PM
Hi all,
I made a code that moves a stepper motor and i didn't use a squence strcture or event structure in the code. The reason why is i don't have the knowledge of these structure. So i was wondering if anyone can help me.
02-27-2009 08:01 PM
For the most part your code looks very good. In terms of sequence structures you already know everything that you need to know about them - nothing. Now events are another matter. They can be very helpful and in the case of your code would clean up the diagram considerably. Rather than having all the logic to prevent operations unless an input value had changed, a Value Change event on each control would only execute that code if the input changes.
To get started with events, check out the event-driven examples that ship with LV. Also look at the User Interface Event Handler template that comes with LV. To see how they work, turn on execution highlighting and run them. Then watch how they respond when you press buttons.
Mike...