LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ramp signal generation from analog output

Hello Friends,

I am new to labview. I would like to generate a ramp signal through the analog output of my Daqpad6015.  The voltage range that comes out of the daqpad should be strictly on the positive side (i.e.  the voltage should be strictly >0V). This voltage output goes to the amplifier which amplifies to -100 times the initial values i.e. if  I give  voltage range from 0V to 5V  amplifier amplifies from 0V to -500V. The negative side of the voltage from amplifier is important because this voltage goes to the PIEZOELECTRIC ACTUATORS which give their maximum displacement of 180 microns at -1000V. If I use positive voltage it would blowup those PIEZOELECTRIC ACTUATORS. Can anyone help me in this aspect. If you can give me a program I will be very thankful.

Thanks and Regards

Ravi Mokirala
0 Kudos
Message 1 of 9
(7,038 Views)
Hi Friends,

I forgot to mention that I am using LabVIEW 8.2 version and my device is Daqpad6015.

Ravi Mokirala
0 Kudos
Message 2 of 9
(7,033 Views)

Hello Ravi,

I have created a simple VI that demonstrates how to make a ramp signal.  Just multiple the iteration terminal by your step size.  Then stop the while loop when you reach your maximum voltage.  How much time do you want in between steps?  Right now there is no specific timing between samples.  The wait is only used to give your CPU a little bit of relief.  Without this timing function, the VI will run as fast as your CPU will allow it and will use all of it resources.  If you want specific timing between each sample, then use a DAQmx timing VI.


Message Edited by Robert F on 08-23-2007 03:57 PM

Respectfully,

Rob F
Test Engineer
Condition Measurements
National Instruments
0 Kudos
Message 3 of 9
(6,998 Views)
Hi Robert,

Thanks for the reply. I really appreciate your help. Can you tell me where can I find the status and the other function that is connected from the status to the stop button. I couldnt find them.

Thanks and regards

Ravi Mokirala
0 Kudos
Message 4 of 9
(6,963 Views)
The symbol you called status is actually an unbundle by name.  The other symbol in question is a compound arithmetic configured for OR (default ) mode.
Message 5 of 9
(6,951 Views)
Hi Centrebolt,

Thank you very much for the reply. I have implemented these functions in the program and its working fine. I am sure that I will be having many questions in the future. So I need help from all of you.

Thanks and Regards

Ravi Mokirala
0 Kudos
Message 6 of 9
(6,930 Views)
Hi Robert,

I (ravishanker1811) have implemented the program you have given, have few questions. 

1) When I connect the analog output signal to an analog input signal with daqassistant analoginput voltage and save the input values to an file, i get repeating values of voltages. Why do i get such repeating values???

2) My other question is I would like to have another analog input signal through daqassistant which runs simultaneously with the ramp generation, but when i do that an error500103 error popsup.

Can you guide me.

Thanks and Regards

Ravi Mokirala
0 Kudos
Message 7 of 9
(6,872 Views)


@rshanker wrote:
Hi Robert,

I (ravishanker1811) have implemented the program you have given, have few questions. 

Ravi Mokirala


Hi Ravishankar,
 
Why ve you created another user profile for asking further doubts... ?! Smiley Indifferent
- Partha ( CLD until Oct 2027 🙂 )
Message 8 of 9
(6,866 Views)

Hello Ravi,

Are you physically connecting the analog input and output terminals on a connector block?  If you insert the DAQ Assistant after the while loop or after you are completely finished generating the data, then you would only read one voltage.  I would suggest looking at some of the DAQmx examples that were installed on your computer.  (Help >> Find Examples >> Hardware Input and Output >> DAQmx)  If the DAQ Assistant is setup correctly, then you can just right-click on it and select Generate NI-DAQmx Code.  You can then compare this generated code and the examples to find out the difference between them. 

What is the description of the error 500103?  Is it a negative number?  A screenshot of your code would really help us solve your issue.

Respectfully,

Rob F
Test Engineer
Condition Measurements
National Instruments
0 Kudos
Message 9 of 9
(6,846 Views)