05-28-2014 07:58 AM
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.
I would appreciate your help!
Regards from France,
Vasileios
05-28-2014 08:04 AM
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.
05-28-2014 09:12 AM
Hi crossrulz
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!
05-28-2014 10:01 AM
Your method sounds like it will work too.
Have you tried coding this up? Care to share any code you have done?
05-28-2014 10:27 AM
Hey again and thanks for your reply,
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..
05-28-2014 10:53 AM - edited 05-28-2014 10:53 AM
Something like this?
05-28-2014 03:16 PM
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
05-28-2014 04:18 PM
05-30-2014 11:48 AM
Thank you for your replies. Finally after spending sometime discovering new things in labview I made out the below selection 🙂
05-30-2014 12:00 PM
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.