06-06-2012 07:37 AM
Hi all, did search for similar posts, no answer. So here we go (with lots of thanks in advance):
My application requires a voltage ramp (for an amplifier) from 0 to Max to 0 to -Max to 0 and so on...., I did have it work and everything seems fine. I also need a square wave to trigger a camera inbetween the ramping steps --- for example, with a step size of 5 V/step, the voltage goes from 15 V to 20 V then it stays at 20 volts for 2 sec, then goes to 25 V... The square wave should rise from low to high 1 secondafter the step is completed where the voltage is still at 20 V and then 25, 30..... See attachment 1 for an example plot.
I understand that I can output the ramp by it self with a "for" loop , but I can't output both the ramp and the square wave at the same time. Due to the difference in the length of the data points. Attached is a copy of the VI, and help would be great.
I am using NI USB-6343, and Labview 2010 Version 10.0 .
Thanks..
Qi
06-06-2012 10:19 AM
When you generate your square and ramp you need to make the number of points the same for both waveforms. You can resample the ramp to acomplish this
06-06-2012 08:32 PM
Thanks, flapl.
Appreciate the quick response.
Everything works now.