From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to tke an average of value at th 0to 15 , 16 to 30, 31 to 45, 46 to 59 mins

Solved!
Go to solution

email labview.jpg

here is image wt i want to do and also attached with file..

0 Kudos
Message 1 of 17
(2,571 Views)
Solution
Accepted by topic author Julian_prince

It is rather unclear to me what you want to achieve but here my 2 cent...

 

You have a 2D array and want to average it by the columns from index 0-15, 16-30, 31-45, 46-59.

 

Now what I would do is first, split the 2D array by rows so you have a 4 2D arrays. Then loop around the columns and use the "MEAN.vi" from LabVIEW to average the samples. Then merge the results.

0 Kudos
Message 2 of 17
(2,563 Views)

Yes sir,

 

that is the same process which i want to apply,,

0 Kudos
Message 3 of 17
(2,553 Views)

sir please give image form or starting of programme,,

0 Kudos
Message 4 of 17
(2,544 Views)

Try this.

averages.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 5 of 17
(2,541 Views)

Thanks for image programme,

 

But this is not the exact solution which i want,

email labview.jpg

1- column is start from machine numbere  2- 32,

2-column 2 is minutes of work.

3 column 3 ih  hours of work.

 

Now when there is machine num  2 in column  (1),  and 0 hour in column (3 ) the take the average of column (1) for every 0-15, 16-30,31-45,46-59, according to column (2).

 

this procee will repeat for 0-23 hours  according to column (3).

                                        

0 Kudos
Message 6 of 17
(2,520 Views)

The image can be dragged and dropped on to a block diagram. If this is not working, save the .png file on to your harddisk and then drag and drop it on to your block diagram.

Try this.

averages_edited.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 7 of 17
(2,511 Views)

Dear sir ,

 

Thank you very much the programme is fine working, it gives the value whatever i deisre,

 

But there is little proble in the column 1 it gives machine number 2 constant, but it changes,

 

and it is not necessary that first value of minute  will start from  0, if start from any value so , take according to range 0-15, 16-30, 31-45, 46-59,

 

here i have attache my file and programme.

Download All
0 Kudos
Message 8 of 17
(2,507 Views)

The vi gives you averages for a specific machine, you have to specify this on the front panel.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 9 of 17
(2,498 Views)

yes sir,

 

it i s not necessary every time machine number two gives the value, it varies form machine number 2- 32,

 so whatever average it is taking is perfect , but for every data machine 2 is not competeble,  ,

 

please sugges me so it will take average according to machine number

 

0 Kudos
Message 10 of 17
(2,496 Views)