11-03-2025 02:28 AM
How does labview implement this progress bar function that comes with windows?
Solved! Go to Solution.
11-03-2025 02:40 AM
Hi WhiteSpace,
@留白 wrote:
How does labview implement this progress bar function that comes with windows?
I would use a waveform graph, with a cursor to show the average line with its label.
What have you tried so far?
11-03-2025 02:43 AM
11-03-2025 03:11 AM - edited 11-03-2025 03:12 AM
Hi WhiteSpace,
@留白 wrote:
Could you write a demo to learn from
Open the ExampleFinder and learn from "Graph Cursors" example VI…
(LabVIEW comes with a huge list of "demo" examples!)
11-03-2025 11:20 AM
11-05-2025 01:24 PM
@altenbach wrote:
Here's a quick draft that you can modify according to your needs.
Here it is as an XControl
11-06-2025 11:27 PM - edited 11-06-2025 11:54 PM
An alternative to replicating the Windows progress dialog box in LabVIEW is to have Windows show it.
This can be done using the Call Library Function node to call the Shell32.dll SHFileOperation function, albeit LabVIEW can't provide much automatic assistance creating the parameter it takes (a pointer to a structure that has, among other members, pointers to strings), but it can be created using the LabVIEW memory manager functions, for example.
It can also be done more simply by using one of the Microsoft.VisualBasic.FileIO.FileSystem .NET methods, such as CopyFile (which calls SHFileOperation under the hood), which I show an example of below that can be played with:
11-06-2025 11:45 PM
11-07-2025 12:55 AM - edited 11-07-2025 12:55 AM
I take it you're interested in seeing a solution that calls the Shell32.dll SHFileOperation function directly. Below is one of the simplest examples I could create, which will only work in LabVIEW 64-bit (because 32-bit requires 32-bit pointers, albeit hopefully this example can be generalised from).
To be able to understand the example and build upon it requires understand the following documentation for the SHFileOperation function, which is what I used to create the example: SHFileOperationA function (shellapi.h) - Win32 apps | Microsoft Learn. Also, I used Visual Studio to see the memory layout of the SHFILEOPSTRUCTA structure and determine appropriate member values.
This is more complex than using the .NET methods I mentioned in my previous post but has the benefit of offering more capabilities.
11-07-2025 01:02 AM
Could you share the source file VI