LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a typed CTL files automatically?

I make extensive use of vi references and created many strict typedefs of vi types. The problem is, that everytime, when i changed a vi, which has a corresponding typedef ctl, i need to update this CTL file manually. I whould like to get the CTL file updated automatically.

I allready found a way, to automatically create a Control (with a function from the "_NewProbeWizard.llb" library) in a VI, but this doesn't work for CTL Files (See attachment).

We be thankfull for help

0 Kudos
Message 1 of 2
(3,542 Views)

You may have to go to the LAVA forum to get a good answer to this Q.

Without getting into scripting you may be able to do this under the right conditions.

1) First save the type specifier control as a type def and save it.

2) After ensuring the VI that uses the typedef (created in step #1) is not running use the code you have already to create the the type specifier control on the FP of a .ctl file.

3) save the new ctl as the name used in step #1

4) Open the VI that uses the type def and it should re-link to the new type.

I have used techniques like this to dynamically create enums for functional globals. It may work for you.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(3,531 Views)