|
Help with basic algorithm on LabVIEW
I'm not too good with LabVIEW and I'm using it to implement some code to run on the cRIO.
The very basic algorithm I have to implement is:
a) Apply a user-defined setpoint to a control system, then measure its output and control effort for a user-defined number of samples, sampling at a user-defined sample time (ie, 40 samples at 20ms).
b) Apply a different setpoint that is dependent on the data acquired at step a), then perform the same measurements.
c) Using the data measured at a) and b), along with some other user-defined parameters, calculate stuff (I'm using MathScript for that), and iterate everything all over again, for a number of user-defined times.
Any ideas on what's the best way to do it? Please ask for clarifications, if needed.
__________________
Manoel Flores da Cunha
Mentor
Brazilian Machine
Team # 383
|