08-08-2013 12:40 AM
Hi,
I need help in splitting signal generation. I want to generate sinus signal, for example sinus with frequency 0.1 Hz. Means, it would take 10seconds to generate simply 1cycle. The problem is, I want to generate the signal with NI DAQmx and NI HSDIO. These devices has buffer.
I need to split my signals into smaller pieces, let say, 0.5 seconds pieces so I can generate the signal continuously and get my full cycle after 20x iteration.
How can I do that??
regards,
Yan.
08-08-2013 02:28 AM
@Mystogan wrote:
I need help in splitting signal generation. I want to generate sinus signal, for example sinus with frequency 0.1 Hz. Means, it would take 10seconds to generate simply 1cycle. The problem is, I want to generate the signal with NI DAQmx and NI HSDIO. These devices has buffer.
I need to split my signals into smaller pieces, let say, 0.5 seconds pieces so I can generate the signal continuously and get my full cycle after 20x iteration.
How can I do that??
HSDIO is not relavant for analog signal generation, it is High Speed Digital (say TTL) Input Output.
What device (other than HSDIO) you have? Also you have not mentioned the update rate required?
Now considering the Output FIFO Size, you can probably choose analog output generation in regeneration mode with dynamically updating user buffer data.
The bottleneck in the signal generation will be, to update the output buffer (that is to transfer next set of samples, to be generated, from PC/software buffer to onboard [hardware] buffer), Relative to & Offset property nodes will play important role.
08-08-2013 07:38 AM
Hi,
I think I'm going crazy with my task. The bottlenecks that you mentioned are TRUE big trouble.
I need to generate sinuswave in serial way using HSDIO.
For example, if I'm generating a simple triangle signal, what I do:
- generate an array 0, 1, 0, -1 (that is a full cycle)
- then I scale them to positiv 1, 2, 1, 0
- and then convert them into digital boolean array (16bit) 0000000000000001 0000000000000010 0000000000000001 0000000000000000
But anyways, I got my sinus split done in analog part. But it takes few milliseconds to get an iteration done. Meanwhile the buffer size on HSDIO with having 40MHz taktrate is too fast to wait my conversion to be done.