11-09-2009 09:08 AM
Hi there,
I have modified the input for the advanced harmonic analyzer measurement.vi, now I am trying to find the autocorrelation and crosscorrelation of the siganl but when I run the vi I am not getting any output, Please help me out. I have attached the vi.
Thanks
sri.
11-09-2009 09:32 AM
Your VI requires all sorts of subVIs that I do not have, having to do with "niRFSA".
You might include those, or warn folks if a particular toolkit is required.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
11-10-2009 12:50 AM
11-10-2009 06:35 AM
The way you have it wired, the lower loop will not execute until you have stopped the upper loop - is that what you intended?
Remember that the data cannot leave a structure on a wire until the structure finishes executing, and a structure cannot start executing until all its input wires' data has arrived, so the lower loop will not start until you stop the upper one, a fact that debugging would show you quite easily.
Given that, there's no reason to run a loop if you're going to analyze the same signal again and again, so I think your logic is flawed.
Aside from that, your bottom CROSSCORRELATION function has no input wired. It will not produce any output if it has no input.
Aside from that, the AUTOCORRELATION function has it's own ENUM with values of "none", "unbiased", and "biased".
For some reason you've chosen to create your own enum with values of "None", "Unbaised", and "Baised".
The spelling and capitalization are different, for reasons I don't know.
A better way to do this is to pop up on the NORMALIZATION terminal and choose CREATE CONSTANT. This creates an enum for you and all spellings will match.
If you're trying to do an AUTOCORRELATION every time thru the loop, then you need to put the AUTOCORRELATION function and its graph inside the same loop.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
11-11-2009 12:34 AM
Hi steve,
I have moved autocorrelation and crosscorrelation blocks into the main while block and removed the other while loop, now I colud generate the waveforms.
I am trying to extend it further.
Thanks for your advice.
Regards,
sri.