I have a USB 6001 device and try to use the digital out channels.
My (C#) code is:
m_digitalWriterTask = new NationalInstruments.DAQmx.Task("DigiOut");
m_digitalWriterTask.DOChannels.CreateChannel("Dev1/port0","", ChannelLineGrouping.OneChannelForAllLines);
m_digitalWriterTask.Timing.SampleTimingType = SampleTimingType.OnDemand;
m_digitalWriterTask.Control(TaskAction.Verify);
m_digitalWriter = new DigitalSingleChannelWriter(m_digitalWriterTask.Stream);
m_digitalWriter.BeginWriteMultiSamplePort(true, dataOutArray, DigitalWriterCallBack, null);
This works.
My question is: I am writing an array to the output but I cannot configure the sample interval or sample frequency for the samples in this signal.
Is there a way to do that?
- I see that if I write a larger array to the DO, it takes longer so apparently all samples are written.
Best regards, David