LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ramp pattern voltage generation

Hi, I'm a newbie in LabVIEW and I'm stuck with a project I am working on.

 

It is a simple sine wave generator where I input a wave amplitude (4.4V), offset (5.5V), and frequency (0.25) to simulate a wave. This part of the project is okay but I jumped into a few problems.

 

After simulating a wave and terminating the process, I want the voltage to drop or increase linearly to the equilibrium (5.5V) slowly (greater than 3 seconds) without any massive jumps.

-> I tried to use the ramp pattern vi., but I couldn't figure how to make it into a signal (or even use it properly).

 

Also, is it possible for the voltage to be smoother than what appears on the wave form chart? 

 

I attached the work I have done so far.

 

Please help! Thanks!

0 Kudos
Message 1 of 2
(2,473 Views)

I don't see where you used a Ramp function in your VI.

 

Your second while loop doesn't make any sense.  You tell it to run, and stop whenever your simulated signal is equal to 5.5, which is is immediately since you are simulating a DC voltage of 5.5.  Or it may run forever because there is no guarantee when comparing floating point values for equality that 5.5 will exactly equal 5.5

0 Kudos
Message 2 of 2
(2,428 Views)