LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fully understanding XControls

Hello,

 

I'm trying to fully understand XControls...

I'm doing an KeyPad exemple, which consist of button for digit. a "Clear" button and a "Enter" button. The entered number is shown in a string indicator (see attached image for clarity).

 

I would like the XControl to fire the "Value Change" event on a main VI only when the user press the "Enter" button.

 

My problem is that I'm not able to keep in memory the previously pressed button...

 

Anybody knows how to do this?

 

Thanks in advance!

Download All
0 Kudos
Message 1 of 4
(2,522 Views)

I'm not really sure about what problem you are having, without seeing the code.  However it might be helpful to take a look at this very simple XControl example to see what you might be doing wrong.  I'd be interested in seeing if you get this working and what is the problem.

0 Kudos
Message 2 of 4
(2,452 Views)

Hello David,

 

Well, I gor it sorted out!

 

What I did was keeping the current string in memory in the "Display State" cluster. I had to wire a true constant to the "State Changed?" boolean in the "Action" Cluster. This was mainly my problem...

 

Thanks anyway!

0 Kudos
Message 3 of 4
(2,446 Views)

No problem, I'm glad you got it figured out.

0 Kudos
Message 4 of 4
(2,443 Views)