05-16-2012 03:32 PM
Thanks in advance for your help. I am very new to labview and need to record some data using a provided VI. I have attached the VI for your reference. I would like to record the data evey 1 second from "DP-4" and also the "Air Velocity (fpm)". Any help would be greatly appreciated.
Solved! Go to Solution.
05-16-2012 04:27 PM
The easiest way to accomplish this would be to do something like this:
The Write to Measurement File Express VI does the actual saving of the data. The Elapsed Time VI ensures that you don't save any more than 1 reading per second.
I would save a VI for you but it appears you are using LabVIEW 7.1 and I can't go back that far on my laptop.
05-16-2012 05:12 PM
All processes are running independently, that is, in parallel. Is this what you want? Otherwise, use proper dataflow. You have error cluster terminals on your sub-VIs, use them.
05-17-2012 01:46 PM
Thanks for your quick reply!! I did as you said and attached the VI here. It still does not seem to create a file or write anything to it could i be missing some step? Thanks again
05-17-2012 01:51 PM - edited 05-17-2012 01:52 PM
If it did not work, why did you mark Simon H's response as the solution. Besides that, it does not look as though you followed his instructions based on your attached vi. Did you load the wrong one? Did you even change anything? Why don't you use the general File I/O VIs instead of the express VI?
05-17-2012 02:20 PM
Although I appreciate your reply please use discretion in the future. I did change the file to exactly as was shown in the picture above posted by SimonH, that is the corrected VI he had taken a screenshot of, not the original file I posted. They do run concurrently because multiple sensors are collecting data simultaneously. As I mentioned before I am brand new to labview and am only using it to complete this one data collection. That is why I am trying to do this as simple as possible.
05-17-2012 03:11 PM - edited 05-17-2012 03:13 PM
Your second VI that you posted appears to be the same as the first. What did you change?
So, in other words, you haven't posted the corrected changes?
05-17-2012 03:56 PM - edited 05-17-2012 03:57 PM
I see the Elapsed Time VI and the Write to Measurement File express VI's were added.
But where is your while loop? Your code runs once. Since the 1 second in your Elapased Time VI will not have passed, it outputs a False and the Write to Measurement File won't write anything. Then your code has finished.
05-17-2012 04:22 PM
@Ravens Fan wrote:
I see the Elapsed Time VI and the Write to Measurement File express VI's were added.
But where is your while loop? Your code runs once. Since the 1 second in your Elapased Time VI will not have passed, it outputs a False and the Write to Measurement File won't write anything. Then your code has finished.
Yes, this is what I was alluding to. I thought the OP understood the need for the while loop. I also assumed he made no changes since I mistakenly thought he already had the express VIs in his original post.