LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stepper motor and sequence

There are stepper motor vi and sequence vi at the attach file. I want to control stepper motor via sequence vi. When I run the stepper motor vi, it can not be reached part of enter position. How can I integrate sequence vi into the stepper motor vi.

Download All
0 Kudos
Message 1 of 10
(3,361 Views)

Sequence vi ?

0 Kudos
Message 2 of 10
(3,324 Views)

Sequence vi.

 

0 Kudos
Message 3 of 10
(3,304 Views)

You can put the code together in the same VI. You can use two different while loops running in parallel. I don’t see a problem. If you want to transfer data between loops you can use a queue (something like Producer-consumer architecture). 

0 Kudos
Message 4 of 10
(3,276 Views)

Actually, not exactly what I mean. I want to control MG17 Motor in the stepper motor block diagram by the "sequence". However, I can not add it to Stepper Motor vi.

 

0 Kudos
Message 5 of 10
(3,274 Views)

Do you mean that you need comunication between them without putting them together?

0 Kudos
Message 6 of 10
(3,272 Views)

Yes, I want to control "enter position" in the MG17 Motor.

0 Kudos
Message 7 of 10
(3,270 Views)

For communication between VI you can use global variables (taking care on race conditions), shared variables, web services, W/R to files (I think do not apply in this case)…

0 Kudos
Message 8 of 10
(3,264 Views)

I tried it but it does not work.I think, I need to new vi with regard to stepper motor that I can change and control it. Thank you very much for your help.

0 Kudos
Message 9 of 10
(3,258 Views)

Well, that can be a solution too. But you can try to implement this communication between VIs with a simple code just to prove it, and then you can add the other functions.

0 Kudos
Message 10 of 10
(3,235 Views)