 ggress1
		
			ggress1
		
		
		
		
		
		
		
		
	
			03-07-2014 08:58 PM
I would like to log data at 0.5 second intervals while the daq assistant acquires data at 1KHz,
I tried using the write to measurement file express vi but couldn't separate the sampling and logging rates.
Any suggestions with code is always appreciated.
Thanks !!
 moderator1983
		
			moderator1983
		
		
		
		
		
		
		
		
	
			
			
    
	
		
		
		03-08-2014
	
		
		04:50 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		05-12-2025
	
		
		08:00 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
Your VI is saved in LabvIEW 2013, hence I can't open, either save it in previous version and upload or share the snapshot of block diagram.
Well, have you tried running two parallel loops one for acquisition and other for data logging.
Refer to these:
03-08-2014 04:01 PM
I changed daq portion to daqmx rather than daq assistant express but still lost with writing data to file every 0.5 seconds.
Thanks
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			03-08-2014 04:08 PM
Your screenshot doesn't show anything trying to log the data!
Attach
Take the boolean output from the Timer express VI and wire that to a case structure. Inside the true case, put your data logging function. If you set your time target to 0.5, then the the timer will become true every 1/2 second and send your data to the file.
03-08-2014 05:24 PM
Thanks for your response. I did not include data logging yet (cause I dont know how) but looked at the logic.
That will destroy my count down timer on the front panel right ?
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			03-08-2014 05:28 PM
What is your countdown timer supposed to show? It wasn't clear you were using the express VI for that purpose in your earlier screenshot.
If you need a separate timer for the sake of a countdown vs. a timer for when to log, then put two express VI's in your code, each configured however you need it.
03-08-2014 05:42 PM
The timer is used to toggle a valve every five seconds and provide an countdown indicator for the sampling period (0.5 sec x 10 seconds).
I will work on your suggestion using another express VI.
Thanks
03-09-2014 07:44 PM
Its logging data every millisecond. I for it produced the same result with the express vi in the false case.
Thanks
 Dennis_Knutson
		
			Dennis_Knutson
		
		
		
		
		
		
		
		
	
			03-09-2014 08:10 PM
03-09-2014 09:12 PM
I am trying to sample every msec but I want to write to the measurement file every 0.5 seconds.