Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I implement double buffered continuous waveform output in C#.NET?

I would like to know how I can make double buffered continuous waveform generation in C#.NET via DAQmx. I want to generate continuous filtered-random noise. That is, I want to update output buffer while I am generating signals.

When I use ANSI_C, I refered the example "WFMdoubleBuf.C." However, DotNet version does not provide any example.

To implement continouse waveform input, I followed an example, which uses, "BeginReadMultiSample" and "EndReadMultiSample." It does not seem to be double buffered input, but it looks like work.

I applied similar procedure to writting. I tried to use "BeginWriteMultiSample" and "EndWriteMultiSample." But it did not work.

Please, teach me how I can proc
eed.

Thank you very much.
0 Kudos
Message 1 of 3
(3,602 Views)
Dear NO!
Thank you for choosing National Instruments support!

C#.NET examples are included with Measurement Studio Support in the DAQmx driver CD. Please look under these for examples that can be modified in order to work with your case.

Also, it might be a good idea to search through the Code Library in NI Developer Zone for C#.NET examples.

Hope this helps.

Thanks and Regards
Shekhar S
National Instruments
0 Kudos
Message 2 of 3
(3,602 Views)
Thank you for your comments. However, I could not find a DAQmx C# example that I need. I am finding an example which is similar to 'WFMdoubleBuf.c' for Visual C of Classical DAQ.

I checked the following directories. I am using MS 7.0 and DAQmx 7.1.
/National Instruments/NI-DAQ/Examples
/National Instruments/MeasurementStudio70/DotNET/Examples

If I need more drivers, please let me know.

Moreover, I tried to check Code Library but I failed. I will be very happy if you help me.

Thank you.
0 Kudos
Message 3 of 3
(3,602 Views)