LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Solenoid Valve User Controlled Program

Hi all!

 

I am brand new to LabVIEW and only have a basic knowledge of how it works.  I have to write a program that controls a sinlge solenoid valve, graph the voltage v time, and allow the user to control how long the solenoid valve should be open for.

 

Any form of help would be much appreciated!

 

Solenoid Valve:  Parker 71215SN1MN00N0C111P3

with volts/hz: 110/50 - 120/06

watts: 10

 

Eaton D96210ACZ2

3-32 VDC

 

DAQ: NI USB-6009

 

I have all the wiring completed and have attached a picture of the setup.  The wires are connected to the 14 and 15 slot in the DAQ, A0I and A0O.

 

0 Kudos
Message 1 of 5
(3,442 Views)

Hi Alex,

 

I like the way you are building up electric circuits: with open ended wires and no touch protection! 😄 Btw. where's the power supply for your valve?

And are you sure about the pins you used in your USB6009?

 

On the problem to write a suitable VI: start by looking at examples VIs from ExampleFinder. They explain most of your problems…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,434 Views)

First off, let's start with the wiring. I think you're missing a key component: AC Power. That diagram on the relay shows you need power in line with the load (the solenoid) and then connected to the output of the relay. Do you have power wired in there somewhere that I'm missing?

 Dang it GerdW beat me to it again.

 

Yeah, you should probably put some sort of protection around the wires by the terminals, so you don't short the ends together. Maybe just cut a little off the end and leave less exposed wire.

 

Like GerdW said, you need to take a look at the pinout of your 6009. A0 and A1 are two seperate channels. You actually want to use a digital output for this application. The User Guide has all the information you need.

 

Refer to the "Where to Go from Here" section of the User Guide to learn how to do the actual progamming/automation using LabVIEW or MAX.

 

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 3 of 5
(3,427 Views)
The power comes in through the DAQ when it is plugged in. At least that's how I understand it.

I am positive that the pins are correct in the DAQ.
0 Kudos
Message 4 of 5
(3,421 Views)

@AlexBoosh wrote:
The power comes in through the DAQ when it is plugged in. At least that's how I understand it.

I am positive that the pins are correct in the DAQ.

That's not how this works. That's not how any of this works.

 

A relay does not supply power from the input to the output, it just opens or closes the output connection. The key is all in that diagram on the side of the relay.

 

See my edited post above regarding those positively correct pins.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 5 of 5
(3,415 Views)