Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

6024e pulse generator

I'm porting an old application developped with Visual Studio 6.0 C++  in a new one with Visual Studio 2005 C# and with NiDAQmx 8. The old application drives an ouput to generate some pulses with a period of 15usec. With the new application I'm not able to generate the same period. I'm developping a test application to see the maximum rate and it's 100usec.

The aplication is the following:

 

..... 

Task task_out = new Task();

task_out.DOChannels.CreateChannel( 

                                 "Dev1/port0/line3",

                                 "",

                                 ChannelLineGrouping.OneChannelForAllLines);

digital_writer = new DigitalSingleChannelWriter(task_out.Stream);

task_out.Start();

while (true)

{

    digital_writer.WriteSingleSampleSingleLine(false, false);

    digital_writer.WriteSingleSampleSingleLine(false, true);

}

.....

 

How can I reduce the period of the new pulses? I have to use other function?

0 Kudos
Message 1 of 2
(2,837 Views)

Hi mais76!

There are several examples that show how you can generate in C#  digital output pulses with initial delay, high time, low time, and the idle state all software configurable. You can find them at the following links:

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MXxSAM&l=en-US

 

Best regards,

Serena M.

0 Kudos
Message 2 of 2
(2,826 Views)