LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save output from waveform into a text file when VI is running continuously?

Solved!
Go to solution

How can I save output from waveform into a text file when I run my VI continuously?

 

I am doing power profiling and want to save voltage drop measurements continuely.

0 Kudos
Message 1 of 5
(3,052 Views)

Use a producer/consumer architecture. 

 

http://www.ni.com/white-paper/3023/en

 

As a side note, I hope you don't literally mean that you are using the "run continously" button.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 5
(3,031 Views)

Well.. Yes. I do mean "run continously" button. Is it a problem?

I just want the voltage supplies to be on (so that the device which I try to power profile doesn't turn off... to avoil setting it up for each measurement).


However, placed enable/ disable button connected to "Write To Measurement File" module. I also would like to enter some logic to perform measurement for number of seconds, but I am not sure what I can use.

 

 

0 Kudos
Message 3 of 5
(3,026 Views)

@armendzh wrote:

Well.. Yes. I do mean "run continously" button. Is it a problem?

 


Yes that is a problem,  Run Continuously is a debug feature simillar to abort.  you should not normally run a vi this way.  A while loop after your set-up code to repeat a measurement is the preferred method.


I just want the voltage supplies to be on (so that the device which I try to power profile doesn't turn off... to avoil setting it up for each measurement).


However, placed enable/ disable button connected to "Write To Measurement File" module. I also would like to enter some logic to perform measurement for number of seconds, but I am not sure what I can use.


 

Lets see what you have- we can understand what we are triing to help with a lot easier that way.

 


"Should be" isn't "Is" -Jay
Message 4 of 5
(3,014 Views)
Solution
Accepted by topic author armendzh

Oh.. I see. I wasn't aware of this.

 

This is my first time using LabVIEW, so I used one of the example files. In there, I just added "Write To Measurement File" with input Total Current... and because I was using using "run continuously" buttom, I added the enable button to control when I write measurement file.

 

However, ideally, I want to make it run for x seconds or x minutes and then stop without powering off the device which is connected to Battery Simulator from NI. Right now, its resetting the device whenever I hit "run" buttom, which makes me set up device for particular test I want to measure again.

 

 

0 Kudos
Message 5 of 5
(3,005 Views)