 roadrunner23
		
			roadrunner23
		
		
		
		
		
		
		
		
	
			09-01-2015 10:12 AM
Hi,
How can i have optimal data aquisition using DAQ Assistant during a process that lasts around 2 hours but i don t know exactly how long. Should i use continous or finite sampling? Is there any given situation that calls one of these 2 modes?
Thanks in advance!
 crossrulz
		
			crossrulz
		
		
		 
		
		
		
		
		
	
			09-01-2015 11:25 AM
If you want constant data for the undefined amount of time, you want Continuous Sampling. Finite Samples is only useful for capturing small windows of data (like 100ms worth of data).
09-01-2015 01:45 PM
And should i place the DAQ in a while loop (for continuous sampling)? Because after the aquisition i need to save the data into a file and i use Write to Meas file.Vi
Thanks!
 Dennis_Knutson
		
			Dennis_Knutson
		
		
		
		
		
		
		
		
	
			09-01-2015 03:01 PM
09-01-2015 03:06 PM
I understand, but what do you mean by producer/consumer architecture?
Thanks!
 Dennis_Knutson
		
			Dennis_Knutson
		
		
		
		
		
		
		
		
	
			09-01-2015 04:38 PM
 crossrulz
		
			crossrulz
		
		
		 
		
		
		
		
		
	
			
			
    
	
		
		
		09-02-2015
	
		
		05:46 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		05-15-2025
	
		
		10:51 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
@Dennis_Knutson wrote:
I would suggest that you use a producer/consumer architecture and save as you acquire.
Depends on the format the OP wants the data in. I recommend using a TDMS file since DAQmx makes this way too easy for you. In the DAQ Assistant, there is a Logging tab. Go there and enable the logging. DAQmx will stream your data straight to a TDMS file. You don't have to do anything else and it is highly efficient.
For any other file format, you should use the Producer/Consumer.