Hello
You should check out the daq event message 7, which generates a callback whenever a digital pattern is detected or not. You wont be using CWDIO for this, since it wont be able to provide you with the events. You can also check out this 
link as an example. It uses C, so it might be easier than trying to us the CW controls
I hope this helps
Thanks
Bilal Durrani
NI 
					
				
			
			
				
	Bilal Durrani
NI