# Multifunction DAQ

cancel
Showing results for
Did you mean:

## take ten measurements with a delay between them of a certain time and find the average

Hi everyone,

I am Vasileios and I have a question for you!

I want to take ten voltage measurements with a DAQ assistant and between them to have a delay of one second. And afterwards out of these ten volage measurements to find the average between a maximum and a minimum value. In the end I want to save the final value.

Regards from France,

Vasileios

Message 1 of 10
(3,414 Views)

## Re: take ten measurements with a delay between them of a certain time and find the average

Do a finite sampling with 10 samples at a 1Hz frequency.  From there, use the Array Max & Min to get your maximum and minimum values.  Add them and divide by 2.

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 2 of 10
(3,411 Views)

## Re: take ten measurements with a delay between them of a certain time and find the average

Thank you for yuor reply. nonetheless I would like to solve my problem creating an array out of these 10 measurements (putting the daq assistant inside a for loop for ten) and then after I do the addition of the ten measurements I deivide with ten in order to find the average.... But to be honnest  that is my initial plan and I face a lot of difficulties... 😞

Can you give me another solution???

Thanks again!

Message 3 of 10
(3,404 Views)

## Re: take ten measurements with a delay between them of a certain time and find the average

Your method sounds like it will work too.

Have you tried coding this up?  Care to share any code you have done?

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 4 of 10
(3,402 Views)

## Re: take ten measurements with a delay between them of a certain time and find the average

Although I haven't done a lot of progress I could say , I am attaching you the vi.. Actually I am still concerned which array functions I should use since I cannot figure out how to make an array of ten measurements...

Feel free to make any changes!

Additionally from the same daq assistant I have two channels and i want to do the same thing for both channels... but I maybe think about it in a later stage..

Message 5 of 10
(3,398 Views)

## Re: take ten measurements with a delay between them of a certain time and find the average

Something like this?

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 6 of 10
(3,392 Views)

## Re: take ten measurements with a delay between them of a certain time and find the average

Hi!

Can you please share with me (and all the others) your VI?

I will try to see if I will have the expected results 🙂

\Vasileios

Message 7 of 10
(3,381 Views)

## Re: take ten measurements with a delay between them of a certain time and find the average

The image is a snippet (look it up) and can be dragged to a block diagram. The code is about as simple as it gets, though. You've got the Convert From Dynamic Data, an Index Array, and two Mean functions.
Message 8 of 10
(3,374 Views)

## Re: take ten measurements with a delay between them of a certain time and find the average

Thank you for your replies. Finally after spending sometime discovering new things in labview I made out the below selection 🙂

Message 9 of 10
(3,329 Views)

## Re: take ten measurements with a delay between them of a certain time and find the average

Try to avoid the use of local variables.  They are additional copies of your data and they break data flow.  LabVIEW is a data flow language.  Use wires whenever possible.

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 10 of 10
(3,327 Views)