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: 

Lab view control code for bottle filler

Hi,

Just recently started working with Labview and I am using it as the control for a project. I have listed the purpose and components below.
If anyone has any tips, suggestions or set up for Labview that will control all or any of the below it would be appreciated.

Noel 


Function

Automatic bottle filler. Liquid to be inserted and 6 bottles to be in system.

Components

  • 20Kg Load Cell
  • DC Geared Wiper Motor (24V)
  • Proximity Sensor
  • Labview DAQ
  • Water Valve

Process to be controlled via Labview

  • User loads 6 bottles into system, and begins process.
  • Control Speed of motor (PID Control)
  • Proximity Sensor used to define position of bottle and turn off the motor
  • Load cell detects mass of bottle plus liquid volume of water in bottle
  • Water Valve opens when load cell detects insufficient volume of liquid
  • Load cell continues to detect volume of liquid until set level is reached
  • Water valve closes when load cell detects volume has reached set level
  • Motor starts and repeats process with successive bottle
  • Information from above used to count when 6 bottles have been through the process and all contain the required volume of liquid. System off if true
0 Kudos
Message 1 of 5
(3,876 Views)

a state machine would be perfect for your application

Message 2 of 5
(3,870 Views)

here's an example code...

 

Spoiler
bottle filler sim_FP.png

 

Message 3 of 5
(3,843 Views)

Is this using SCADA(DSC module)? If not then can you please upload it?

0 Kudos
Message 4 of 5
(3,340 Views)

Did you actually look at the code???  Apok's example is just a simple state machine framework to explain to the original poster how to start his project.  It contains no code to actually move or sense the bottles position or weight.  There's nothing in it that interfaces to any hardware, SCADA or otherwise.

 

If you need a complete and operational system design based on the NI DSC module I suggest you post your request in the jobs forum or contact an NI representative for advice.  This forum is for helping people learn how to use LabVIEW.   Smiley Wink

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 5 of 5
(3,331 Views)