04-07-2018 11:44 AM - edited 04-07-2018 11:46 AM
I am newbie to LabVIEW.
I have build the code " straight line. vi" in while loop to calculate inverse kinematic coordinate and want to take out the value of X3 and Y3 from the while loop and feed to another sub vi.
I created local variable and tried auto indexing but unable do it .
Main vi " straight line. vi "
Sub vi's " inverser kinematic xand y input.vi" "inverser x and y calculate.vi"
Please help
04-07-2018 12:14 PM
Hi Tejes,
You do need any of your local variable, just wire output of your calculation to the input of your VIs. And place your subVI inside the while loop if you want it to run after each value change on X3 and Y3.
What you do here is basically just run your subVI once with whatever values X3 and Y3 have in parallel of calculating the new X3 and Y3 values. I bet you have pretty weird results. It is because LabVIEW use data flow as principle for ordering things.
You can learn more here :
https://www.ni.com/getting-started/labview-basics/f/dataflow
http://www.ni.com/academic/students/learn-labview/f/