LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Assistance Needed: Averaging N Amount of Waveforms

Solved!
Go to solution

Could you explain what you mean by "On the first iteration, initialize to the first set of acquired data" please? Is this something I have to do?

 

I can understand the premise of what you've done and I think it's close to working. Fingers crossed!

0 Kudos
Message 11 of 40
(998 Views)

@AT12 wrote:

Could you explain what you mean by "On the first iteration, initialize to the first set of acquired data" please? Is this something I have to do?


If you look at my VI, there should be a case structure with i=0.  That is where I'm initializing on the first iteration and adding on all other iterations.  The shift register initially has no data in it.  So there's nothing to add to.  Therefore, on the first iteration, you need to set your acquired data to the summed data.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 12 of 40
(992 Views)

"Therefore, on the first iteration, you need to set your acquired data to the summed data."

 

- How is this done? I'm a bit confused. Sorry about this, I'm just not used this stuff. I understand how the shift register system works but I don't know how to set my acquires data to the summed data.

 

Apologies for dragging this out, but I'm slowly learning!

 

Thanks for you patience.

 

AT 12

0 Kudos
Message 13 of 40
(982 Views)

The VI I supplied already does this.  It is the case structure right after acquiring the data.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 14 of 40
(978 Views)

AT, since we don't have any valid data, this is a bit tough. Crossrulz is just guessing at what you want, but can't really test it. Could you acquire some data with an indicator on the data wire? Then when you stop running, right click that indicator and choose "make current values default" then save the VI and post it. That way we can test our solutions before posting them. And, yes, LabVIEW is capable of doing more than what a calculator can do Smiley Wink. If averaging waveforms was not possible, I'd assume many of the people that have been using LabVIEW to make advanced data acquisition systems for the past 25 years, would no longer be using LabVIEW Smiley Very Happy

Message 15 of 40
(976 Views)

Hi guys,

 

Again, thanks so much for the feedback.

 

I've never saved data as default before but I'll do my best for you.

 

Just to check for the right location, do I put the Numeric Indicator just after the DAQ Assistant and before the data reaches the Case Structure?

 

I thought LabView could do it!

 

Smiley Very Happy

0 Kudos
Message 16 of 40
(971 Views)

It would be better to build an array of the data for a few seconds, then stop your program and save that built array. Also, are you acquiring 1 channel of data or multiple channels? Is it possible you have your convert from dynamic data configured incorrectly?

Message 17 of 40
(967 Views)

Could you give me idiot proof instructions on the saving the data bit! Perhaps a quick diagram? - I have no experience in such things.

 

I'll check all the other things for you within the hour.

0 Kudos
Message 18 of 40
(952 Views)

"It would be better to build an array of the data for a few seconds, then stop your program and save that built array. Also, are you acquiring 1 channel of data or multiple channels? Is it possible you have your convert from dynamic data configured incorrectly?"

 

I am acquiring from 1 input channel. The Dynamic Data converter is configured as follows:

 

1D array of scalars - automatic

Floating point numbers (double)

0 Kudos
Message 19 of 40
(950 Views)

Attached is my vi with an indicator with saved data - I don't know if this is right - pure guess work on my part.

 

Also attached is a data file you can open with notepad of the saved data from your modifications, as you can see no I(t) data, just the PSD, which occurs after 25 averages.

 

AT12

Download All
0 Kudos
Message 20 of 40
(947 Views)