LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Solenoid Control with LabVIEW

Solved!
Go to solution

Hey everyone,

 

Im brand new to LabView and I am in need of some assitance. Ive attached a picture of my block diagram setup. I need help with making the LabView code in order to help run this setup. I want to use LabView to activate my photoelectric sesnor, which when tripped will activate my solenoid valve immediately. The maximum allowable time between the photoelctric sensor being tripped to the valve opening cannot be greater than 50 milliseconds. I would also like to active my high speed camera 1 second prior to the electric sensor being activated. I have included the parts I am using in a list below. Thanks for all the help in advance.

 

Solenoid Valve: SV-282 from Omega

Photoelectric Sensor: Comet 14101A6517

Output cDAQ: NI-9472 (powered by external power supply "NI PS-15 24V")

Input cDAQ: NI-9421

Camera: Phantom v7.3 (connected through ethernet)

 

In summary: with labview, activate camera, activate photo sensor which when tripped will open solenoid valve immediately.

 

Shervin Aslani

0 Kudos
Message 1 of 15
(6,631 Views)

What help do you need?  Do you want us to write the program?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 2 of 15
(6,628 Views)

Duplicate Post

 

Don't start a whole new thread with the same question.

0 Kudos
Message 3 of 15
(6,624 Views)

Any similar examples that would help give me a basis of where to start. Just looking for help with a starting point or any pointers since I am unsure of how to tackle this program. 

0 Kudos
Message 4 of 15
(6,616 Views)

 

What do you mean by photoelectric sensor? How woulkd LabVIEW activate this? Sorry Im confused.

 

Else

 

Look into using Daqmx examples in the labVIEW help

 

I think you want to look into digital I/O examples.

 

 

If you want to monitor the photoelectric sensor and if it provides a digital ouitput then you can use your 9421 daq device (assuming it can read digital I/O)

Then use the 9472 daq to make the output you need to click the solenid. Thus two separate tasks would be defined in the labview

(again look at daq examples)

 

:edit  Sorry now that I can see your diagram the answer is you must have working LabVIEW daq mx examples to get started.  

 

Message 5 of 15
(6,601 Views)

24V would come from the NI power supply into the 9472cDAQ. The 9472 cDAQ would send a 24V signal to photoelectic sensor when told to do so. How would I tell Labview to allow the voltage to the sensor? Thanks for the recommendation, ill look into some of these exmaples.

0 Kudos
Message 6 of 15
(6,594 Views)

Exactly

 

Over the years when I have no idea how to use labVIEW daq I just go and look it up in an example. They have many good ones.

 

Message 7 of 15
(6,591 Views)

I'm confused as well.  Why are you sending a signal to a sensor???  Provide power to the sensor all the time and read the digital output from it. Then, send a signal to the solenoid to activate whatever physical action you require when the sensor is triggered.

 

EDIT:  One more thing.  Since LabVIEW lacks any sort of time machine functionality you're going to have a fundamental problem activating your camera 1 second PRIOR to your trigger signal. Smiley Wink  Usually the answer to that sort of problem is solved by recording the video data constantly in a ring buffer and then when you receive your signal you grab the data.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 8 of 15
(6,571 Views)

Sorry I forgot to mention that there will be a spinning wheel with reflective tape that will trip the sensor. The wheel must reach its maximum speed of 800RPM before the sensor can be activated to allow it to be tripped. Therefore, I cannot leave the sensor running otherwise it would trip before the wheel reaches its maximum rpm.

0 Kudos
Message 9 of 15
(6,567 Views)

Curious to know if anyone has worked in anything similar to my project that may have some tips and ideas on how to go about doing this aswell as how to keep the processes fast.

0 Kudos
Message 10 of 15
(6,562 Views)