08-27-2024 01:50 AM
Hi everyone,
I'm struggling to grasp the LVOOP concept in LabVIEW. I've watched numerous tutorials and tried various programming exercises, but I'm still having trouble understanding the fundamentals.
To illustrate my current level of understanding, I've attached a code snippet of a practice program I've been working on. Could someone please provide a modified version of this code that demonstrates LVOOP principles? I'm hoping this will help me better understand the core concepts and how to apply them effectively.
Thank you for your time and assistance!
Kumaresan
Solved! Go to Solution.
08-27-2024 02:40 AM
Not a lot of information to go on.
Which part of LVOOP are you struggling with. And which part of the code shown are you expecting to solve via LVOOP?
08-27-2024 03:00 AM
@Kumaresan.mech wrote:
Hi everyone,
I'm struggling to grasp the LVOOP concept in LabVIEW. I've watched numerous tutorials and tried various programming exercises, but I'm still having trouble understanding the fundamentals.
To illustrate my current level of understanding, I've attached a code snippet of a practice program I've been working on. Could someone please provide a modified version of this code that demonstrates LVOOP principles? I'm hoping this will help me better understand the core concepts and how to apply them effectively.
There's 0 LVOOP in your code...
Do you mean you struggle with LV's (Variant) data type structure\class hierarchy? That is what your code is about...
08-27-2024 10:42 PM
I apologize for the confusion... i didn't say clearly what my request is.
I know this is a simple code without LVOOP concept. i want to make this code using LVOOP concept.. i know just the basics of how classes and methods works, but since i am newbee for LVOOP just don't know where to start and end. so if anyone of you modify this code as LVOOP concept that way i can understand a little bit.
Also, is there any online source available for LVOOP? there is not much of videos available in youtube!
Thanks
Kumaresan
08-28-2024 08:42 AM - edited 08-28-2024 08:45 AM
I think this is what you are looking for. It is just using basic Inheritance to write a configuration file. In a real application, I would probably use an Interface to handle the configuration read/write and use more concrete relationships for the direct inheritance.
08-28-2024 12:30 PM
There are many tutorials. Just search "LabVIEW OOP Tutorial" to start.
There are also some great examples: Help > Find Examples... Fundamentals > Object-Oriented. Look at the Board Testing example first. It has a classic procedural version and an OOP version of the same program (Simple Test Sequencer) so you can compare the techniques.
HINT: Most of the OOP part of LabVIEW is in the LV Project, not the code. Open the properties of the .lvclass files to see how to set up inheritance, access scope, class wire appearance, etc.
08-28-2024 09:58 PM
Thanks for the Sample program