LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

obtaining averages from samples acquired at 1000hz

hallo all.

in DAQ program i must collect DC voltages at 1000hz and check how many of them are within range ,and should take mean of the values..
(sum of the values within range/ no of the values within range) ,now here the problem after i check if the value is with in range the answer is either  1 or 0 ,but i need the original value of the sample so that i can use in the next step of taking mean..

can you please suggest how can i go with it..

thanks.


0 Kudos
Message 1 of 8
(3,206 Views)
Well there IS an "in range ?" function in LabVIEW... are you using it ?

see esemple attached and feel free to ask question if it's not clear.

Hope this helps...


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 8
(3,196 Views)
Thank you very much for the reply..i had problem when i used it.

for my program

 its like..when i check if a voltage sample is within range and when it is yes ,i need the value of voltage sample which i have verified.
intially i used comparision vi and assigned property of within range but im left with so many questions.
but now im using case structures and seems to be workin,.

but have some other doubts too.

i want by program to store data in new file when ever it identifies change of date..? any suggestions on this please please..
0 Kudos
Message 3 of 8
(3,193 Views)
hi,
 
Not sure if i understand your problem.. you want to save to a different file on the next day the program runs. this should not be dififficult. Check the date in the acquiring loop, compare this with the date of the previous iteration by using shift registers. When the date has changed change the saving path... maybe you can post your program for more help.
 
greetz,
BartB

Message Edited by bartb on 04-27-2006 12:55 PM

Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 4 of 8
(3,194 Views)
Hi bart..
thanks for the reply.
yes you understood it corerct ,but i dont want to change every new day ,but when u a run program throught night say for 36 hours s o obviously there are 2 dates in these 36hours so,i want my program to store the data in two files with 2 new dates so that its easy to analyse.

0 Kudos
Message 5 of 8
(3,182 Views)

ok but what is the condition to split the file? hours running, or file size, or?? and whats the file naming convention you like?

greetz

Message Edited by bartb on 04-27-2006 01:34 PM

Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 6 of 8
(3,182 Views)
 thanks alot for quick reply.

i think the idea of splittin file on filesize is good.

how can i do that..
0 Kudos
Message 7 of 8
(3,174 Views)
you can us e the "file info sub VI" to check the size.. and when the size rquirement is met you change the VI path, which you can construct with time or date or something to have an unique filename.
 
greetz
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 8 of 8
(3,166 Views)