11-12-2009 07:16 PM
Hello
This is the desired scenario.
I have created a stopwatch using LabView.
Pressing the GO button, the time runs.
Pressing the GO button again, the time stops and the values will be transferred into an array.
Pressing the GO button again, the time runs again.
Pressing the GO button again, the time stops and the values will be transferred into the next array member.
My question is, how can i get the values to be stored into the array?
Thank you.
11-12-2009 08:03 PM
I am going to assume that you will have a set number of elements in your target array.
Note that you will also have to detect whether you are in "go mode" or "stop mode" to determine if you are starting the timer or stopping the timer and storing the result.
From a user standpoint, it would be nice to have the button change from Go to Stop so it is clear what will happen when the button is pushed.
If you have more questions please ask. If you post your code I can be more specific on a solution.
steve
11-13-2009 05:04 AM
As it is a stopwatch, there wont be a fixed number of elements
it has to be dynamic
any changes for this method?
11-13-2009 05:15 AM
11-13-2009 05:40 AM
i think i can get some ideas from that program of yours
i will try mine out 1st
thanks a lot 😃
11-13-2009 08:53 AM
Hi,
A simple soluce (use an event structure with build array) => see attached files