Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I generate a continous pulse train with an initial specified delay on a DAQ STC E series ??

I have tried using an additional single pulse to trigger the pulse train, but both my ND_counters are used up for the two pulse trains.
0 Kudos
Message 1 of 3
(3,367 Views)
Hello,

To create a pulse train of arbitrary delay internally you will definitely need both counters. However, E Series boards have a 3rd lesser-known counter, which acts as a frequency generator. You would use CTR_FOUT_Config() to configure this frequency generator (NI-DAQ C Reference Help is a good resource). It is only a 4-bit divide down counter where the input clock is the internal 10MHz or 100,000kHz clock. Although you can only start this counter through software and there isn't much you can control besides the internal clock and the 4bit divide down number, it might serve its purpose as the first frequency generator. This will free up your second full-functional counter to act as the delay for your second pulse generation.

Otherwise you will nee
d an external delay trigger for the counters or another board (counter/timer board PCI-6601/2).

Do both your output signals have to be delayed? Let me know if I can further help.

Ron
0 Kudos
Message 2 of 3
(3,367 Views)
Hi Ron,
Thanks for the advice. I am working on your idea. In the meanwhile, I thought of another way to do it. If I invert one of the signals, then my application will work just fine. I tried doing it using

Select_Signal(iDevice, ulGpctrOutput0, ulGpctrOutput0,
ND_HIGH_TO_LOW)
Select_Signal(iDevice, ulGpctrOutput1, ulGpctrOutput1,
ND_LOW_TO_HIGH);
But apparently this does not work on the GPCTROutput. Do you have any ideas on this??
Thanks
Supriya
0 Kudos
Message 3 of 3
(3,367 Views)