LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can waveform chart be given focus when modifying y-axis numeric scale

Hello,

I have an application where I have a waveform chart (LV7.0) and a string variable on the same screen.  Since, in this application, a user inputs data into the string with a bar code reader, and since that can happen at any time, I constantly give the string control key focus.  This is done within a loop.  The problem is, I want to be able to double click the y-axis scaling on the chart and modify it at runtime, effectively zooming in or out on the chart.  Ideally, during modification of the chart, the chart would have key focus, and I'd set keyf ocus on the string control to be the inverstion of the key focus of the chart... but that doesn't work.  Does anyone know how to do what I'm trying to accomplish?

Thanks.

 

0 Kudos
Message 1 of 3
(2,566 Views)

Hi rickford66,

i think you can use an event structure for it. Set the key focus of your control in the timeout case. You can change the timeout depending on the user events. Another solution could be to use the key down event of the VI to read the barcode.

 

Hope it helps.

Mike

Message 2 of 3
(2,565 Views)

Yeah, I thought of that a little while ago, and just finished coding it.  It works pretty good, but it gives a time limit.  Not exactly what I wanted, but I think I'll be able to get by with it.  Thanks.

 

0 Kudos
Message 3 of 3
(2,559 Views)