From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use same object in another vi file.

Hi i am new to OOP in labview.

 

How to use (ACCESS) same Object in multiple VI fiels in labview.

 

in c# if we use same name space , then we can acces the object .

 

i dont know how to use it in labview.

.

 

and also i need to know , how to use oop in large applications

0 Kudos
Message 1 of 19
(3,815 Views)
I'm not sure what you mean. Can you explain exactly what you want to do?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 19
(3,792 Views)

hI Mike,

 

THANKS FOR YOUR RESPOMSE ,

 

I AM NEW TO LABVIEW OOP CONCEPT,

 

1.I HAVE ONE  COM port Reading Class ,

 

2. from that class i am creating 2 objects (COM 1 , COM2) . in main VI ,.

 

How to Access that objects COM1 AND COM2 in sub vi files ?

 

 

 

 

 

 

 

0 Kudos
Message 3 of 19
(3,708 Views)

You could just pass the objects into the subVIs via the connector pane and wires, just like any other data.


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
0 Kudos
Message 4 of 19
(3,649 Views)
Exactly, there is no magic here.

Object = Wire

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 19
(3,624 Views)

Hi,

 

Thanks for the answer ,

 

Please give some Eample file .. 

 

like OOP 

 

Main vi creates the objects,

 

and subvi calling the same object and modifying . 

 

 

I mean OOP + MAIN VI + SUBVI 

0 Kudos
Message 6 of 19
(3,554 Views)
There is nothing to demonstrate. A LabVIEW object is just another kind of wire and you pass it around your program like you would any other wire. Nothing special to see.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 19
(3,524 Views)

LVOOP EXAMPLE HERE

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 8 of 19
(3,504 Views)

Mike thanks for the reply,,

 

James.Morris thanks for the example.

 

after seeing example ,

 

i have another question.

 

whats the difference betweent LVOOP AND ACTOR FRAMEWORK.?

0 Kudos
Message 9 of 19
(3,477 Views)

Oh boy...

 

Actor Framework uses LVOOP, they are not two different things, just one inside the other.

You need to do some of your own research to get your head around it.

 

To be honest, it sounds like you are new to LabVIEW, so maybe you should start off with basic LabVIEW programming practices before moving up to LVOOP and Actor Framework.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 10 of 19
(3,472 Views)