LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need help with autocorelation and crosscorrelation vi

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.

0 Kudos
Message 1 of 5
(3,446 Views)

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. 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 5
(3,439 Views)
I didn't use any sub vi's for that.....I have just modified the existing Advanced Harmonic Analyzer measurement.vi   and added RFSA blocks as input to take the signal from "NI PXI 1045" and now I am trying to find the autocorrelation of the signal taken from the output of niRFSA Fetch.vi block...
0 Kudos
Message 3 of 5
(3,415 Views)

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. 

 

 

Diagram2.PNG

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 5
(3,409 Views)

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.

0 Kudos
Message 5 of 5
(3,393 Views)