10-30-2012 10:08 AM
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.
10-31-2012 11:09 AM
Sequence vi ?
11-01-2012 04:10 AM
Sequence vi.
11-02-2012 09:16 AM
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).
11-02-2012 09:22 AM
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.
11-02-2012 09:31 AM
Do you mean that you need comunication between them without putting them together?
11-02-2012 09:41 AM
Yes, I want to control "enter position" in the MG17 Motor.
11-02-2012 10:21 AM
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)…
11-02-2012 10:42 AM
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.
11-05-2012 05:48 PM
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.