LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LVOOP concept

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(545 Views)

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?

0 Kudos
Message 2 of 7
(524 Views)

@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.

Get%20Front%20panel%20data


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...

 

 

0 Kudos
Message 3 of 7
(514 Views)

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

 

0 Kudos
Message 4 of 7
(435 Views)
Solution
Accepted by Kumaresan.mech

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 7
(405 Views)
Solution
Accepted by Kumaresan.mech

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.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 6 of 7
(384 Views)

Thanks for the Sample program

0 Kudos
Message 7 of 7
(360 Views)