07-04-2022 08:57 AM
I’m trying to make a simple project to practice with LabVIEW: I’m creating a VI with a standard Button and a stop button. When the VI is running, I’ll click the button many times, and then, when I click on STOP, I would visualize on Front Panel a “List” (I’m using an array for this) which contains a timestamp for every button pression.
Is it possible? How can I do this? I’m trying to create an array with the “insert into array” element, but it doesn’t seem to work. Thank you all guys!
07-04-2022 09:38 AM
This should be trivial if you use an event structure. What have you tried? You forgot to attach code.
07-04-2022 03:34 PM
@Kieran2287 wrote:
I’m trying to make a simple project to practice with LabVIEW: I’m creating a VI with a standard Button and a stop button. When the VI is running, I’ll click the button many times, and then, when I click on STOP, I would visualize on Front Panel a “List” (I’m using an array for this) which contains a timestamp for every button pression.
There is no "standard button" so we don't really know what you have. What matters for your task is the mechanical action setting of the boolean control. Make sure you know what it is. Are you familiar with that terms?
I would modify the problem descriptions and show an array of timestamps that grows by one entry whenever the button is pressed. It is not a good idea to wait until the stop button is pressed to display everything at once. It is always good to give visual feedback to the user that something is actually happening.
As has been said, this is a simple problem so try to solve it yourself. if you get stuck, ask very specific questions and we will point you in the right direction. Don't forget to also look in your class notes or even ask you teacher.