LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

outputting a data point every second

Solved!
Go to solution

I want to output a data point every second to an excel sheet. I got it so that it only outputs one accumlated data point. Each data point includes a timestamp, rate, and volume.

 

Attached is my VI.

0 Kudos
Message 1 of 29
(4,352 Views)

What happened to the state machine you were trying to write in your other thread?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 29
(4,347 Views)

I figured this out and it works! Thanks to some NI support.

0 Kudos
Message 3 of 29
(4,343 Views)

Meant to say I figured my program out, not my original question. Anybody??

0 Kudos
Message 4 of 29
(4,329 Views)

You can use the Elaspsed Time VI to determine when a second is up and have that wired to a case structure with the Write to File in the True case.

 

Next time, please post your updated VI using the state machine architecture so that we can see that you are making progress rather than the original VI that you were struggling with in the other thread.

0 Kudos
Message 5 of 29
(4,324 Views)

Hey Ravens,

 

It never worked...the status isn't even updating which leads me to think that I am getting an error and not clearing it?

0 Kudos
Message 6 of 29
(4,313 Views)

@Mike227 wrote:

Hey Ravens,

 

It never worked...the status isn't even updating which leads me to think that I am getting an error and not clearing it?


If you post the code, we might be able to help you figure it out.  And errors happen for a reason.  Are you actually getting an error?  If so, what is the error?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 29
(4,310 Views)

Here it is attached.

 

Thanks

0 Kudos
Message 8 of 29
(4,302 Views)

I would like the volume data to plot every second and the rate data plot every 30 seconds. I think the problem is that my status.vi is not updating.

0 Kudos
Message 9 of 29
(4,301 Views)

You would probably benefit from creating a flow chart of what you want your program to do and looking at that instead of just throwing code onto a block diagram. You have a for loop that runs throw all of the different rate profiles. At the end of each profile, you stop the pump. There does not appear to be anything in the second loop that can be recorded. The pump is stopped and would not the status VI return that and immediately stop the loop? You simply CANNOT create a data dependency between the for loop and the while loop if you want to record data as the pump is running.

0 Kudos
Message 10 of 29
(4,296 Views)