06-14-2012 09:27 AM
Hi everybody,
I am currently interning in a space instrumentation lab and I have to develop a code that simulates two sinusoidal signals in phase quadrature and then do the fringe counting. The frequency of the two signals is 289 Hz and in my case a fringe corresponding to a period, so I would have to obtain a time of 10s 2890 fringes. But this execution between two numbers differ significantly (about 100 fringes). And even more disturbing when I vary the number of samples per second in the parameters of simulated signals, this number increases from about 2000 to 3000! I do not mind that there is a small problem in my program of fringe counting, but I do not understand why by varying the number of sample I vary the frequency, yet it is fixed (I put an indicator).
Thank you in advance for those who can help me, I'm really pretty annoying!
PS : sorry for the english, i'm french...
06-14-2012 09:53 AM
Your English is much better than my French!
Please post your code. It is almost impossible to determine the problem from a written description. Particularly since there are several ways of simulating signals in LV. Is some of those the number of samples and the specifed frequency can interact in ways which are not obvious until you have looked at how the internal code works.
Lynn
06-14-2012 10:03 AM
Here are my Vi and sub_VI, I have implemented a sub_VI to vary signals parameters, it concern only one of the two signals. The other sub_VI account the fringes.
Thank you :)!
06-15-2012 05:09 AM
Nobody has a solution?