This article will guide you through the process of solving the following problems:
You would like to notify the user when a certain event happens in LabVIEW. On your station you are simultaneously running multiple programs and you would like the message to be visible to the user or top of all desktop applications. You tried the LabVIEW dialog box method, but it’s only working inside the LabVIEW environment.
You would like to send a prompt message to a user on the same network when a certain event in LabVIEW happens. The target computer does not necessarily have LabVIEW installed but you still want to give the user a notification somehow.
How to Use
You can achieve this goal by calling the msg.exe located in the C:\Windows\System32 folder with the System Exec.vi in LabVIEW. Please follow the listed steps, mind the process is different for 32bit and 64bit LabVIEW:
Observe we are using the System Exec.vito call the external application
Notice the path leads to C:\Windows\System32. Since your application is a 32 bit one, Windows automatically redirects the path from System32 to SysWOW64; that's why it is necessary to copy the msg.exe beforehand. If you do not copy it you will get the following error message when executing the VI from 32bit LabVIEW:
You can modify the 127.0.0.1 localhost IP address in the string constant to send the same prompt message to other computers too on the same network
Run the VI
Open non-LabVIEW applications such as web browser, File Explorer, etc. Observe every 3 second the message "LabVIEW NEEDS YOUR ATTENTION !!!" pops up above any application