LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger a pulsed laser

I have written a simple labview code that is supposed to trigger an ND:YAG pulsed laser. The DAQ sends some signals which can be observed on a scope but when the DAQ is connected to the external TRIG of the laser, nothing happens; it doesn't trigger the laser. I am wondering if I am doing something wrong. Any help would be appreciated.

I have attached the code. Thanks

0 Kudos
Message 1 of 16
(956 Views)

What is the voltage level and pulse duration required for the LASER to trigger? Can you share the manual for the LASER driver or control interface?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 16
(938 Views)

Hi ksarpong,

 


@ksarpong wrote:

I have written a simple labview code that is supposed to…


  • Why is the "No. of shots" control orange? It should be a blue integer value, don't you think?
  • Why is there no error handling at all? (Did you try to learn from all those DAQmx example VIs in the example finder?)
  • Why do you need to create and kill the DAQmx task in each iteration of the inner loop?
  • Right now there is NO WAY to set any timing for your "pulse" output! You start the task, output a TRUE, output a FALSE and kill the task AS FAST AS POSSIBLE in each iteration…
  • Which (DAQ) hardware do you use?
  • As asked before: which signal is required by your laser driver?
Best regards,
GerdW


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

From the manual (pages 33-34), the laser requires 10-20 microsecond pulse width and 0 to +5VDC TTL signal. Interestingly, I was able to trigger (using the same code) when the signals are sent to the flashlamp trigger IN but not when it is sent to the Q-switch trigger IN. I want help to be able to trigger using the Q-switch trigger IN, that way the pulse-pulse shots are quite stable. I have attached the manual for the laser here and all that is needed are on pages 33-34. Thank you.

0 Kudos
Message 4 of 16
(889 Views)

Interestingly, the code works when the signals are sent to the flashlamp but not when the signal is sent to the Q-switch. 

0 Kudos
Message 5 of 16
(880 Views)

With only a brief look at the manual, page 34 seems to suggest that you'd want to provide precisely-timed pulse signals to BOTH the Flashlamp and Q-Switch inputs for best results.

 

Precise timing of 2 signals will require some kind of hardware-based timing rather than your present approach of software timing.  I would personally approach this with counter tasks, but a hardware-timed digital output task might also be a viable approach.   

 

What DAQ device(s) do you have available to use for this app?

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 6 of 16
(879 Views)

An image of the DAQ device I am using is attached. Thanks

0 Kudos
Message 7 of 16
(862 Views)

@ksarpong wrote:

An image of the DAQ device I am using is attached. Thanks


This image is not really helpful, the model of the DAQ is the information required.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 8 of 16
(858 Views)

M/N: USB-6003

P/N: 15442D-01L

S/N: 1F3CF06

Thanks!

0 Kudos
Message 9 of 16
(852 Views)

You got a "low-cost" DAQ, which means the features are also basic and limited. 

 

As per your LASER manual, you need to send 150us spaced pulses to FLASHLAMP and Q-SWITCH

 

santo_13_0-1717174914468.png

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 10 of 16
(841 Views)