08-18-2011 03:45 PM
Hi,
I am trying to play an .hws waveform using "niHSDIO Write Named Waveform File". Get this strange error message:
Requested waveform length is invalid, because the number of samples is not an integer multiple of the waveform length increment.'
Status Code: -200400
I need help!
Raha
Solved! Go to Solution.
08-19-2011 04:30 AM - edited 08-19-2011 04:30 AM
Hi Roxette,
Are you passing an odd number of samples into the WriteNamedWaveform VI? The VI can't produce the waveform because it is not receiving an appropriate number of samples to properly represent it. The number of samples must match a 'Waveform Quantum', i.e. a multiple of the waveform length increment. You can try writing extra values to the requested value; make sure it can be evenly divided by four, which works in most instances.
08-19-2011 10:55 AM
Hi Alex,
Thanks for your response. Now is there a function that accepts an .hws file and calculates how many samples there is, so the waveform can be added with additional zeros to be an integer multiple of 4?
Roxette
08-22-2011 03:16 AM
Hey Roxette,
Padding out the remainder of the signal with additional zeroes should allow you to produce a waveform quantum.
Keep me posted!