05-01-2012 03:11 PM
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
05-01-2012 03:28 PM - edited 05-01-2012 03:30 PM
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.
05-01-2012 03:28 PM
05-01-2012 03:29 PM
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.
05-01-2012 05:14 PM
thanks for the replys, they all make sense, and it is working well now. Very helpful.