03-15-2014 11:13 PM - edited 03-15-2014 11:40 PM
Hi. I am developing a tank level control system program using Neural Network based controller and trying to compare with PID based controller. I need to do experiment to compare results of these two controllers. In order to do that, I need to developed a scenario of changing the value of setpoint at every 50s. For example:
when t >= 50s , Setpoint = 5
t >= 100s , Setpoint = 4
t >= 150s , Setpoint = 6
t >= 200s , Setpoint = 0
Can I use the Elapsed Time Express to execute this and how? I know that PID have the Setpoint Profile that can execute this, but for the Neural Network Controller can this be done using the Elapsed Time Express?
Thank you.
03-17-2014 05:04 PM
For the timing, you could us a state machine set up. In LabVIEW, a state machine is case structure within a while loop, where case structure represents states. Enums are typically used to move between states. You could have four states for the for timing states. When the Time Elapsed is True, you can move to the next state that wires a True to the Elapsed Time reset and pass a new Set Time. Then when elapsed time is true again, reset and put the next state. Use shift registers to pass data between loops.
03-19-2014 12:13 AM
Hi there. I have solve the problem. Thank you for your help! This is how I solved it. I simply just add formula node inside the while loop and it works!
03-19-2014 09:28 AM
Glad you got it working!