LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Different output of DST function in labview and matlab

I am passing a 1D array of size 1550 as input to DST function. I have also calculated DST of same array in matlab using 'dst' function. I got approximately same answer till 1399th element but after that answers of two varies abruptly. I tried hard but I am unable to find the solution. I am attaching the data file in which it can be clearly seen that at 1530th element there is a difference of sign also.

0 Kudos
Message 1 of 2
(2,561 Views)

Out of curiosity, have you tried another software, like Octave? When you have two software that is different, which one is incorrect?

 

Also, have you tried to use the DST function in LabVIEW directly?

 

Another think to keep in mind... When you try to run a sequence for so long, small round-off errors could be cummulative and show later on the analysis. Also, it depends on how you load the data into each software. Hopefully when moving the platforms, the string conversion would not truncate the number. The best is not using string, but some kind of binary format...

 

These are some ideas to check...

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 2
(2,508 Views)