02-25-2013 11:30 AM
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.
Solved! Go to Solution.
02-25-2013 01:55 PM
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.
02-25-2013 02:03 PM - edited 02-25-2013 02:04 PM
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.
02-25-2013 02:37 PM
@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.
02-25-2013 03:05 PM - edited 02-25-2013 03:09 PM
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.