12-19-2005 05:02 PM
12-20-2005 09:11 AM
In NI-FGEN, the length of an arbitrary waveform must be an even multiple of the waveform length increment, or "waveform quantum". In most cases this is 4 samples. You are getting this error because 13050 is not evenly divisible by 4. To fix this, you can either add two samples to the length (13052 is evenly divisble by 4) or, if you're repeating the waveform many times, simply double the size of the waveform buffer and put two periods of the waveform in the buffer.
Drew Creel
Software Engineer
National Instruments - Signal Generators
12-20-2005 09:27 AM
12-20-2005 09:33 AM
You can query the "Waveform Quantum" attribute at any given time to find out what the increment is. (NIFGEN_ATTR_WAVEFORM_QUANTUM in c/c++)
For current NI-FGEN devices, the increment will always be 4 unless you have a 5441 in complex data processing mode, in which case it will be 2.
Drew Creel
Software Engineer
National Instruments - Signal Generators