Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69014

Creating multiple instances of a class in LabVIEW object-oriented programming

$
0
0

How do you create multiple instances of a class in a loop?  Or am I thinking about this all wrong?

 

For instance, I read in a file containing this information:

 

Person Name #1

Person Age #1

Hobby #1

Hobby #2

Hobby #3

 

Person Name #2

Person Age #2

Hobby #1

Hobby #2

Hobby #3

 

Person Name #3

Person Age #3

Hobby #1

Hobby #2

Hobby #3

 

If I define a Person class with name, age, and an array of strings (for the hobbies), how can I create several new Person instances in a loop while reading through the text file?

 

FYI, new to LabVIEW OOP but familiar with Java OOP.  Thank you!


Viewing all articles
Browse latest Browse all 69014

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>