12-09-2015 03:53 PM
12-09-2015 04:24 PM
I am new to the labview. i tried but not succeded in taking the mean of a data. More over there are no arrays in my Vi. So can you please tell me, how exactly can i take mean of the data in my VI.
Thank you
12-09-2015 07:02 PM
How fast is your data actually coming in? You could just use the Mean PtByPt.vi to do a moving average of X samples based on the actual sample rate. Then just use Elapsed Time to state when to store the latest value.
12-10-2015 04:09 AM
The data is coming very fast as Ex : 100samples/sec. Sorry i didn't understood what you have said about elapsed timed as i am very much new to labview. so can you please provide me a example shows how can we make a delay of 1sec (same as wait(ms)- 1000ms ) in a while loop. If possible please do the corrections for My attached VI. Because i need this to be completed very urgently.
12-10-2015 07:48 AM - edited 12-10-2015 07:50 AM
liviya wrote: The data is coming very fast as Ex : 100samples/sec.
You need to know your system a lot better than "very fast". I consider 100S/sec slow. But if we assume the 100S/sec, then the simplest method is to just use a FOR loop to gather 100 samples (1 second's worth of data) and do an average of that data.
12-10-2015 08:30 AM
Actually the data varies so i dont know exactly. It is like reading a radiation, it is very fast intilally and then decreases slowly. And i need only to read the sample/sec. i am getting various sample per each second. And the Vi I used intially to read serial data but the actula VI is different (i am attaching here). Please correct the Vi i provided So that i read the sample/sec. Thank you for your patience. Sorry i am new to labview and not able follow you exactly.
thank you
10-27-2016 05:07 PM - edited 10-27-2016 05:09 PM
We have developed a package on the LabVIEW Tools Network to automate serial port interactions. You can use it to replicate what you manually do using Putty in LabVIEW for serial devices such as login, entering commands, waiting for a response and returning it. You can find out more about it and download a 30-day free trial at: http://sine.ni.com/nips/cds/view/p/lang/en/nid/214248