LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling laser on/off with labview and DAQ

I am trying to control the power of a simple 50mW laser via my mydaq but am having some troubles. When i connect the laser straight to the 5v supply terminal and the digital ground the laser lights up perfectly. But when I run my VI with the laser hooked up to the proper channels it will not light up. I am connecting the laser through the digital IO and the digital ground as per an LED tutorial I found. Is it possible to control the power to the 5v terminal? I need to be able to cycle on and off the power to keep the laser from overheating. 

 

Here is the quick totorial I followed: 
https://forums.ni.com/t5/Example-Code/Output-Light-Using-a-Basic-5mm-LED-NI-myDAQ-and-LabVIEW/ta-p/3...

 

Any help will be very appreciated!

0 Kudos
Message 1 of 3
(3,771 Views)
It's very doubtful that the simple digital output can provide enough current for your instrument. Your ladder is nothing like an LED. Have you looked at the power requirements? Have you looked at current specs of the digital I/O?
0 Kudos
Message 2 of 3
(3,757 Views)

I, too, think the current required is probably too high for the digital i/o.  You could create an amplifier circuit with an op-amp or transistor.  There are thousands of tutorials on the web for a basic amplifier circuit.

0 Kudos
Message 3 of 3
(3,729 Views)