LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to increment a keyfocused array index?

I'm trying to create a touch screen VI that eliminates the need to try and hit a very small button, but keep a compact sized array that doesn't cover the entire screen.

 

The question is can you have an increment and decrement button that only increment/decrements where the key focus is on the array? (I know this works in clusters)

0 Kudos
Message 1 of 4
(2,745 Views)

might also mention that i'm using a shift register to edit data to the array.

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

Hi Fulmetalal,

 

I have a solution in mind for this.  However, I am running into a problem.  When you click on an increment or decrement control, the key focus is not longer on the key-focused array element, and it will not change its value.  In order to change the value, you must click on increment/decrement, then click on the desired array element, then click on increment/decrement again.

 

What would be possible is to have a numeric control where you could set a value, and then select an element of the array to give it key focus and change its value to the value of the numeric control.  Would this work for your application?

If not, any more information on your application constraints would be very helpful in solving this issue.

 

Patrick W.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(2,718 Views)

Hi,

 

in "big" SCADA systems (like SIMATIC, WinCC) you have to activate a control input, do a right-click (or some other means) to open a separate window which allows input of a new value for the control. Then you can click either "OK" or "Cancel" to take (or not) the new value.

 

You could do the same in LabVIEW by catching right-click mouse events...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,714 Views)