09-26-2020 09:42 AM
This seems to be related to the topic of your original thread.
I've moved your message there so anyone reading it has the benefit of the previous conversation.
09-26-2020 12:12 PM - edited 09-26-2020 12:15 PM
@Aniketgawande wrote:
Is there any way to find out how many readings taken by numeric controller?
Means if i am taking 34,56,89 values in my numeric controller then way to indicate 3 values taken?
I assume you are talking about a numeric "control" on the front panel. (A "controller" is typically something else).
As a first step, you need to define the term "reading". If this control is inside a loop that e.g. spins at 100Hz, the control will get read 100x per second, no matter if the value changes or not. You could count how many times the value changes, but sometimes successive valid reading could be the same by coincidence. You need to define a mechanism that exactly defines what a "new reading" means. One could add an OK button to define a new reading. (start here and add a counter. If nothing else spins the loop, you can even derived the count from the iteration terminal (not recommended)). You could append each reading to an array and look at the size of the array.
Computer programs will do exactly what you want, but you need to exactly define what you actually want.
09-26-2020 02:04 PM
Thank you for your valuable suggestions.
Yes i am using numeric controller of front panel inside a while loop. I used array method to find size but that didnt worked.
But must say all suggestions helped me a lot
09-26-2020 02:58 PM
@Aniketgawande wrote:
I used array method to find size but that didnt worked.
I am sure that if you show us what you tried, we can suggest how to fix it so it works. 😉