Labviews

How to pass LabVIEW's array in DLL

How to pass LabVIEW's array in DLL

When calling external code in LabVIEW, we need very often to pass arrays into external DLL. This small “step by step” tutorial walks you through two possible ways of calling C/C++ DLLs manipulating LabVIEW arrays inside.

My VI is broken after configuring DLL call, why?

My VI is broken after configuring DLL call, why?

This is a question, raised again and again on the forums about third-party DLLs: “…whatever I do I cannot get the library to work in LabVIEW. I get the error “The library for this node cannot be found or cannot be loaded….”. Below short “check list” with some explanations.

LabVIEW Controls Parts IDs

Every LabVIEW’s control part contains a “part ID” field which determines its purpose and functionality in the control. For example, a digital numeric control contains two BigMultiCosmetic parts for the increment and decrement buttons; the part ID is what determines which one is which. The Parts Window in the control editor displays the part ID as the textual name for the part, though the actual number is only visible in Heap Peek.

How to determine which decimal separator is used

While playing around with the Signal Processing Toolkit, I found in NI’s sources a funny method to detect which decimal separator is used in the operating system — simply perform a conversion of the string “1,23” to a double and compare it to the double constant “1.23”.

Microsoft .NET and .NET Core Releases:

VersionStart DateEnd Date
.NET 9.0Nov 12, 2024
.NET 8.0 (LTS)Nov 14, 2023Nov 10, 2026
.NET 7.0Nov 8, 2022May 14, 2024
.NET 6.0 (LTS)Nov 8, 2021Nov 12, 2024
.NET 5.0Nov 10, 2020May 10, 2022
.NET Core 3.0—3.1 (LTS)Sep 23, 2019Dec 13, 2022
.NET Core 2.0—2.1 (LTS)Aug 14, 2017Aug 21, 2021
.NET Core 1.0—1.1Jun 27, 2016Jun 27, 2019

Microsoft .NET Framework Releases:

NP Snippet

Small useful (for me) NP Snippet