From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-27-2012 08:40 AM
hi, i'm trying to design a VI that allows handicap people (with no hands) to use the PC by controling the mouse, LCD brightness and sound volume through several sensors. I did find how to control the mouse but still can't find how to control brightness (using setdevicegammaramp) neither the volume (using waveoutsetvolume). can someone help me with those two functions plz?
Solved! Go to Solution.
03-27-2012 09:49 AM - edited 03-27-2012 09:50 AM
I'm not sure how this is a LabVIEW question since you seem to be asking how to control the brightness of a display using the Windows API. While you can call Windows API functions from LabVIEW, the details on how to use the Windows API is with Microsoft, not NI. Have you looked on the web for examples on controlling the brightness programmatically? If so, do you understand how they work? If you do, are you asking how to get them working in LabVIEW? Do you have a specific example that you are trying to get working?
As for the volume, you do not need to resort to the Windows API to set the volume. There are sound VIs that ship with LabVIEW for playing sound and controlling the volume. Search the examples (Help -> Find Examples) to take a look at the sound examples.
03-27-2012 12:08 PM
i did look for LCD brightness control examples, i found the setdevicegammaramp function, i know that i should use the call library function node but i couldn't make it work, i didn't understand the parametres that i should use them
03-27-2012 01:09 PM
03-27-2012 02:05 PM - edited 03-27-2012 02:05 PM
Try the attached VI. I have no idea whether it will work for your setup since other factors are involved in setting the brightness, such as the monitor's controls and the video card settings.
03-31-2012 11:29 AM
thank u this is exactly what i want, u r so helpfull, i m very grateful!!!!