LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tracking feedback help please!

I'm very new to Labview and I am looking for a bit of help, or at least to be pointed in the right direction.
 
I am trying to use labview + the labjack interface board to control the load from a DC generator. At the moment I have a very simple analogue out signal from the labjack feeding to some power electronics to very the load power. The analogue signal is controlled via a simple slider at the moment. I am also using the labjack to measure the power and voltage accross my load resistor BUT: I have no idea how to impliment any form of feed back.
 
What I want to do is measure power, vary the analogue out, measure power again and compare it to the old power. If it has gone up I want to keep changing the anaglogue out in the same direction. If the power goes down since the last power reading, I want to start moving the analogue signal in the other direction.
Basically what I need is something that can perform a simple hill climbing algorithm.
 
Please help as I am finding labview very hard to learn on my own.
 
Thanks
0 Kudos
Message 1 of 7
(3,165 Views)
Bump, please help!
0 Kudos
Message 2 of 7
(3,120 Views)

Hello,

To gain feedback from previous loop iterations you can use Shift Registers. Go to the LabVIEW help and search for 'shift registers' where they are explained in detail with examples and how they can help you. You can use some sort of comparison mathematics to alter your signal generation depending on the feedback you get from your signal aquisition.

Hope this helps,

Tom
NIUK

0 Kudos
Message 3 of 7
(3,118 Views)

I have not heard of labjack, so I took a few seconds to look it up.  Here is a link to their website for other forum viewers...

http://www.labjack.com/index.php

You may want to specify what device you are using...

I noticed that they have a dicussions forum on the labjack web page that deals with labview.  This may be another good source for assistance too.

0 Kudos
Message 4 of 7
(3,115 Views)
Hey, I'm using the labjack U12
 
 
I will look into the shift registers. Whats a good way to impliment the mathematics for comparing and altering my output signal?
 
Thanks
0 Kudos
Message 5 of 7
(3,108 Views)
Sounds like you are talking about derivative control:

http://en.wikipedia.org/wiki/PID_controller

I made (and attached) a basic example that demonstrates proportional-derivative (PD) control with the LabJack U12.  It uses discrete LabVIEW arithmetic blocks for the math, but you could use a formula node if you prefer.
0 Kudos
Message 6 of 7
(3,095 Views)

Thank you very much, I will have a go with that and see how I get on.

0 Kudos
Message 7 of 7
(3,090 Views)