LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LIFA Four Servos Cycle and Data Collection

Hey everyone! Any help would be appreciated. I am trying to cycle 4 devices 50,000 times using a contraption I built fun off servos. Each contraption runs off of one servo and cycles one device. The goal is to run four of these simultaneously, meaning controlling four servos at the same time. The servo should move to angle A, wait 10 seconds, then move to angle B 50,000 times. I also have a cDAQ system for collecting force sensor data that I am curious about. I am using an NI 9205. To generate the PWM to run the servos, I am using LIFA and an Arduino board.

 

I am having some trouble navigating the blocking while loops. It is my understanding (which could be wrong) that the servo write for LIFA VI's should be linear (wired from one to the next) and not set up in parallel. Is there a way to make these run parallel to each other with simultaneous while loops where each servo will run until the cycles are up or I press the individual stop button for that servo? 

 

Thanks! 

0 Kudos
Message 1 of 1
(2,426 Views)