Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

stepper motor - 2 functions of stepper write

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

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

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.

greetings from the Netherlands
0 Kudos
Message 2 of 2
(2,583 Views)