LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read BD constant Value (enum) VI Scripting

Solved!
Go to solution

Hi,

Trying to auto track through some horrendous code. I'd like to script something to help me.
I can use VI scripting to get references to all the SubVIs I'm interested in, and I know which Terminals of the SubVIs I'm interested in (by naming convention).
The issue is now to get from the SubVI Terms[] rn to the string text of the enum constant on the BD being used to put data into that terminal.
I can't seem to work out how to get a reference to the BD constant from the wire ref and then get the string value (different SubVIs have different type def enums associated and different text).

example code and dummy screenshot of simple have file attached

(I'm trying to document the states of the QMH used)

Any pointers please?

Thanks

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 1 of 2
(873 Views)
Solution
Accepted by topic author James_W

Worked it out...
Found an example that explains it:

Navigating from a Node to a Wire Using VI Scripting - LabVIEW 2018 Help - National Instruments (ni.c...

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
Message 2 of 2
(844 Views)