11-15-2008 01:20 PM
11-15-2008 01:54 PM
No, you code makes no sense. You simply get an array of 10 identical values, because nothing changes as a function if iteration count.
PKBombay wrote:
I am generating a function sin[2*pi(24MHz + f)] - sin[24MHz]. The 'f' has to vary from -2MHz to 2MHz. I have to add the output of this loop with another 24MHz sine wave input. I have attached the code, please let me know whether what has been done is right or no.
I don't understand your formula, e.g. what is "sin[24MHz]"? Just a constant?
Is the solution 1D (y vs. f) or 2D (e.g. y vs. (f,t))?
Can you point to a web site that describes the math?
11-15-2008 02:03 PM
Sorry, it was a typo. It is actually, sin(2*pi*24*10^6). What I have to actually do is, add a function (which is in the for loop) to a 24 MHz sine input that will vary the input between 26Mhz and 22MHz. So I want to add the output of the for loop with the 24MHz input. The code which I have attached is just a subvi . This is a laser based project and when i vary this signal, I should see the changes in the laser beams.
Thanks
11-15-2008 03:23 PM
11-15-2008 03:29 PM
11-19-2008 02:44 PM
PKBombay,
I'm not really sure what you are doing in your code, but you have stated in one of your 4 new threads that you have made about this problem that it WORKS, but you just wanted to make sure it was correct. It seems like you should be able to see expected values if it is working and not throwing you errors, is this correct?
We can try to help you, but it is difficult when we have trouble understanding your vi.