02-12-2016 06:23 PM - edited 02-12-2016 06:23 PM
hello, i want to generate a positive only sawtooth waveform, starting from zero, and ramping up to 3.3V, and coming back down only up to zero value, and not swinging to -3.3V. is it possible to do that in labview 11?
something like below.
Solved! Go to Solution.
02-12-2016 06:34 PM
If you are using the Waveform signal generation VIs, they have an offset input. If you are using the array output signal generation VIs, they have an offset input. If you are using the array output signal generation VIs, use Array Max & Min to find the minimum value in an array and add the negative of that to the array.
Lynn
02-12-2016 06:34 PM
02-14-2016 07:14 PM
that worked! thx
02-16-2016 11:02 AM
i had a follow up question, how can i control the ramp rate both going up and going down?
02-16-2016 11:29 AM - edited 02-16-2016 11:30 AM
Hi LV_Enthu,
how can i control the ramp rate both going up and going down?
Maybe by setting the correct parameters for the ramp function?
Again the same question: What have you tried so far? Where exactly do you have problems?
02-16-2016 12:57 PM
02-16-2016 04:46 PM
hello,
i have tried out the ramp function, for going up and going down, i varied the number of samples as well which seems to change the ramp rate, but i am not sure if I can confidently say that the positive ramp is going from 0 to 1 V in lets say 20ms, or 40ms, or whatever the user specifies?
attached a snapshot of the vi that i have developed
02-16-2016 05:38 PM
Your ramp time is determined by the number of samples per ramp and the dt. Right now, since your dt is just the reciprical of the number of samples, you get a ramp is 1 second. You need to make your dt be the desired time of the ramp divided by the number of samples. So in this case, you want dt = 40ms/16 = .0025 seconds/sample.