12-02-2016 08:57 AM
Hello everyone,
I am using labview's DAQ to acquire signal from a thermistor. My experiment is going to run for 7 hours. I am using a sampling rate of 1 Hz and keep getting errors from the write measurement file express VI because the timeout setting is too low. Is there any way to change the default timeout for the express vi or get around that?
Any help is appreciated I am fairly new to labview
Nohely
12-02-2016 09:09 AM - edited 12-02-2016 09:10 AM
Hi nohelyriv,
so you took a screenshot - with your 12MP camera? And you forgot to rename the file with a useful suffix?
All you show is a JPG image with some expressVIs…
Please attach your VI - images are hard to debug using LabVIEW!
12-02-2016 09:12 AM
Sorry I forgot to attach it.
Here is the vi document
12-02-2016 10:16 AM - edited 12-02-2016 10:21 AM
In an express VI, to change the timeout setting, go to the Advanced Timing page.
It is set for 10 seconds, but your express VI would take 100 seconds to run because you are collecting 100 samples at 1 Hz.
You've got multiple other problems.
1. Because it takes 100 seconds to execute the express VI, (only 10 seconds now because it times out), it would take a very long time for your VI to react to someone pressing the stop button. Possibly up to 200 seconds.
2. Your Collector express VI is pointless. The waveform chart is a "collector" in itself because it maintains a history of past data. So maintaining a history of data, then passing that history to a waveform chart means you are duplicating, repeating, and just expanding the amoutn of data you are getting.
3. Your Write to TDMS express VI belongs in the while loop. Right now it only executes once you stop your VI, so nothing is being written while you run for 7 hours (risk for a lot of data loss), and then when it writes, it will only write out the amount of data that might have been captured by the collector VI.
Learn to use real DAQmx functions. Collect smaller amounts of data at once, not 100 seconds worth. 1 second acquisition rates are pretty slow in timing, so you might not need this. But it is a good idea to separate data acquisition from data logging by using queues within a producer/consumer architecture.
12-02-2016 10:33 AM
This is probably a stupid question but where would I find the Advanced Timing page?
Thank you
12-02-2016 10:41 AM
Third tab up top on the express vi properties page.
Configuration
Triggering
Advanced Timing
Logging