LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ramp down in output signal

Hi

I am developing a program to write a sinus signal using NI PCI-6713. When i close the program the values of the signal are retained until i reset it. But I dont want to reset it instead i want to make a ramp down to zero from the last generated value. How can I do so?

 

Regards

Suvansh

0 Kudos
Message 1 of 5
(2,852 Views)

You can use the Ramp pattern to generate a Ramp signal once the sine wave generation is completed.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 5
(2,847 Views)

Hi

Thanks for the suggestion.

i am using ramp down, but the problem is I dont know the value at which the sinus signal generation stops. therefore I need to know a method by which i can find the last generated value of the signal.

 

Regards

Suvansh

0 Kudos
Message 3 of 5
(2,844 Views)

It depends on how much you give the offset/setpoint value. If you are not using these values your waveform will rest at 0 but incase if you are using any one of these values then that will be the value where the sine wave will rest after generation.

 

One thing you can do to find the rest value is take the min and max value of the waveform and find the midpoint of it.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 5
(2,841 Views)

Sorry for not elaborating more on the program.

I am genreating a sinus signal at first with 1000 Samples and no offset. Then i write this signal in a while loop to my AO card and the loop runs till i press stop. I want to find the instance at which the card stops writing the generated signal. 

I am attatching the program along with the subvi used for signal generation.

 

Download All
0 Kudos
Message 5 of 5
(2,837 Views)