03-11-2010 05:25 AM
Solved! Go to Solution.
03-11-2010 05:33 AM
03-11-2010 07:07 AM
03-11-2010 08:26 AM
03-11-2010 03:35 PM
Hey Rebel320,
You would need to put your PID VI inside of the while loop so the gains would be updated as the VI is running.
03-12-2010 05:56 AM
Thanks for your help guys, I have the pid vi inside the while loop now and ran it with the "highlight execution" The ouput from the PID will still only run at the start and will not update any more after that?
03-12-2010 07:27 AM
03-12-2010 07:58 AM
03-12-2010 08:07 AM
Moving the PID loop into the while loop solves part of the problem, but there's another one: how do you intend to select between using the Duty Cycle control, versus the PID output? The way you have it wired right now, the PID output is never used. When you convert the dynamic data (the output of merge signals) to a U32, it just takes the first signal (the Duty Cycle control) and ignores the second signal (your PID output). As a side note, dynamic data has to be one of the worst new ideas in LabVIEW, because it allows this sort of confusion.
The simplest solution here is to remove "Merge Signals" and replace it with a Select. Create a new button on your front panel that selects whether to use manual or PID control, and use that as an input to the Select.
03-12-2010 10:28 AM
I will give that a try, thanks.I have tried putting in a third case in the small true/false case structure but that wont work.
Thanks for your help, I really appreciate it. Regards