Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger pulses with delay

Solved!
Go to solution

I have a similar issue where I'd like to control the timing of when certain channels generate a pulse relative to another, but my problem with this solution is that I am using all of the counter channels available to me for outputs.  Is there any way to do something similar to this without using up a physical counter channel?  Thanks.

0 Kudos
Message 11 of 14
(1,294 Views)

Hi Joe,

 

I'm assuming you are using some NI hardware with DAQmx, and need a hardware timed delay.

 

Unfortunately you would typically need a counter spare to deal with this, as with the previous solution.

 

There is a start delay property for the DAQmx trigger which you can try using your device, but I don't think it will work with a counter task.

 Trigger delay.png

 

When I use this on a counter task on my machine, it gives an error, but it is worth a try as it will only take a few minutes to paste in the snippet and run it.

 

I suspect that you may need some hardware with additional counters, or a multiple card system with synchronisation in order to do what you are trying to do.

 

Let me know if there are any further questions.

 

Ian S
Applications Engineer CLA
National Instruments UK&Ireland
0 Kudos
Message 12 of 14
(1,280 Views)

Hi Ian,

 

I have attached the VI I am using for my camera/strobe light synchronization application. I have incorporated your suggestions, but lately I realised that my images are actually doubly exposed, which means that the two light pulses generated at ctr0 are within each frame and I am generating light pulses at ctr0 at the same frequency as the input at PFI15 (which is the camera exposure signal). It should be half this frequency. I have checked with an osciloscope ant the timing between the exposure signal at PFI15 and the pulse output seems to be in order.

 

Could you please check the VI if there is a problem? In the meantime I will try to verify the timing of the camera with the manufacturer.

 

Best regards,

Kostas

0 Kudos
Message 13 of 14
(1,262 Views)

Hi Ian,

 

I think I found the problem. I need to skip every second trigger. Could you help me implement it?

 

Best regards,

Kostas

0 Kudos
Message 14 of 14
(1,257 Views)