12-11-2008 04:07 AM
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?
12-12-2008
05:16 AM
- last edited on
06-30-2024
05:26 PM
by
Content Cleaner
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.