09-27-2012 02:51 AM
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!
09-27-2012 07:40 AM
@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.
09-27-2012 01:27 PM
"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
09-27-2012 02:08 PM
The VI I supplied already does this. It is the case structure right after acquiring the data.
09-27-2012 02:16 PM
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 . 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
09-27-2012 03:02 PM
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!
09-27-2012 03:17 PM
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?
09-28-2012 02:42 AM
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.
09-28-2012 03:32 AM - edited 09-28-2012 03:33 AM
"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)
09-28-2012 03:54 AM
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