LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To send appended ascending ramp with sine to oscilloscope through board AT-MIO-16XE-50

Hi Hood,

This is how you can generate rising ramp, then a sine for indefinite period and then, stop the sine and generate a falling ramp.

I built this VI to illustrate

This is what it does. First, it plots a rising ramp. Next, it keeps plotting sine with selected parameters(these parameters can be changed during the run ) till you tell stop. Once you press stop, a falling ramp of the set values is generated.

let me know if it serves your purpose

Regards

Dev

 

Message Edited by devchander on 01-30-2006 01:55 AM

Message Edited by devchander on 01-30-2006 01:56 AM

0 Kudos
Message 11 of 14
(804 Views)
Dear Devchander,

thanks for your suggestions. well in your proposed suggestions  there are still some questions.
1) if i set an offset of +2 . after i  send rise ramp, i see the rising ramp on the oscilloscope,immediately the sine i dont see appended it from the from point where the ramp ended, but it fell down to zero and oscillation i see there. finally when sine ended i dont see a sorresponding rise/fall  ramp that is appended to sine, but again immidiately it go back to zero an then a ramp  i see on the oscilloscope. why these rising/asceding  falling/descending ramps are not appended to sine?
2) i tried to implement this in my given example below. but here i see error 10401 at AO group config. here what i did is? in the first iteration i send the ascending ramp to oscilloscope and make sine generation false in this time. in the second iteration of a loop i start sending sine that was appended to rising ramp. i am using to times the AO wave VI. firstly initializing it and sending the rising ramp to oscilloscope and then the same task id i am transfering to sine wave AO wave VI. here when i checked it in debug mode, i saw in first iteration Ao wave vi sends ramp to oscilloscope and also in the second iteration of while loop it appends one sine cycle to the rising ramp but in the second sine cycle it generates error 10401 at AO group config. why it is genearting this error and how to rectify this error?(attached vi in previous version)
3) Now let us talk about frequency bufferlenghth issues. you said if i can control the update rate i can control the frequency(this is true in fact).but what will you do in the following case when you have to adjust not only one sine cycle, its frequency and time to generate but also if there are multiple sine genartors you do have. and you have to control the frequency, amplitude and cycles,time to generate like in the following example(see attached VI). here you see we have only on Analog output VI but three sine signals with different input parameters like frequency, amplitude, cycles, and time to run. and this was also my question why this sine generator does not take input parameters frequency, cycles, time to run these cycles.here we see only one input parameter frequency. if i adjust frequency value to one, i see only one cycle on the oscilloscope, if adjust 10 then i see 10 cycles on the oscilloscope. but the question rise where can i give an input frequency, cycles, time to run these cycles.and the function take these valuse as input and generate a sine of frequency in N HZ , if we adjusted N  cycles,it generate N cycles, if we adjusted that this sine generator should run the cycles upto 2 days,then it runs the cycles with already defined frequency for 2 days. and what if we have multiple sine sources. this basci sine generator Vi is atleast doing one thing. when we give  the function/VI inpuit amplitude it generates the amplitude that we gave as input control value. but what about other parametrs i talked about and in presence of multiple sine sources and with this rising fall ramps.?
i hope i explain my problem in detail. i would be very thankful for your help.
Regards
Hood
0 Kudos
Message 12 of 14
(784 Views)
Hi Dev
 
I was reading through this thread and as in my application i want to generate a sine wave and then gradually decrease the DC offset. SO the amplitude of the sine wave is constant and  but the generating a ramp signal, i want the sine wave to offset (linearly)  as the ramp goes down. I have not been able to open any of the VI's as i have LABVIEW version 7.0 . Can you pls send me the vi that will will work best for my application.
 
Pls help me out!
Thanks
Krithika
 
0 Kudos
Message 13 of 14
(777 Views)

I just now answered your other similiar query!

Plz Refer to it, and get back if have any doubts.

ciao

Dev

 

0 Kudos
Message 14 of 14
(772 Views)