LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording Data

Solved!
Go to solution

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.

0 Kudos
Message 1 of 9
(2,704 Views)
Solution
Accepted by topic author ach0121

The easiest way to accomplish this would be to do something like this:

 

Screen Shot 2012-05-16 at 4.24.25 PM.png

 

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.

Message 2 of 9
(2,699 Views)

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.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
Message 3 of 9
(2,690 Views)

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

0 Kudos
Message 4 of 9
(2,665 Views)

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?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 5 of 9
(2,661 Views)

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.

0 Kudos
Message 6 of 9
(2,655 Views)

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?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 7 of 9
(2,651 Views)

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.

0 Kudos
Message 8 of 9
(2,642 Views)

@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.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 9 of 9
(2,635 Views)