After having tried numerous combinations of drivers as well as matlab 5.3/6.1 I only found one working combination.
Win2k, Matlab 5.3 Imaq 2.2.1
Another issue - I was installing Ni-Daq version 6.6 on win2k and I got a lot of dialog boxes with no text so I had to guess what options to choose.
I'm using the following code in matlab:
-- this bit initializes the two controls I am using --
imaqfig = figure('visible','off');
hardwcontrol = actxcontrol('CWIMAQControlsLib.CWIMAQ.1',[20 20 60 60],imaqfig);
hardwarecontrol = actxcontrol('CWDAQControlsLib.CWAOPoint.1');
pp=invoke(hardwarecontrol,'ChannelString',0);
status=invoke(hardwarecontrol,'SingleWrite',0);
-- end of init.m --
-- this bit snaps one picture and displays it in a windo
w --
figure;
pp=invoke(hardwcontrol,'AcquireImage');
ImProp = get(hardwcontrol,'Images');
ImPropsingle = invoke(ImProp,'Item',1);
tilarray=invoke(ImPropsingle,'ImageToArray');
billed=mat2gray(tilarray');
imshow(billed);
-- end of snap.m --
What is happening is that I cannot access the Images property of the ActiveX control.
Thanks for your help