07-24-2012 09:46 AM
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.
Solved! Go to Solution.
07-24-2012 09:57 AM
What happened to the state machine you were trying to write in your other thread?
07-24-2012 10:04 AM
I figured this out and it works! Thanks to some NI support.
07-24-2012 10:51 AM
Meant to say I figured my program out, not my original question. Anybody??
07-24-2012 10:58 AM
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.
07-24-2012 11:55 AM
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?
07-24-2012 12:03 PM
@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?
07-24-2012 12:22 PM
Here it is attached.
Thanks
07-24-2012 12:23 PM
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.
07-24-2012 12:41 PM
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.