Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ Mikrotron EoSens MC1360 multiple-ROI acquisition at high speeds

Solved!
Go to solution

I'm trying to make a minimal VI that configures a Mikrotron camera (MC1360 EoSens) to use four regions of interest (hardware) and show these on screen.

I'm using the following list of commands, which are all successfully sent to the camera and receive output (serial write/read):

:V
:v
:Ay
:c
:M6
:M?
:R50
:t002328
:k400
:q00006E
:D0400
:u1
:d000000064064
:L3
:L1000096000000
:L2000000000096
:L3000096000096
:Ln?
:q?
:t?
:A?

Afterwards, I was at a loss because the manual doesn't explain beyond sending these commands. Based on a number of older files from a colleague, I'm using Configure List, Imaq start, Imaq Status to check if acquiring, then finally Imaq Extract Buffer (see attached). This does not seem to be working; while I do get an image it looks like all four images are the same. I've also tried (in the i-th loop iteration) if i%4==0, then look at buffer i, i-1, i-2, i-3. From what I could determine, that gave me four images that are exactly equal.

How to proceed?

0 Kudos
Message 1 of 2
(2,222 Views)
Solution
Accepted by topic author Daimonie

It works now.

So, the acquisition is simply by asking for buffer $i, where $i is the iteration of the acquisition loop. I use the quotient&remainder vi to determine which ROI it is. 

The error did lie in the serial configuration. I was sending (Format Text) :L%d%06x%06x, which should've been %03x. That fixed it. The trick was to ask for :d?, :L1? etc to figure out the positions of the ROIs. After that, it was clear.

For those who did spend time: Thank you!

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