LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Solenoid and a load cell

Hello,

 

I have an application where I am using a load cell to measure the weight of a fluid in a container.  I found some code that works very well for measuring the weight.  http://zone.ni.com/devzone/cda/epd/p/id/5902  

 

My application also involves using a solenoid that opens a valve when a button is pressed and fluid flows out of the container.  I need the solenoid to close when a certain amount of weight has left the container.  I am not sure how to do this.  I am using the compact daq chassis 9172 and a 9237 module and a 9474 module. 

 

Thanks 

0 Kudos
Message 1 of 4
(2,582 Views)

Howdy lyon,

 

How is your solenoid controlled? Does it take a TTL signal where a voltage 'high' (+5V) closes the solenoid and a voltage low (0V) opens the solenoid?
Warm regards,

pBerg
0 Kudos
Message 2 of 4
(2,543 Views)

My solenoid is controlled by switching a solid state relay on an off with a 24 VDC signal.  The solenoid is also powered by a 24 VDC signal.  Voltage high opens the solenoid and voltage low closes the solenoid.

 

Thanks 

0 Kudos
Message 3 of 4
(2,504 Views)

Howdy lyon,

 

In software, you can control a 24Vdc output on the 9474 through a DAQmx digital output task in software. Check the LabVIEW/CVI example finder under hardware I/O » DAQmx for examples on single channel digital output tasks. As to the actual hardware connections, consult the 9472/9474 user manual. It provides figures and explanations.

Warm regards,

pBerg
0 Kudos
Message 4 of 4
(2,480 Views)