Implementing a "SOLID" File Read/Write API

June 24, 2025, 02:40 – 02:47 UTC
Download ICS file

Building on my previous presentation idea, "A Fluid Understanding of the SOLID Design Principles and their use in LabVIEW", I would like to illustrate implementing the SOLID Design Principles in a real project.

The LabVIEW File Read/Write VIs have two issues. The first, LabVIEW happily allows the developer to write code that reads from a write-only file or writes to a read-only file at edit time. It is only when the program is run that an error pops up. It would be better if the error is at compile time rather than at run time. The second issue is a long standing bug that gives erroneous outputs with Preallocated Read from Binary File. Both of these issues can be circumvented with an OOP based approach.

LabVIEW on Windows also offers support for DLL based or .NET file read/write. If interfaces are added into the above API, we could provide the end user with a really flexible API that allows them to choose which type of flie read/write they wish to do as well.

I would like to illustrate all this with code I am developing at present. I feel it would help cement the understanding of the more theoretical aspects of my other presentation.

Vijayanth Reddy Kandukuri

I was introduced to LabVIEW over a decade and a half ago. For someone who never spoke in graphic terms, I sure took to this "graphic language" in no time!

By day, I am a Senior Engineer at ARAV Systems, where I get to work full-time with LabVIEW. By night, I continue to tinker with LabVIEW and actively engage with the awesome community of fellow LabVIEW developers. Over 15 years of doing LabVIEW and I am still discovering new exciting things about it!

Image of Vijayanth Reddy Kandukuri