LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a specific property node w/ VI script

Solved!
Go to solution

I am writing a VI script to work with some multi column listboxes.  I need it to create a property node that gets a reference to the ItemNames field.  I see that I can create a property node via the invoke node method Create.Property Node, but how to get the ItemNames field specifically I so far can't figure out.  Can anyone help?

 

To be clear, I am writing code that looks like this:

view1.png

 

...and when I run the script, I want it to produce this:

view2.png

 

Right now it produces the MCL as expected, via the New VI Object node...but I don't know how to get the ItemNames created automatcially.  I thought it might be in the PropItems array but so far no luck.

 

thank you

0 Kudos
Message 1 of 4
(2,515 Views)
Solution
Accepted by topic author bmishoe

The output of "PropItems[]" will be a one element array.  Index that element and wire the reference to an invoke node.  Select the method "SetProperty".

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 4
(2,493 Views)

Is there a fast way to figure out what index will refer to ItemNames?

 

thank you

0 Kudos
Message 3 of 4
(2,491 Views)

or wait, you're saying there's only one element in the array, I see...

0 Kudos
Message 4 of 4
(2,490 Views)