LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How To "Edit Items" of control from string array via script?

I am adapting an earlier project to a new project and need to quickly "Edit Items" of a large control list - preferably a Type Def using scripting because normal VI can read but cannot write Strings[].

 

It should be almost trivial but I am just learning scripting. - ThanX!

0 Kudos
Message 1 of 2
(1,932 Views)

You are right, you can write Strings[] with scripting.  I can't write an example now but it is easy. something like this:

 

Open the control vi

Get a reference to the enum control (easy as it is the only control in the vi!)

Edit the strings as you suggest

Invoke the SaveInstrument method on the .ctl file

 

If you get stuck post what code you have and you will get help, scripting is fun!

Michael.

0 Kudos
Message 2 of 2
(1,921 Views)