hey guys, I'm relatively new to labview, and am currently trying to make a multi stage snake like robot. I'm interfacing with USB controllers from pololu and want to manualy control the first stage and have the remaining stages follow, I've got the first stage working with commands from the front panel. I use a producer consumer template and have button pushes activate an event and then queue a case in a second "hardware loop".
my current problem is now I want to start working on controlling the secondary stages passively, so I want to move the front stage angled up and then start to drive foward and the second stage begins to follow into the same position. I want to regularly interrupt and check the positions on the servos to compare and act accordingly. my first thought is to interrupt on timeout in the event structure and test if the servos are at the same postion. the problem is my visa reference is in the other loop.
what would be the best way to go about this? should I just queue into my hardware loop on a time out and test the servo positions. or is there a way to share my visa resource in the producer loop? I originally wanted to store the reference in the producer loop and pass it everytime I went to the consumer loop but I couldnt figure out a good way to return the updated reference and I kept getting errors.
are timed loops an option here? any advice would be helpful. even if you have a better structure to redo the whole project. I'd love to hear it for next time if nothing else. also if theres a better sub forum ill gladly move the post.
thanks guys