11-12-2008 04:55 PM
11-13-2008 02:02 PM
Hi B Man,
My advice is to stay away from using the DAQAssistant.It is much more limited in functionality than creating a DAQmx analog output task. Using an analog output task you can control this a couple ways. One way is to perform this action with software timing. In this case you can write a new single peiod of a sine wave to the output each iteration of the loop. You initialize an array that stores voltage values that will corrospond to the "ramp" you'd like to use for the amplitude of your sine wave output, and each iteration of the loop input the next voltage value of the array into the amplitude input of the generate sine VI. The output of this VI will be a waveform that is fed into the DAQmx write.vi. Attatched is a simple example that I wrote that loosely demonstrates this idea. In order to get the full functionality you're looking for, you will have to manipulate this example.
If you are looking for the output to ramp back down from the maximum voltage value in the array, you can have a case structure that checks to see if you're at your max voltage and then indexes through the array backwards, or simply uses another array that has the ramp signal that is ramping down. This should get you started.
Chris N White
High Speed Products Group
11-24-2008 03:31 PM
Hi Chris, I am trying to get similar functionality (ramping a voltage waveform) so I tried your example. For some reason, it doesn't seem to be writing to my analog output channel, though it appears to be creating the waveform correctly within the vi. Should this example be functional as-is or am I doing something wrong?
Thanks!
Blake
11-24-2008 04:12 PM
If the VI is working, except for writing to your analog channel,
chances are you configured your writing function incorrectly.
Double check that you have your VI writing to the correct channel, parity, baud rate, stop bits, etc....
11-25-2008 05:00 PM
HI Blake,
You were right about the VI that I posted there were a couple little bugs. I fixed them and this version of the VI should work right out of the box. You can vary the amplitude of the sine wave by changing the value of the square wave amplitude. You can also change the amount of time that it takes to ramp up by changing the values of Fs and #s in the square wave sampling info section. The only thing that you need to do is make sure that the ratio of Fs and #s for the square wave is 1.
12-18-2008 05:37 AM - edited 12-18-2008 05:41 AM
Hi!
I study Biomedical Engineering at Baskent University in Turkey. I have a project with labview and i need help.
It's about a ramp generator in labview.They want two outputs triangle and saw-tooth The teachers never
teached labview and I have no idea about this software.I am trying to
learn but I believe I can't make this out without help. if you help me with with this i
will appriciate so much.
I am very desperate please help me.
With my all respect..
Osman Onur ERDOGAN
12-18-2008 05:56 AM
12-18-2008 06:46 AM
12-18-2008 07:03 AM
You have to fill in some more details. Use the list as a template
1) Frequnce
2) Amplitude
3) Duration
4) Exsisting hardware on your computer
5) Everything else that will give us an understanding of your project
12-18-2008 07:11 AM
thanks so much for your concern.Its a new project i will post tomorrow all details.If you look at it tomorrow i will really apriciate.
Thanks very much again.