|
Dear
Group
Can anyone explain
why this VB code doesn't work as it should.
sFileIn.IniSerialiseDouble "GainR" + CStr(iType), 1,
fRGain
sFileIn.IniSerialiseDouble "GainG" + CStr(iType), 1, fGGain sFileIn.IniSerialiseDouble "GainB" + CStr(iType), 1, fBGain IpAcqControl 5208, 0, CSng(fRGain) IpAcqControl 5208, 1, CSng(fGGain) IpAcqControl 5208, 2, CSng(fBGain) If IpAcqSnap(ACQ_NEW) < 0 Then LogAppend "Error 3 grabbing image" Exit Function End If It takes 4 image
grabs altering the white balance for each grab, if a breakpoint is inserted
before the IpAcqSnap command you can check IPP and it the figures are
changing but this has no effect on the image taken. Do you need a further
command to set the levels?
Regards,
Russell
Grigg
Process Engineering |