LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequence structure

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.

 

0 Kudos
Message 1 of 2
(2,444 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 2
(2,424 Views)