LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to command a camera for auto capture a image after a finite rotation of a rotational motor

How to command a camera for auto-capturing an image after a finite rotation of a rotational motor.
 
Currently, in the VI, I have a DC servo rotational motor and a USB camera. I want the following condition,
Step 1: rotation of the motor a finite angle increment (for example 5 degrees)
 
Step 2 Pause for some time of the motor (for example 5000 ms).
 
Step 3  Ask the camera to take one image and save based on the entered test name and image sequence ID.
 
Step 4 Repeat step 1 and step 2 and step 3 again until n times (n=36)
 
In my case, I use a very simplified version using a For loop and a nested For loop. The nested for loop programmed for a single rotation of the motor and the for loop repeated this rotation by its n times iteration. The camera was also put inside the for loop, so after each iteration, the camera was turned on and captured an image. Otherwise, the camera remained turned off. I am looking for suggestions on how to implement my described condition (step 1, step 2, step 3, and step 4), and the camera will stay on and follow the command.
A snapshot of a section of a VI is here and the VI is attached. 
rd2024_0-1730181237984.png

 

 
0 Kudos
Message 1 of 1
(115 Views)