06-05-2016 02:01 PM
Hi,
I have a signal being read, I should activate another process if there is no difference in the value from the last 100 measurements from the signal (say around 1% deviation). Can anyone help.
Best Regards
Hari krishna
Solved! Go to Solution.
06-05-2016 03:20 PM - edited 06-05-2016 03:24 PM
You should attach your VI so we can see what you tried so far...
Do not expect that someone will give you a ready made solution here, make some effort in order to get help.
edit:
06-06-2016 10:44 AM
Idea: Use a VI with an Uninitiliazied Shift Register (USG) to store the last 100 measurements in an array that is saved in the USG between calls. Have a counter i in the VI that increases with every call (also saved in an USR). It is called each time a new value is generated. That value replaces the i%100 (modulo) -th element in the array. Once you have at least 100 measurements (i>100), you take the Mean of that array every time. There's a VI for that that gives you the standard deviation too. You can then compare it to your threshold value and output e.g. boolean which you can use to activate your other prcess in a case structure.
06-06-2016 10:48 AM
06-06-2016 11:00 AM - edited 06-06-2016 11:01 AM
One of my problems with LabView is that you have all these great built-in VIs but to know when you have to find your own solution and when there's a built-in one needs some experience. ^^
06-06-2016 11:02 AM
06-06-2016 11:04 AM
Do you have problems analyzing the last 100 measurements (as everybody here seems to think) or with activating a switch (whatever that means).
Why do you only mention the switch in the subject if the question is not about it?
Please clarify what you actually need. Thanks!
06-06-2016 11:08 AM
Hi Blokk,
Thanks, I was looking for option like this. Standard deviation Pt by Pt.vi solves my purpose.
06-06-2016 11:11 AM
Hi Altenbach,
I was confused in choosing subject, my mistake apalogies. Thanks
06-06-2016 11:12 AM
Hi m-ad,
Thanks for your inputs, will work on this to for my understanding