ni.com is currently experiencing issues.
Support teams are actively working on the resolution.
ni.com is currently experiencing issues.
Support teams are actively working on the resolution.
02-12-2014 04:58 AM
Hi,
I'm developing a RT-Application at cRIO-9074 target (using LV 2012). I'd like to control a simple engine throgh PID-controller.
Now I found two possible PID vi's:
1. Real-Time -> Function-Blocks -> Control -> PID
2. Control design & Simulation -> PID
What is the difference between both?
Is it possible, that the first PID-Controller might cause problems when it is running a long time (longer than 12 hours)? I placed the sub-VI with the controller into a timed-loop. After more than 12 hours runtime, the timed-loop didn't excecute. The other loops (not timed) for TCP-IP to the Front-panel did work fine...
I don't know if my problem is caused by the PID.
The other possible reason might be the timing source. Are there any known problems with timed loops and sync to scan engine as timing source? Is there maybe a reinitialisation of the scan engine, that causes a problem?
My long-term test was with compiled startup-application, so I can't state more Debug info.
I'm looking forward to your answers
Fabian
02-12-2014 09:44 PM
Hi FJohn,
I have looked around. Seems there is no difference between them (I could be wrong). Have you installed PID driver in your cRIO? There should be an option to install PID in NI RIO drivers.
Have you tried the second PID? Does it has the same effect as the first?
Something for you to look at as well:
https://decibel.ni.com/content/docs/DOC-4134
Warmest regards,
Lennard.C
02-13-2014 05:17 AM
Hi Fabian,
could you please post the VI which you use for your test?
02-13-2014 09:53 AM - edited 02-13-2014 09:57 AM
Hello,
thanks for your answer.
First time I tried the first PID.
Now I changed to the second. After this I needed to install PID & Fuzzy for RT-Systems (the first controller run without the Toolkit, that is one difference).
In my timed loops I changed the timing source to the 1kHz internal clock (before I had the NI-Scan-Engine as timing source).
The second change I made at the timed loops was to give them different priorities (100 and 101, before was 100 and 100).
I reapeted my long-term-test and it worked for 21hours (until now) without any error.
For now everything seems working. If not I´ll post my timed loop sources (don´t have them now at my local PC...).
Thank you for your suggestion with different priorities
Fabian