Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a programmed continuous pulse train from CTR 0 OUT by using Win7(64bit) + PCIe-6351(X-Series) + VB6

Solved!
Go to solution

I would like to program a pulse train unit and generate it repeatingly from CTR 0 OUT port.  Our environment is Win7(64bit) + PCIe-6351(X-Series) + VB6.

 

There are some sample code for VB6 in the NI-DAQmx 9.5.5 install CD, and I found the sample code for a continuous pulse train generation.  In that sample, they use DAQmxCreateCOPulseChanFreq function for generating the pulse.  It seems the frequency and duty can be changed by using this function, but the wave form can not be changed flexibly.

 

I was wondering if someone could teach me how to generate the following repeating pulse train as a sample.  I would like to know which function should be used to set the wave form data to the buffer, and which function should be used to start generating the repeating pulse train.

 

  1. Generate 2 pulses which low time = 3us and high time = 5us,
  2. Generate 3 pulses which low time = 4us and high time = 6us,
  3. Generate 4 pulses which low time = 5us and high time = 7us,
  4. Go back to 1.

 

Thank you in advance.

 

0 Kudos
Message 1 of 2
(7,413 Views)
Solution
Accepted by topic author 匿名希望

Solved! By using a sample code for VB.NET.  Thank you.

0 Kudos
Message 2 of 2
(7,364 Views)