From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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 !!
03-08-2014 04:50 AM
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
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 ?
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
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.