From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace a typedef by a another typedef everywhere in the programHi

Hi,
I would like to replace a typedef by an other typedef because im programming an evolution and I have to had some items to the typedef but If I just modify it, it will not match with the older version and I need the older version to keep working.
So would like to know if it is possible to automatiically replace a typedef or a VI by another one everywhere in the program.

Thanks.

Olivier
0 Kudos
Message 1 of 3
(2,980 Views)
One solution that may work is
1) Open all the VIs that contain the typedef you want to replace
2) Change the content of the typedef to match the other typedef
3) Use Save as to rename the typedef. Save it on top of the other typedef.

Now there are two possibilities. Either it works, or it breaks your code. So take a backup of everything before you try this. This save as functionality is at least in LV 8.0 and newer.

Tomi
--
Tomi Maila
0 Kudos
Message 2 of 3
(2,969 Views)
Hi,
that's what I have done and I seems to work even under LV7.1.1

thanks
 olivier
0 Kudos
Message 3 of 3
(2,963 Views)