LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Function that returns an objects default instance?

Solved!
Go to solution

Hi All

Is there a function or property node that returns the default instance of an object? I have a zipped project attached that shows

1. a workaround for the problem (Function folder) and

2. my use case (Example folder).

NathanDavis_5-1730913876217.png

Otherwise, is there a better approach to solving this?

Some pictures:

NathanDavis_4-1730913725020.png

NathanDavis_2-1730913550582.png

NathanDavis_0-1730913474473.png

NathanDavis_3-1730913570355.png

 

Thank you

Nathan Davis

0 Kudos
Message 1 of 3
(63 Views)
Solution
Accepted by NathanDavis

Turn on scripting and you can get the default value.

paul_a_cardinale_0-1730917215994.png

 

Message 2 of 3
(47 Views)

Paul, thank you. I haven't used scripting before, this opens some possibilities to explore!

I have a revised project, with a follow up question. Replacing with your suggestion of the object property node, is there a property node that casts from the interface (slash parent class) to the more specific object that is the at Object input? I found that using the following property node into preserve run time class works for what I need (last picture), but curious if there's a property node that does this also?

NathanDavis_0-1730921437794.png

NathanDavis_2-1730921913783.png

NathanDavis_3-1730921926454.png

NathanDavis_1-1730921499476.png

 

Thank you

Nathan Davis

0 Kudos
Message 3 of 3
(26 Views)