08-04-2005 04:41 AM
08-04-2005 11:00 AM
What range of frequencies? Assume it is a TTL level square wave? Do you have to sample all 3 at the same time
I doubt that you can reliably measure frequency with a digital input, especially if the frequecy is high. You would have to do a fast polling loop (timed) in software, and that could eat up resources, and timing is not all that accurate due to Windows timer.
Do you have analog inputs available, it may be possible to do a sample and derive frequency.
Another option- frequency to voltage converter, but there may some non-linearity errors.
Another idea- multiplex 2 of the 3 signals into one of the counter inputs.
			
    
	
		
		
		08-05-2005
	
		
		10:36 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		02-16-2024
	
		
		08:09 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			migration-bot
		
		
		
		
		
		
		
		
	
			
		
Hello kshen,
AnalogKid2DigitalMan gave some really good ideas, especially about the one using the analog input channel.  If you would like to do a hardware timed acquistion of the signal and determine the frequency in software, you can use an analog input channel, or you can use a digital channel if your hardware supports correlated DIO.  The configuration for this operation is a more advanced, and you can find examples and information n how to do it by searching our website.
			
    
	
		
		
		10-05-2005
	
		
		04:00 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		02-16-2024
	
		
		08:14 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			migration-bot