Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmitically change NI-IMAQ window size

Have (2) NI-142x Cameralink boards running simutaneoulsly.
I want to butt the windows vertically on UIR and retain there size
within the program regardless of what the value is changed to
in MAX (Automation Explorer).
 
Setup: 2 Linescan cameras (frame size :2048 pixels by 50 lines)
 
2048
++++++++++++++++  50
++++++++++++++++
<SPACE>
+++++++++++++++ +  50
++++++++++++++++
 
How to I override the setting in MAX within my program using
NI-IMAQ calls?
0 Kudos
Message 1 of 4
(3,491 Views)
"IMAQ Resample" can be used to resize an image to a fix resolution. This function is part of the "NI Vision Development Module".

Use a property node (session comes from IMAQ Init) to set/get attributes.
0 Kudos
Message 2 of 4
(3,476 Views)

You should be able to specify the windowing and ROI when you set up your acquisition.  This will usually override any MAX settings.  I'm not sure if it is different for a linescan camera.

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 3 of 4
(3,472 Views)
I don't recommend this approach, but I wrote a parallel interface to MAX for moving the acquisition window and size and saved the values in the MAX .icd file.
Unfortunately, this doesn't account for users opening MAX interface and changing the values, or worse still, MAX itself substituting my values with default values, or worstest, changes in the .icd file format, (some .icd files did not work without a space before and after the = sign )
AARGH.Smiley Mad

I believe I had to follow this approach because there was not a property node for moving the acquisition window left or right, within the CCD.

0 Kudos
Message 4 of 4
(3,456 Views)