Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Step Response With NI cDAQ-9172

I would like to output a prescribed voltage to a piezo actuator and record the response.  I'm not sure how to sync the AO and AI and make the graph on a time basis.  I would like to calculate the Rise Time (step response), Overshoot, and Settling Time so I need help capturing the voltage jump with a high sampling rate.

 

I have attached the start to my vi.

 

I appreciate any help/insight you can give.

 

Thanks

0 Kudos
Message 1 of 5
(3,313 Views)

Dear lockesmith,

 

I recommend you to take a look at the following shipping example offered in LabVIEW. This example will allow you to synchronize your analog input and output tasks. With this example you will be able to determine the sampling rate of your AI so that you can obtain information about Rise Time, Overshoot, and Settling Time.

 

Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Syncronization>>Multi-Function>>Multi-Function-Synch AI-AO

Regards,
Efrain G.
National Instruments
Visit http://www.ni.com/gettingstarted/ for step-by-step help in setting up your system.
Message 2 of 5
(3,282 Views)

I would like to add another analog input that would record at the same time as the other so that I can compare the signal I am sending from my analog output to the signal i am getting in response from my device.  How can i achieve this.  I have attached my attempt.

0 Kudos
Message 3 of 5
(3,272 Views)

I think this is a rough start to something that seems to work.  I just need to figure out how to just get one iteration of the square wave.  I just want to see the voltage jump up and look at the response and other properties that i mentioned earlier.  Does the attached vi seem to make sense?

0 Kudos
Message 4 of 5
(3,271 Views)

Your code looks good. As far as getting only one iteration, you can create some software logic to focus on one square wave. You might need to know in advance which iteration of the square wave are you interested in. I would recommend you do all this in a post processing data scheme, since your application performance can be reduced if you try to analyze and compare your data while you acquire.

Regards,
Efrain G.
National Instruments
Visit http://www.ni.com/gettingstarted/ for step-by-step help in setting up your system.
0 Kudos
Message 5 of 5
(3,255 Views)