03-24-2011 05:47 AM
Hi all, when dealing with discrete time control like the poleplacement method, the sampletime shouldn't necessarily be
as short as possible like in "analog" PID-control.
I want to be able to set the time of how often I am sensing the input and therefore I am using a timed loop.
Something is missing in my file because it won't work.
The propertynode DigNum is not inserted by me, but by the png-software. I have a local variable there refering to the period dt.
Kindest regards,
Lasse
03-24-2011 05:51 AM - edited 03-24-2011 05:53 AM
Hi Lasse,
"Something is missing in my file because it won't work."
Yes, the error description is missing. What is wrong? What exactly doesn't work?
- Instead of using locals you could use a wire or the block in the upper left of the TimedWhileLoop to get dt from it...
- Does the loop spin as fast as you want it to spin or do the ExpressVIs slow down the execution?
03-24-2011 09:37 AM
Oh sorry for that.
Nothing happens.
03-24-2011 09:53 AM
03-24-2011 11:05 AM
Hi all, and thanks for your patience GerdW.
I am using "1 Sample (HW-timed)"
The reason is that I've seen controltutorials where they use a while-loop with "1 sample (SW-timed)" to get a variable dcvoltage, when no control over the time is needed.
Since I am using a timed loop, I supposed that I can use "1 Sample (HW-timed)".
regards,
Lasse
03-24-2011 02:50 PM
Hi Lasse,
"Since I am using a timed loop, I supposed that I can use "1 Sample (HW-timed)"."
Why do you think so? You still use software timing, it's just a slightly different loop construct...
When using "HW-Timed" access you have to define the sample rate before starting the task!