Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

DO Channel "has" or "has no" sample frequency?

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

 

0 Kudos
Message 1 of 1
(1,113 Views)