From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID application through inverter

hello everyone,

 

Greetings. I want to control pump flow rate using PID controller through an inverter. I bought an inverter (LS SV015iG5A-2) and when I connected it to the computer through USB, a COM & LPT entry showed on my computer. I have already made a LabVIEW PID code (attached). But I can't understand how can I make an interface between LabVIEW and that inverter.

 Any kind of suggestion is appreciatable. TIA.

 

0 Kudos
Message 1 of 8
(2,767 Views)

Hi Milon,

 

I bought an inverter (LS SV015iG5A-2) and when I connected it to the computer through USB, a COM & LPT entry showed on my computer. … But I can't understand how can I make an interface between LabVIEW and that inverter.

Well, there is a COM port to communicate with your inverter.

I guess all the details of this communication is explained in the manual of your inverter: did you read it?

(Just a pure guess because of lack of information: your inverter is using some kind of Modbus protocol!?)

 

On your VI: There is a huge problem in the VI because you missed to THINK DATAFLOW! (The queue will not work as intended.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(2,763 Views)

hello GerdW,

 

Thanks for your reply. I have connected the inverter to the computer through an RS232 converter and install RS 232 LabVIEW interface. I tried to check the connection by a basic  VISA code (picture attached).You know, I want to control pump flow using PID controller and You helped me to make a LabVIEW code for PID (code attached to the 1st post).  Now the problem is, how can I insert the inverter in that code to control PID action?

 

Any suggestion or similar examples are welcome. TIA.

0 Kudos
Message 3 of 8
(2,715 Views)

Hi Milon,

 

how can I insert the inverter in that code to control PID action?

Notes:

- Usually you use the PID to control the inverter/pump, not the other way around…

- You need to send the PID output (which should be pump speed or similar) to your inverter! Right now you only send this "1" constant…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 8
(2,712 Views)

Hi GerdW,

1. In my PID code, input DAQ will be connected with water level sensor and output will be connected to the inverter which will control the pump. How can I connect the inverter with output DAQ? As it needs separate VISA code to connect to the computer through RS232. Maybe you have understood...

 

2. in 2nd post you said, there are some problems in queue lines. Would you make that correction, please? 

 

Thanks in advance. 

0 Kudos
Message 5 of 8
(2,706 Views)

Hi Milon,

 

1. You need to replace the DAQAssistant2 by some VISA code to send the PID output values to your inverter(s). Are you using more than one inverter when you have set your PID to "array" mode? Are you using more than one level sensor - or why do you convert the DAQAssistant reading to an array?

 

2. As you only attach an image I cannot to any changes using LabVIEW. Hint: learn to THINK DATAFLOW!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 8
(2,704 Views)

Hi Mr. GerdW,

Thanks for your quick response. I will use 2 level sensors, that way I used the array option. and I will also control two inverters for two separate pumps. I have attached the PID code here. I have a humble request to you. Would you please modify the code according to your suggestion? Actually, I am not very expert and have to finish my research very soon. Please, don't reject my request....

0 Kudos
Message 7 of 8
(2,699 Views)

Hi Milon,

 

as I said before: you need to replace that DAQmxWrite by VISAWrite function(s) when your inverters are connected by COM ports!

check.png(Don't forget error handling for those VISA connections!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 8
(2,690 Views)