Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Close loop control

I will try to describe what I am doing in my application:
I have electro-mechanical vibrator powered by amplifier.
I feed amplifier from signal generator(in that case from NI9263) and read signal from accelerometer(through NI 9233).
I need to stabilyze amplitude of vibrations as there is some drift with time.
 
I have used some examples I found to create VI.
By some reason when I put both into one while loop it does not generate signal.
Could you, please take a look and give some comments on it.
Currently I am stuck on this close loop control.
I would like to stabilize amplitude within 1%. What is the best way to do it?
0 Kudos
Message 1 of 3
(3,117 Views)

Hi

I have had a look at the program that you posted and the reason that it doesn't work when you put the two programs into one loop is because of the following; you are doing the Acquisition from the accelerometer using the high level DAQ assistant and the signal generation from the 9263 using the low level DAQ functions. I would suggest performing both operations using the low level DAQ functions and therefore changing the code that you are using for the acquisition.

I would also suggest looking at some examples in the NI example finder that show how to implement a control loop using the DAQ vi's. This will give you a good starting point. You can find these examples by browsing to Hardware Input and Output>>DAQmx>>Control>>General in the NI Example Finder.

I hope this helps.

Regards

Beejal S
NI UK & Ireland
0 Kudos
Message 2 of 3
(3,072 Views)
Thanks a lot Beejal,
I will take a look later into this low level DAQ functions. So far I have application that works.
Sergey.
0 Kudos
Message 3 of 3
(3,066 Views)