Hello everyone
I am quite new to programming with this kind of hardware, and I am not even completely sure the title of this thread is very accurate. Anyhow, to the problem, and question, at hand:
Using the DAQmx .NET framework with C#, I would like to generate three continuous waves for my DAQ (OEM USB-6259), and write them to three different AO channels on the board. This, I have achieved. However, the waves are pretty long, with quite a high samples per second rate, causing the memory usage of my application to be unreasonably high. I cannot use a loop for these three waves, as I see it, since the phase of the three waves (and the frequencies) are continuously changing.
A solution to this problem, would probably be writing bits of these waves, and writing them to the DAQ as they are generated, a bunch of samples at a time, or perhaps generating the waves in realtime. That however, seems very difficult to me, since I assume one has to get the timing right and so on.
Is there some way I could use the first approach (generating bits of waves and writing them to the DAQ as they are needed), in some way?
Any tips or help would be very much appreciated!
Thanks