05-29-2018 10:14 AM
Hello everybody,
I am new in Labview and I have a problem in my program.
I explain, in my state named "acquiring data": my first function "stepper write" works but the second "stepper write" does not work. I do not know why?
Can someone help me please .
Thank you in advance for your answers
Ngoc-Vinh Truong
05-29-2018 01:46 PM
From your code it is impossible to know which call to the stepper motor is the first and which is the second.
LaVIEW runs in parallel where allowed and because your boolean leaves the sequence frame on top before the frame that controls what you suppose is the first stepper control it even is possible that bot vi's are called in reverse order. The only thing you can be sure of is that they are not called at the same time.
Please make more use of the error in/ error out lines to define the sequence instead of using sequence frames. So wire the error out of the first call to the error in of the second call.
The LabVIEW compiler that shows you broken lines and broken arrows makes sure that blocks that are connected by wires are executed in the right order.