LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cursor

I have several numeric indicators. When I push a button from within LV to read data from the serial port, I want the data to be put in whatever indicator the cursor is in. Is this possible with LV7.0 and if so how? Thanks.
0 Kudos
Message 1 of 14
(3,918 Views)
Yes, you can for example use an event structure as shown in the attached example.

The shift register holds the place where the value should go. It is set to 1 when the mouse enters indicator 1 and back to 0 if the mouse leaves. Same for indicator 2. A keypress uses the index to decide which indicator to update.
Message 2 of 14
(3,918 Views)
Just a quick not. The above example has been down-converted from LabVIEW 7.1. Just press "save" in LabVIEW 7 before use or it will run rather sluggish.
0 Kudos
Message 3 of 14
(3,918 Views)
That is a neat little Vi.

Cooooooooool



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 4 of 14
(3,918 Views)
This works great. Next question. I main VI is a tab control with several tab. When I embed this code into one of the tabs, I can no longer type anything into any other control on any other tab. Does this have something to do with dynamic regeristing of the events? If so, I'm unfamiliar with this. Any thoughts?
0 Kudos
Message 5 of 14
(3,918 Views)
Hi,

It seems to work ok when I try it out. I attached my VI below. Can you provide some more information about how your tab control and how you're using the embedded code with your controls?

Thanks!

Kileen C.
0 Kudos
Message 6 of 14
(3,918 Views)
Can you make your code backward compatible for version 7.0? Thanks.
0 Kudos
Message 7 of 14
(3,918 Views)
Tabs are just cosmetic and should not interact with the code at all here. Could you attach a simplified example showing your problem?
0 Kudos
Message 8 of 14
(3,918 Views)
Attached is an example of what my main vi is doing. When this vi is running nothing can be typed into the string controls.
0 Kudos
Message 9 of 14
(3,918 Views)
Please see the previous reply for example code.
0 Kudos
Message 10 of 14
(3,918 Views)