Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Dual axes mirror scanning

Hi all,

 

I have been writing a code to control the scanning rate of dual axis mirrors, using PCI-6731.  I wish to scan in the x-direction with a sawtooth function and in the y-direction with a stepwise function.  Each step (referred to as a B-scan) is composed of a number of x-direction points (called A-lines in my code); both of these parameters I set manually.  However, even though my code does work and is scanning, my problem is that I wish to obtain only a certain number of 'runs' of the entire scanning volume, i.e.. a C-scan is (# of A-lines)x(# of B-scans) - I want to be able to control how many times the C-scan area is scanned.

 

This may seem like a trivial error especially since I already have the code written, but it is very frustrating.  I have tried putting a 'for loop' to control the number of runs in the attached .vi file (originally a while loop initially). Please help!! :smileysad:

 

Miika

 

P.s. Apologies for cross posting

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

Duplicate Post.


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

0 Kudos
Message 2 of 2
(2,972 Views)