LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HSDIO

Solved!
Go to solution

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 

0 Kudos
Message 1 of 4
(2,896 Views)

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.


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

0 Kudos
Message 2 of 4
(2,885 Views)

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

0 Kudos
Message 3 of 4
(2,873 Views)
Solution
Accepted by topic author Roxanne

Hey Roxette,

 

Padding out the remainder of the signal with additional zeroes should allow you to produce a waveform quantum.

 

Keep me posted!


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

0 Kudos
Message 4 of 4
(2,847 Views)