07-17-2019 11:42 AM - last edited on 05-08-2024 10:28 AM by Content Cleaner
Hi,
I am using LabVIEW last 1 and a half years for data acquisition and some actuators control. Recently, I need to apply the PID based control method. I saw some sample coding https://www.ni.com/en/shop/labview/advanced-features-in-pid-tuning.html here. I am curious to know the instrumentation process. I know, I need to use relay/SSR/SCR but confused about microcontroller. Would anyone suggest me about the actuator controller, please?
Solved! Go to Solution.
07-17-2019 03:53 PM
07-22-2019 10:12 AM
Dear GerdW,
I want to control an AC powered pump flow rate. I need to control (increase/decrease) the power. Of course, NI USBs can't do that. I saw this video (https://www.youtube.com/watch?v=fkbt85mBzuM) but can't understand the communication with the actuator (pump/heater/fan...etc). Would you please explain the fact?
More specifically, number 1 (in the picture) task/channel is connected with the sensor. How about number 2? Is it connected with an actuator (fan/heater/pump) or with the same temp sensor?
07-22-2019 02:01 PM
Hi Milon,
can't understand the communication with the actuator (pump/heater/fan...etc). Would you please explain the fact?
It's explained at about 01:30 to 02:00…
How about number 2? Is it connected with an actuator (fan/heater/pump) or with the same temp sensor?
Apparently it's connected to some "Output" rather then your "temperature" input…
07-23-2019 01:13 AM
Dear GerdW,
It's explained at about 01:30 to 02:00…
Yes. He applied PID logic through a DC (5V) fan. But I want to control AC(220V) actuator(Fan/Heater/Pump). My question is here. How can I control the output for AC current?
07-23-2019 01:23 AM - edited 07-23-2019 01:24 AM
Hi Milon,
Yes. He applied PID logic through a DC (5V) fan. But I want to control AC(220V) actuator(Fan/Heater/Pump). My question is here. How can I control the output for AC current?
Use any device capable of controlling such voltage/current. That may be a simple relay, a SSR, or a full-blown VFD. Even a fully equipped remote-controllable AC power supply will work…
This is not a LabVIEW-related question. When you have problems deciding how to control 220Vac power supply you REALLY should take advice from hire an electrician!
07-25-2019 02:43 AM - edited 07-25-2019 02:55 AM
Dear GerdW,
Greetings. In my research, I want to control the pH level of water. I want to apply the PID control method. In the control system, I have 1 pH sensor and 2 pumps. One pump for the light acid solution and another for distilled water. If the pH level goes very low, distilled water will be added to maintain the target pH level. It is like a heating-cooling system.
As I am facing some instrumentation problem for PID controller, how about to apply only the proportional controller considering a hysteresis limit (like +/- 5% error consideration), where the output adjustment will be proportional to the difference between the present and desired parameter values over time. I have experience about actuators control using Arduino and relay switch (Arduino-LabVIEW interface) and I saw Single-Input, Multiple-Output (SIMO) PID example. I wish to combine these two. Is it possible? Actually, I want to use my 2 phase 220V AC pump, instead of the 3 phase variable flowrate pump. Pumps will be on and off based on the time like the present pH value is 10 and the set value is 5. I need to decrease the pH level. Suppose, it will take 5 sec to achieve the target level/value. But after 1 sec, the pH level came to 8 and the required time is 3 sec then. After 1 sec (total 2 sec), the ph level became 6 and required pump operating time 1 sec. The required time will be calculated based on the feedback process.
Hope, you have understood. I am sorry for my poor English efficiency.
07-25-2019 03:05 AM
07-25-2019 03:33 AM
Dear GerdW,
Thanks for your instant reply. Actually, I have understood the condition theoretically but can't make the LabVIEW code. Would please edit my proportional controller code (only basic modification, then I will do myself)?
Thanks in advance.
07-25-2019 03:49 AM - edited 07-25-2019 03:52 AM
Hi Milon,
your pumps most probably only need positive control values:
So depending on sign of PID output one device gets a positive control value and the other gets just zero.
(When you just switch on/off the pumps now you could even use the ">=0" function to decide which pump to switch on…)
I would also implement a simple deadband range from -5…+5% PID output to limit the number of pump switch on/off operations.