12-08-2017 05:57 AM - edited 12-08-2017 06:05 AM
Hi everyone, Im trying to make a robotic arm that uses image processing. I think my problem is about loops and sequences. When I run the vi, vision acqusion stops or arduino servos doesnt stop so I cant run them together. Could you please share an example?
2- I wanna turn servos slowly,I made a for loop for this but it's not cool because it starts same degree everytime, what should I do about it.
Thank you!
12-08-2017 06:06 AM - edited 12-08-2017 06:15 AM
Hi mckosen,
When I run the vi, vision acqusion stops or arduino servos doesnt stop so I cant run them together.
Run them in parallel loops with no data dependency. (THINK DATAFLOW.)
I made a for loop for this but it's not cool because it starts same degree everytime, what should I do about it.
Don't use a constant ("40") for the start angle! I would use the last known angle…
Btw. your VI looks overly complicated:
12-08-2017 06:12 AM
Thanks for reply
But how can it decide to icrease or decrease angle with last known angle? Is there anyway to do this?
and I tried to parallel loops but flat sequences doesnt work this time.
12-08-2017 06:18 AM - edited 12-08-2017 06:18 AM
Hi mckosen,
But how can it decide to icrease or decrease angle with last known angle? Is there anyway to do this?
Basic LabVIEW stuff: Use shift registers to store values for later iterations.
I tried to parallel loops but flat sequences doesnt work this time.
Basic LabVIEW stuff: loops are completely different than sequence frames.
As you seem to miss basic LabVIEW stuff I strongly recommend to take the free beginner courses!
12-08-2017 06:43 AM
Thanks but I didnt fix this..
12-08-2017 08:59 AM
So what have you done?
Have you change the code, with what has been adviced?
Show us the new version of your code.
12-10-2017 04:24 PM
I tried some ways to fix it but nothing changed..
12-11-2017 02:00 PM
In order to provide any help that is meaningful to you, we need this to be a bit more of a two-way process.
"tried some ways" doesn't really give us anything to work with. What did you try? Did you see any progress? Where are you currently stuck? What does your current VI look like?
As things stand now, we don't really know what you're working with anymore. Hopefully it's changed since your initial attempt. Knowing where it is now is paramount to providing you help.
12-12-2017 06:21 AM
I fixed interloops data flow problem by Local variable, My upgraded vi is attached. You can view it now, it's working well. But now I dont know how can I get the objects direction angle to turn my robot arm? Thanks...
12-13-2017 06:53 AM
How Can I get the servo angle to turn my servo to target object position by using this coordinates ?