Galois LFSR and Mersenne Twister
From time to time, I need to fill images with random values — and do it quickly. There are two simple yet elegant algorithms to achieve this.
From time to time, I need to fill images with random values — and do it quickly. There are two simple yet elegant algorithms to achieve this.
I just encountered an interesting exception in LabVIEW when the Median Filter was called for a float image containing a NaN value. It works as expected for small images, but I found one that caused a crash.
If you have a dual-socket CPU, each socket may have dedicated RAM assigned to it. This can lead to performance penalties when a processor accesses memory from the “wrong” memory bank. Below is a simple benchmark and an explanation of how to utilize the full bandwidth properly.
Installation of gcc and clang is not very complicated, but there are some issues in corporate environment which I would like to note.
A practical example of compiler optimization side effects: when the volatile
keyword becomes essential
Annoying issue in LabVIEW NXG/Vision with Rotated ROI: When an ROI is rotated and the image is subsequently zoomed in/out by the user, the anchors remain unrotated. They only update after moving or resizing the ROI. Here’s how to fix it
Second post about LabVIEW and Rust. This time we will pass native LabVIEW array into DLL written in Rust and resize inside.
Finally wrote command line script to build open62541 library automatically (more or less).
To get DeepSeek running on your PC you will need enough RAM, and it is quite easy with llama.cpp. Below step by step guide and results.
For some reason, I need a fast method for string search. The LabVIEW Search/Split String function is relatively slow, I’ve done this using String Zilla, and achieved around a 20x boost with AVX2/AVX512.
I just encountered slow string performance in LabVIEW when a large string is passed to a DLL as a C string pointer. It is always better to pass it as ‘Adapt to Type’ instead of a pointer.
LabVIEW 2025 Q1 and Vision 2025 was release in January. I downloaded and installed both, but some problems are occurred.
Pair production is the creation of a subatomic particle and its antiparticle from a neutral boson. Examples include creating an electron and a positron, and below some my notes about this.
By default its limited, but can be manually increased in LabVIEW.ini
ParallelLoop.MaxNumLoopInstances=256
Sometimes we need to check MD5 or SHA256 checksums for downloaded files. An easiest way:
certutil -hashfile <FILE> MD5
or with PowerShell:
Get-FileHash <FILE> -Algorithm SHA256