LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Camera and Light

Solved!
Go to solution

Hello! I am using a camera and a ring light. I want the camera to take pictures at a set time interval. I only want the ring light to turn on when the camera is taking an image, otherwise it should remain off. I'm new to labview, so I'm not sure what to do exactly. Thank you for the help!!

0 Kudos
Message 1 of 9
(1,656 Views)

Well, that's not really a LabVIEW questions. You need a way to control your camera and your ring light so we need to know how these are interfaced to the computer you are using. Do you have drivers? Do you want to control a relay for the ring light? What kind of hardware are you using?

 

Once the hardware connectivity is sorted out, programming will be trivial.

Message 3 of 9
(1,636 Views)

The camera is an USB Camera. The ring light is separately plugged in, and I am unsure how to connect it. It is not connected to the camera currently. How would you recommend connecting it?

0 Kudos
Message 4 of 9
(1,618 Views)

Do you have experience using LabVIEW?  Do you understand how to control basic hardware (A/D, D/A, digital I/O) using DAQmx (which you will probably need to control the Ring Light)?  Have you been using (meaning "writing a significant amount of LabVIEW code on a daily or weekly basis) for a number of months?  If so, you may be ready to "dive into" LabVIEW Vision, which (for doing other than "vanilla" operations, can get complex very quickly).

 

MAX (the Measurement and Automation eXplorer) is your Friend for both the Ring Light and the Camera.  You didn't describe how you plan to "control" the Ring light -- does it have a TTL Input that you can use to turn it on and off, or is it only a "Plug it In" to turn it on?  If the latter, you will need to get some kind of device that lets you turn on a light from your PC (you can probably find such things on the Web).

 

If your Camera is a simple USB WebCam, and you have LabVIEW Vision with IMAQdx, you should be able to acquire timed images.  I'm glad I had several years of LabVIEW experience before a colleague asked me for help with his LabVIEW Vision task -- between the two of us, working together, we learned a lot relatively quickly.

 

Bob Schor

Message 5 of 9
(1,587 Views)

Hello! The intensity of the ring light is controlled through a dial on the ring light. I was thinking about a way to turn the power of the ring light on and off through labview. Do you think this can be achieved? I was thinking connecting the light to the computer through an adaptor and controlling it be turned on and off through this way. Thank you for the help!

0 Kudos
Message 6 of 9
(1,579 Views)

@sheetalp22 wrote:

Hello! The intensity of the ring light is controlled through a dial on the ring light. I was thinking about a way to turn the power of the ring light on and off through labview. Do you think this can be achieved? I was thinking connecting the light to the computer through an adaptor and controlling it be turned on and off through this way. Thank you for the help!


You just need a digital output and a relay module to control a 110V device. There are also plenty of wifi controlled smart plugs available for home automation, and if you know the API, you could just interact with them directly.

0 Kudos
Message 7 of 9
(1,574 Views)
Solution
Accepted by topic author sheetalp22

It depends a lot on what sort and quality of equipment you have. We usually use special power supplies meant for different sorts of ring lights. If you just want a fixed light intensity that can be a simply constant current power supply but if you want to regulate the LED intensity you need a good controllable current power supply. Changing the voltage for LEDs does almost nothing. To low of a voltage and they simply don't light up and as you increase the voltage they suddenly light up and with only minimal voltage increase get very bright and with a little more voltage increase they die very quickly unless they have their own current control built in, which makes them however a lot more expensive. And good adjustable current power supplies are however not very cheap either.

 

So assuming you have such a power supply there are two possibilities really. The power supply only has a dial that lets you regulate the intensity manually or it has an external control, usually a voltage input that you can use to control the intensity. Then you need an analog output signal that you can control from your computer. That means you need to have a DAQ card of some sorts. In very special cases your camera may come with an auxiliary connector that provides such an analog signal. Such cameras are however very specialist and even more expensive than anything we talked about so far. And controlling that auxiliary port from the computer is often very difficult to impossible without special camera vendor software. To do that from LabVIEW is almost never possible since the necessary control properties are very seldom documented by the camera manufacturer without a large volume OEM contract.

 

So what hardware do you have? How have you connected it to the computer? How far have you been able to get even some basic images into LabVIEW? Where are the VIs you programmed to do that? I ask for two reasons about these VIs. The first to see what you have done and the second to get an idea about your expertise of programming. It makes very little sense to talk about super advanced techniques and interfaces here when the code you have so far is nothing more than an existing LabVIEW example or looks even worse.

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 9
(1,539 Views)

I have a USB-6211 device which will be used a trigger for the ring light. Would that work? I don't know how to set it up in labview to turn on and off in a set time interval.

0 Kudos
Message 9 of 9
(1,494 Views)