LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you generate a pulse train while a counters gate is high?

I am using a NI 6025E/Traditional DAQ/C++  and would like to generate a pulse train on counter 1
while it's gate signal is high. Does anybody have any example code or know which function calls
to use?
 
Any help would be greatly appreciated.
JD
0 Kudos
Message 1 of 2
(2,809 Views)
Hi JD,
A good example that will help get you started is STCgenerateSquareWave.C.  This example is located in C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ctr.  I also found a tutorial about counters that you may find useful.  Here is the link: Generating a pulse train with a counter.
 
A function that could help you with this application is the GPCTR_Change_Parameter function. Further details about the function can be found in the Traditional DAQ C Function Reference Help.  This is located in Start>>All Programs>>National Instruments>>NI-DAQ. 
 
I hope this information helps you with your application.
 
Regards,
Hal L.
0 Kudos
Message 2 of 2
(2,796 Views)