Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

AO output limit, PCIe-6363, BNC-2110

Solved!
Go to solution

Hello.

 

We are running two galvo scanner on a PCIe-6363 board with an attached BNC-2110 on the two analog outputs AO0 and AO1.
I attached a simplified version of our program: testGalvosV1working.vi
The other two vi's (wavePosSub and waveNegSub) are two sub-vi's to create the triangular waveform.
Please see the front and block diagram:
front.pngblock.pngThe numeric inputs imageSizeX/Y are the desired image size, here 512x512px. The offset input gives the scanning range of the galvos: 1V input means a sweep range from -1 to 1V. The step size of the galvos will be 2V/512px. The input "timePerPixel" is the scanning speed: How many pixels are raster scanned per second.

 

The program works as follows: You click start and before something happens: 1000ms pass (it is just for testing purpose, not really necessary). Afterward, the GalvoX scans from left to right, at the end of the line, the GalvoY proceeds to the next line and GalvoX scans from right to left and so on until 512x512px are scanned. That can be seen in the graph: the white line is GalvoY and the red line is the altering GalvoX. (put something like 5000 into timePerPixel to follow the graph updating.) Both galvo scanner are initialized with one task writing to both AO outputs.

imagingTime(s) is the expected time the scanners need to scan one image. The "time passed (+1000ms)" is a tick count. The tick count and the imagingTime should ideally be the same (just the tick count is 1000ms longer because of the initially 1000ms wait). That is not very precise but a good indicator for comparison.
Also, I am aware that the flat sequence is not necessary and you folks at NI aren't the biggest fans of it Smiley Wink  The fastScannerFreq and scanSpeedTooHigh indicator show the scanning frequency of the GalvoX, which should not be higher as 1000Hz. If exceeded the program does not run.

 

However, why I post this here: I have a speed limit which I do not fully understand. If I put a time >125000 into the timePerPixel(px/s) box the scanning speed does NOT increase anymore. Meaning I can not write more than 125kHz to the outputs. This can be seen in the program because the indicator "timePassed" does not decrease further.
What I tested so far: If I remove one AO output (and change to only one physical channel) I can write data with 250kHz. Therefore, it must somehow be related to the amount of samples I can write? But shouldn't I be able to write faster? Where is this limit coming from?

Thanks for reading. And maybe you have a hint.

Download All
0 Kudos
Message 1 of 3
(2,019 Views)
Solution
Accepted by topic author ben3000

No definite direct answer, but a few thoughts & questions.

 

1. You should write AO data to your task *before* you start it, otherwise your task is likely to throw an error.

2. You could probably pre-write *all* the AO data before starting the task.  Then you could also configure your task for finite sampling.

3. The PCIe-6363 is rated for up to 2 MHz AO sample rate with 2 channels in the task.  This doesn't explain the apparent 250 kHz limit you describe, but I'm also not sure your method for measuring this limit is reliable.  Is it possible you're accidentally using a different board for the AO, maybe you've got 2 different boards installed?

 

 

-Kevin P

Message 2 of 3
(1,976 Views)
Solution
Accepted by topic author ben3000

Thanks again.

It is definitely a PCIe-6363 board with a BNC-2110.

I think I managed to solve it. Though I still do not really understand why the first attempt does not work.

However, see attached the block diagram and the *.vi. (for sure I could find a more elegant solution with the for-loops 🙂 )

blockDia.pngCompared to previous version where I was stuck with a maximum pixel per second rate of 125kHz for 2 galvo scanner, which allowed for a maximum imaging speed of an 512x512px image in 4 seconds, I can achieve now easily an image acquisition time of  < 1 seconds. (However, the galvos sweep range should not exceed ~1300Hz, otherwise they might get damaged).

Thanks!

0 Kudos
Message 3 of 3
(1,943 Views)