LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically hide/show cursor

I'm writing an application that is like a kiosk with a touchscreen.

Is there an platform independent method to hide/show the cursor

where you don't have to jump thru hoops for such an easy procedure.

The forums have staggering number or posts, but no clear winner. 

 

0 Kudos
Message 1 of 8
(3,791 Views)

That's probably because there's no sure-fire solution. Smiley Wink

 

Does the OS that's running on the touchscreen have this ability? I would think that since it's a kiosk it might. Barring that you can simply use the cursor VIs to load a cursor from file. Create a cursor file that's an invisible cursor. As noted here you may need to tweak the cursor file a bit to deal with potential graphical glitches.

Message 2 of 8
(3,789 Views)

I use ELO surface acoustic wave monitors that provides drivers that

provide mouse emulation that is totally transparent to any application,

for both Mac & PC. I have tried the empty cursor approach, but it is a bit of a hack.

0 Kudos
Message 3 of 8
(3,784 Views)
There is a DevZone example here

I've attached an updated example if you have LV version later than LV7.1


--Michelle

National Instruments
0 Kudos
Message 4 of 8
(3,737 Views)

This code will not open on a Mac.
I'm looking for a "platform independent method" 
0 Kudos
Message 5 of 8
(3,725 Views)
My apologies, I will have to look into how to do this on a Mac.

But if you know all the possible operating systems, you could add a conditional disable structure to choose platform specific code based on the OS the VI is running.

Take a look at this KnowledgeBase: How Can I Conditionally Execute LabVIEW Code Based on the Target Platform?
--Michelle

National Instruments
0 Kudos
Message 6 of 8
(3,697 Views)

I do just this. I write code that is used for research at the university level. (UMass)

At the university there is a large Mac community. All the code I produce HAS to be platform

independent. Once you get past filename characters and extension problems Labview has

worked very well. I can write code and barely think about the underlying OS.  I would like to

see more effort from NI to continue to raise LV above the OS religious wars.  

0 Kudos
Message 7 of 8
(3,687 Views)

smercurio_fc has the right idea. Your best is creating an empty cursor file. This is the way to do it if you want to stay within LabVIEW the realms of provided LV VIs and without having to dig through the OS for settings/calls to change the cursor.

--Michelle

National Instruments
0 Kudos
Message 8 of 8
(3,647 Views)