04-19-2010 01:51 PM
I attached the vi that I currently have - so far it steams continously but I cant get it to log at a desired rate.
Solved! Go to Solution.
04-19-2010 03:41 PM
Helpme9211,
Your post was a little light on details but looking at your code I suspect you wish to display the temperature from all 10 channels and then log to disk at a slower rate than you're updating the display.
I noticed a few things that might be causing problems:
I made a quick pass at cleaning those things up -- again, I haven't run any of this code since I don't have any HW here but I think it should help get you on the right track.
Is this a VI you wrote yourself? If so I'd be interested to know which materials you used to learn LabVIEW. I'm looking at ways we can help new LabVIEW users be successful faster and it'd be nice to know where people are finding help/resources.
~SimonH
04-20-2010 12:39 PM
04-20-2010 12:44 PM
I'm sorry I clicked post prior too finishing - I'm confused about the sampling rates, frequency and what they should be set for within the DAQ block and within the vi itself.
I've had some help but I'm really an end user trying my best to program I guess.
04-20-2010 12:51 PM
How often do you want to log to file?
How long are you letting your program run?
Your DAQ assistant is set to acquire 1000 samples at a 1kHz rate. That sets your loop iteration at 1 sec. The code is set to log the last second of data to file either when you hit Stop, or every 300 loop iterations which means 5 minutes.
If that is not what you want, you'll have to provide more details on how often you want to log data, and how much data you want to log. As it is now, you are throwing away 299 seconds worth of data and only keeping 1 second worth of data.
04-20-2010 01:04 PM
04-20-2010 02:04 PM
Also the way your code is setup you are only displaying the first of the 1000 samples you take on each channel each loop iteration.
Temperature is a fairly slow signal so I imagine setting the DAQ Assistant to 1 Sample (On Demand) is what you want.
This would also stop the DAQ Assistant reducing your loop rate to 1 Hz and would allow you to run at the 10 Hz defined by the 100ms delay.
~Simon