05-09-2014 02:36 PM
Hi everybody,
I have a question which I think is really easy to solve, but I can't find a way to do this. I need to apply a voltage through a sample. I'd like to increment this voltage of 100V each 30s. For the moment I'm just trying to find a simple way to do this (no plugged devices, just a simulation). I already did something, but when I look at the wave chart, the voltage is increasing continuely while I'd like it to increase step by step, each 30s. I should see a stairway form... I attached my really simple VI.
Thanks.
Thomas.
Solved! Go to Solution.
05-09-2014 02:51 PM
Hello Thomas,
The good news is that you're actually doing what you want, the signal ramps up every 30 seconds. This would also work with DAQ hardware as long as the hardware you're using maintains whatever the last value written was.
The reason you're seeing a ramp on your Waveform Chart is that you're only plotting one point per iteration, so it looks like a ramp (you're writing one value every 30 seconds and nothing in-between). If you want to plot interim points, you'll need to add some logic that allows your loop to run faster than the increment rate and plots the same value multiple times. You'll also probably need to use something other than the loop iteration to determine the output, and you'll want an automatic stop condition of some sort- it seems unlikely that your voltage can continue increasing indefinitely!
Best Regards,
05-09-2014 03:03 PM
Hello Tom,
I now understand what is my problem, thank you. What can I do to increase the number of point during these 30s ? I'm a all new user of Labview. So what could allow me to choose the number of point I want ? I'll work on it. For the stop condition I agree but as I said I just want to operate a basic loop for the moment.
Thanks again.
Thomas.
05-09-2014 03:04 PM
05-09-2014 03:23 PM
Try something like this:
Note: I configured the Express vi for 3 seconds vice the 30 you want for demonstration purposes. (Users get bored easilly when the have to wait too long to see a change)
05-12-2014 08:42 AM
Hey guys,
Sorry for the late answer. Anyway, what a good surprise on this Monday morning. This is exactly what I wanted !
Thank you very much !
Thomas.