LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing random-seed down to vi-MLS Sequence Waveform

I am using MLS Sequence Waveform (MSW-VI) and having difficulty passing the random-seed number from higher-level VIs. 

The symptoms are as follows:
The following VI structure works properly in passing the random-seed number.  For a particular seed number, each "Run" produces identical waveforms.

Test-VI
    call MSW-VI

The following VI structure does not work properly in processing the random-seed number.  Although the probe in MSW-VI shows the correct "seed" and settings being passed, the waveforms are random (not identical).

Main-VI
       call Test-VI
             call MSW-VI

Does anyone know what the problems is in passing a random-seed number from high-level VIs to MSW-VI?  Does the problem relate to some VI settings that I am not aware of?

Thank you,
John

0 Kudos
Message 1 of 5
(3,307 Views)
You know the saying a picture paints a thousand words !!!
Well post the code or failing that a picture : jpg or png NOT BMP

chow
xseadog
0 Kudos
Message 2 of 5
(3,295 Views)
My apologies on my description,

    I built a test case that helped me better understand the problem.

    The MLSSeqWavGen VI is in a while loop.  So from the while loop, this VI is being called with the same random-seed number with reset True.  You will see from the test case that each time the wave produced is different, even though the reset is True and the seed is >0.

    See attachement
Thanks,
John
0 Kudos
Message 3 of 5
(3,287 Views)
Attached is a better/simpler test case VI for this problem

It all has to do with the MLS Sequence Waveform VI in a While Loop.
John
0 Kudos
Message 4 of 5
(3,280 Views)
Hi well
 I ran your VI.
What I can see is that your digital signal cycles between 3 set outputs !!
Just focus on the first 40ms
and you will see the cycle .
using seed 2 and poly order 4.
It appears to work .?

chow xseadog
0 Kudos
Message 5 of 5
(3,266 Views)