LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

key binding

Hi There,

 

I have mapped the increase/decrease value of the slider scale to keys F9 and F10.

 

This works well when running the vi. However, I want access to the value of the scale as it is changing (while the F9 or F10 key is held down). Although the scale itself moves and the digital display value changes, I cannot read the value into a numeric control or send it to an index node on the while loop. The numeric control only updates when the key is released, so the output data looks choppy rather than showing a smooth increase or decrease when looking at the time series data in the output graph.

 

any help would be greatly appreciated.

 

Thanks

0 Kudos
Message 1 of 5
(2,845 Views)

First of all, the property node needs to execute only once, not millions of times/second, thus it belongs before the loop.

Then you are autoindexing on a while loop that spins as fast as the computer allows, building an infinite size DBL array, thus you will run out of memory very soon.

 

In my testing, the numeric updating works just fine even without releasing the key, so I am not sure what you are talking about.

 

Try the attached.

0 Kudos
Message 2 of 5
(2,834 Views)

Hello, scoombes

You can catch the value change of the scale using event structure. I've modified your vi a bit to give you reference - you'll probably want to adjust it a bit to meet your requirements.

0 Kudos
Message 3 of 5
(2,833 Views)

Maybe use an event structure to service your fp update.  It does not appear that the fp is being updated while the keys are pressed.  See attached.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 4 of 5
(2,832 Views)

thanks for the replys, they all make sense, and it is working well now. Very helpful.

0 Kudos
Message 5 of 5
(2,816 Views)