How do I Know What Value to Make the Streaming Waveform Repeat Count? Hardware: Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators
Problem: What is the value that I should use for the Streaming Waveform Repeat Count control in the NI-FGEN Arb Waveform Streaming example? Solution: If we have an arbitrary waveform of a certain sample length (A) and a streaming waveform size on the device (S), then we can generate the wqaveform in N blocks, where: N = A/S An important requirement is that N must be an integer. Should A/S not be equal to an integer, there will be a resulting segment of invalid samples of the length N*S - A at the end of the streaming waveform. To account for the possibility of N=A/S not be an integer, consider adding N*S - A zero-value points to A. This will ensure that when you have reached the desired end of your output, any remaining output data will be zero. By taking the above into consideration, you can safely set your streaming waveform repeat count to an integer without worrying about inconsistencies between iterations or memory allocation errors. Related Links: Attachments:
Report Date: 12/14/2007 Last Updated: 12/17/2007 Document ID: 4GDF8CQU |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
