LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision assistant and labview interface for arduino help please

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!

0 Kudos
Message 1 of 11
(3,941 Views)

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:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(3,931 Views)

 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.

0 Kudos
Message 3 of 11
(3,927 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 11
(3,922 Views)

Thanks but I didnt fix this..

0 Kudos
Message 5 of 11
(3,903 Views)

So what have you done? 

Have you change the code, with what has been adviced? 

 

Show us the new version of your code.

0 Kudos
Message 6 of 11
(3,884 Views)

I tried some ways to fix it but nothing changed..

0 Kudos
Message 7 of 11
(3,871 Views)

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.

0 Kudos
Message 8 of 11
(3,847 Views)

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...

0 Kudos
Message 9 of 11
(3,836 Views)

How Can I get the servo angle to turn my servo to target object position by using this coordinates ? 

0 Kudos
Message 10 of 11
(3,823 Views)