LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memorize the position(value) of the slider

Solved!
Go to solution

Hello dear all,

 
 
I have to answer these two questions on my application.
By answering the questions I have to choose a value of the slider.
 
I want my slider to be positioned where it was before I clicked cancel.
Can you help me please?
0 Kudos
Message 1 of 5
(718 Views)
Solution
Accepted by topic author Flav_12

What value should the slider have after cancel? (What it was at the start of the program? Something else?)

 

It seems completely silly to trigger events using value signaling properties and have a 1ms timeout containing a 100ms wait. Since you are polling anyway to display the time, all you need is a case structure. Why are the "items" controls if you use them as indicators? Why not use a single always visible string indicator that changes the text?

0 Kudos
Message 2 of 5
(699 Views)

Hi dear altenbach,

Not what it was at the beginning of the program but:

In question 1 you answered 2 for example
And then you click next for question 2 and then you choose 4.
Now when you click on cancel I want to find the cursor at 2.
 
I know it's silly but I was asked to do it and it took me all day and I still haven't found it.

Yes you are right about the always visible chain indicator, I will do it.
 
Can you help me please with this problem with the cursor position. I don't know what to do anymore
0 Kudos
Message 3 of 5
(694 Views)
Solution
Accepted by topic author Flav_12

You simply need to store the values in an array, one element per state. Here's a quick draft.

 

altenbach_0-1674670279281.png

 

Message 4 of 5
(681 Views)

Thanks you vers much @altenbach

0 Kudos
Message 5 of 5
(598 Views)