LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

system tray notification

How can I add system tray notifications? Just like this.
 
 

Message Edited by Sheetal on 01-12-2007 04:38 PM

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 3
(3,378 Views)
Sheetal,

CVI does not have any of this sort of functionality built into it, but I am sure using the Windows SDK, you can accomplish this task. Here are a couple of links that should be able to help you out.

KnowledgeBase: How Do I Use the Windows SDK in CVI?

MSDN.com - Windows API Functions by Release

Though I am not positive as to this function's existence (since I am not aware of every Windows API function) if it is an available function, it would be located in the Windows API for sure.

Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 2 of 3
(3,334 Views)
Howdy Sheetal,

I am not exactly sure of what your end goal is in terms of "notifications", but there are several functions in LabWindows/CVI that work with the Windows System Tray.

LabWindows/CVI provides the functionality to install a system tray icon.  Refer to the trayicon shipping example in the <CVI>\samples\toolbox\ directory.

You can use the the InstallSysTrayIcon function to install a user-defined icon in the Windows System Tray.  With this function, you can install a system tray icon, install a callback function that receives mouse events, add tooltip text, etc.  You can even use the AttachTrayIconMenu and the InsertTrayIconMenuItem functions to attach a right-click pop-up menu to the icon. 

These functions are located in the Programmers Toolbox (In the Library Tree, navigate to the path Libraries >> Programmers Toolbox >> User Interface Utilities >> System Tray Icons).

Hope this helps!

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 3 of 3
(3,329 Views)