03-30-2012 07:16 AM
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!!
Miika
P.s. Apologies for cross posting
04-02-2012 05:04 AM