Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69373

Pump Test Loop - Data acquisition and Modbus

$
0
0

Hello, I am working on a labview program for measurement and control of a simple pump test loop.

 

The VFD that controls the motor is connected to a pc with an rs232-usb connection and controlled via LabVIEW using the modbus library.

Sensors that measure pressure are connected to a NI-9203 module in a NI-9174 cDAQ chassis.

 

Please see attached vi for the control system. The current program lets me control the speed of the pump and will automatically shut down the pump should the pressure in the system increase or decrease, in addition to logging the data from the sensors and motor. Due to pressure pulsations I am using an averaging filter to smooth the data from the sensors.

 

My issues are that i would like pressure sensors to sample and log data faster than the execution time of the while loop (~160 ms). At the moment im using a 200 ms wait in the while loop and a sample rate of 5 for the sensors to sync them with the time stamp and data from the motor. I'm looking for a better way of doing this.

 

Another issue is that i sometimes get Error 56 - the network operation exceeded the user-specified or system time limit, which i guess is because the communication with the vfd times out. I have a suspicion that it might be the rs232-usb converter that is causing the problem. 

 

With regards to solutions, purchasing different hardware or software is an option.

 

 

 


Viewing all articles
Browse latest Browse all 69373


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>